Introduce an optional configuration to define a regex for naming rules

Before this change, the plugin made checks on the name to verify that
the new project name is not null and that it doesn't exist. Therefore,
the new project name can have a name with any set of characters while
complying to the naming rules. However, due to IRI (not URI) and
backward compatibility, the non-ASCII characters may be represented in a
way that can cause issues [1].

This change introduces a configurable parameter that can be set to
define a regex that is then enforced upon renaming a project to ensure
backward compatibility.

[1] https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier

Bug: Issue 14297
Change-Id: Ia049cb399afe1091626cafebfb3d64f72f41e61f
4 files changed
tree: a8e263a2c53b61c8a2d32af525b29af268d2cabf
  1. .settings/
  2. src/
  3. tools/
  4. .bazelignore
  5. .bazelrc
  6. .bazelversion
  7. .gitignore
  8. bazlets.bzl
  9. BUILD
  10. external_plugin_deps.bzl
  11. LICENSE
  12. README.md
  13. WORKSPACE
README.md

Rename project plugin for Gerrit Code Review

This plugin currently supports Gerrit version 2.14.X and 2.15.X with changes in reviewDb. Also supported is the noteDb alternative for Gerrit versions 2.15.X and above.

For more information, see: src/main/resources/Documentation/about.md