docs: use HEAD in gitiles URIs This is shorter than "master" or "refs/heads/master", and if we ever switch the development branch, this handles it automatically. Change-Id: I1acc66633c9528d1af11a3061109e705846b88f3
diff --git a/java/com/google/gerrit/plugins/codeowners/backend/findowners/FindOwnersCodeOwnerConfigParser.java b/java/com/google/gerrit/plugins/codeowners/backend/findowners/FindOwnersCodeOwnerConfigParser.java index 7a4261a..5ddbb9a 100644 --- a/java/com/google/gerrit/plugins/codeowners/backend/findowners/FindOwnersCodeOwnerConfigParser.java +++ b/java/com/google/gerrit/plugins/codeowners/backend/findowners/FindOwnersCodeOwnerConfigParser.java
@@ -48,7 +48,7 @@ * OWNERS} files as they are used by the {@code find-owners} plugin. * * <p>The syntax is described at in the {@code find-owners} plugin documentation at: - * https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/resources/Documentation/syntax.md + * https://gerrit.googlesource.com/plugins/find-owners/+/HEAD/src/main/resources/Documentation/syntax.md * * <p>Comment lines are silently ignored. *
diff --git a/resources/Documentation/alternative-plugins.md b/resources/Documentation/alternative-plugins.md index d3723a1..adcd3ab 100644 --- a/resources/Documentation/alternative-plugins.md +++ b/resources/Documentation/alternative-plugins.md
@@ -9,7 +9,7 @@ **Status:** deprecated, from Gerrit 3.4 on the `code-owners` plugin should be used instead\ **Repository:** [plugins/find-owners](https://gerrit-review.googlesource.com/admin/repos/plugins/find-owners)\ -**Documentation:** [about](https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/resources/Documentation/about.md), [syntax](https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/resources/Documentation/syntax.md), [REST API](https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/resources/Documentation/rest-api.md), [config](https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/resources/Documentation/config.md) +**Documentation:** [about](https://gerrit.googlesource.com/plugins/find-owners/+/HEAD/src/main/resources/Documentation/about.md), [syntax](https://gerrit.googlesource.com/plugins/find-owners/+/HEAD/src/main/resources/Documentation/syntax.md), [REST API](https://gerrit.googlesource.com/plugins/find-owners/+/HEAD/src/main/resources/Documentation/rest-api.md), [config](https://gerrit.googlesource.com/plugins/find-owners/+/HEAD/src/main/resources/Documentation/config.md) ### <a id="findOwnersCompatibility">Compatibility with the code-owners plugin @@ -39,7 +39,7 @@ * Including an `OWNERS` file from another directory in the same project or from another project on the same host is possible (same branch is assumed). * File globs can be used. - * See [documentation](https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/resources/Documentation/syntax.md) for the supported syntax. + * See [documentation](https://gerrit.googlesource.com/plugins/find-owners/+/HEAD/src/main/resources/Documentation/syntax.md) for the supported syntax. <br><br> * Prolog rule to prevent submitting changes without owner approvals. * A change can be exempted from owners approval by setting a footer in the @@ -52,23 +52,23 @@ * Owner approval is granted by voting on the `Code-Review` label. <br><br> * REST endpoints: - * [Action](https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/java/com/googlesource/gerrit/plugins/findowners/Action.java) REST endpoint: + * [Action](https://gerrit.googlesource.com/plugins/find-owners/+/HEAD/src/main/java/com/googlesource/gerrit/plugins/findowners/Action.java) REST endpoint: * `GET /changes/<change-id>/revisions/<revision-id>/find-owners` - * returns a [RestResult](https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/java/com/googlesource/gerrit/plugins/findowners/RestResult.java) which contains: + * returns a [RestResult](https://gerrit.googlesource.com/plugins/find-owners/+/HEAD/src/main/java/com/googlesource/gerrit/plugins/findowners/RestResult.java) which contains: * a file to list of owners map * a list of owner infos with weight infos * fields for debugging * fields for change, patch set, current reviewers and changed files - * [GetOwners](https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/java/com/googlesource/gerrit/plugins/findowners/GetOwners.java) REST endpoint: + * [GetOwners](https://gerrit.googlesource.com/plugins/find-owners/+/HEAD/src/main/java/com/googlesource/gerrit/plugins/findowners/GetOwners.java) REST endpoint: * `GET /changes/<change-id>/owners` * Delegates to Action REST endpoint (see above) - * Also see [REST endpoint documentation](https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/resources/Documentation/rest-api.md) + * Also see [REST endpoint documentation](https://gerrit.googlesource.com/plugins/find-owners/+/HEAD/src/main/resources/Documentation/rest-api.md) ## <a id="owners">owners plugin + owners-autoassign plugin **Status:** maintained by the Gerrit open source community (no Google involvement)\ **Repository:** [plugins/owners](https://gerrit-review.googlesource.com/admin/repos/plugins/owners)\ -**Documentation:** [readme](https://gerrit.googlesource.com/plugins/owners/+/master/README.md), [config & syntax](https://gerrit.googlesource.com/plugins/owners/+/master/owners/src/main/resources/Documentation/config.md) +**Documentation:** [readme](https://gerrit.googlesource.com/plugins/owners/+/HEAD/README.md), [config & syntax](https://gerrit.googlesource.com/plugins/owners/+/HEAD/owners/src/main/resources/Documentation/config.md) ### <a id="ownersCompatibility">Compatibility with the code-owners plugin @@ -97,7 +97,7 @@ * Inheritance from parent directories is supported and can be disabled. * Regular expressions can be used. * Syntax is based on YAML. - * See [documentation](https://gerrit.googlesource.com/plugins/owners/+/master/owners/src/main/resources/Documentation/config.md) for the supported syntax. + * See [documentation](https://gerrit.googlesource.com/plugins/owners/+/HEAD/owners/src/main/resources/Documentation/config.md) for the supported syntax. <br><br> * Prolog rule to prevent submitting changes without code owner approvals. * The label on which code owners must vote is configurable.
diff --git a/resources/Documentation/setup-guide.md b/resources/Documentation/setup-guide.md index 5281427..451daed 100644 --- a/resources/Documentation/setup-guide.md +++ b/resources/Documentation/setup-guide.md
@@ -376,7 +376,7 @@ If the `find-owners` plugin has been used so far, you likely want to disable/uninstall it after the `code-owners` plugin has been set up. Before doing this it is important to remove all usages of the [find-owners Prolog -predicates](https://gerrit.googlesource.com/plugins/find-owners/+/refs/heads/master/src/main/resources/Documentation/config.md#submit-rules-and-filters) +predicates](https://gerrit.googlesource.com/plugins/find-owners/+/HEAD/src/main/resources/Documentation/config.md#submit-rules-and-filters) from all Prolog submit rules and filters. If the find-owners Prolog predicates are still used when the `find-owners` plugin is disabled/uninstalled, they can no longer be resolved which breaks the submit rules using them. If submit rules
diff --git a/ui/code-owners-api.js b/ui/code-owners-api.js index e9a0227..e186ede 100644 --- a/ui/code-owners-api.js +++ b/ui/code-owners-api.js
@@ -78,7 +78,7 @@ /** * Returns a promise fetching the owner statuses for all files within the change. * - * @doc https://gerrit.googlesource.com/plugins/code-owners/+/refs/heads/master/resources/Documentation/rest-api.md#change-endpoints + * @doc https://gerrit.googlesource.com/plugins/code-owners/+/HEAD/resources/Documentation/rest-api.md#change-endpoints * @param {string} changeId */ listOwnerStatus(changeId) { @@ -88,7 +88,7 @@ /** * Returns a promise fetching the owners for a given path. * - * @doc https://gerrit.googlesource.com/plugins/code-owners/+/refs/heads/master/resources/Documentation/rest-api.md#list-code-owners-for-path-in-branch + * @doc https://gerrit.googlesource.com/plugins/code-owners/+/HEAD/resources/Documentation/rest-api.md#list-code-owners-for-path-in-branch * @param {string} changeId * @param {string} path */ @@ -102,7 +102,7 @@ /** * Returns a promise fetching the owners config for a given path. * - * @doc https://gerrit.googlesource.com/plugins/code-owners/+/refs/heads/master/resources/Documentation/rest-api.md#branch-endpoints + * @doc https://gerrit.googlesource.com/plugins/code-owners/+/HEAD/resources/Documentation/rest-api.md#branch-endpoints * @param {string} project * @param {string} branch * @param {string} path @@ -118,7 +118,7 @@ /** * Returns a promise fetching the owners config for a given branch. * - * @doc https://gerrit.googlesource.com/plugins/code-owners/+/refs/heads/master/resources/Documentation/rest-api.md#branch-endpoints + * @doc https://gerrit.googlesource.com/plugins/code-owners/+/HEAD/resources/Documentation/rest-api.md#branch-endpoints * @param {string} project * @param {string} branch */
diff --git a/ui/owner-requirement.js b/ui/owner-requirement.js index 6bc3465..6ba53b6 100644 --- a/ui/owner-requirement.js +++ b/ui/owner-requirement.js
@@ -85,7 +85,7 @@ </template> <template is="dom-if" if="[[model.branchConfig.no_code_owners_defined]]"> <span>No code-owners file</span> - <a href="https://gerrit.googlesource.com/plugins/code-owners/+/master/resources/Documentation/user-guide.md#how-to-submit-changes-with-files-that-have-no-code-owners" target="_blank"> + <a href="https://gerrit.googlesource.com/plugins/code-owners/+/HEAD/resources/Documentation/user-guide.md#how-to-submit-changes-with-files-that-have-no-code-owners" target="_blank"> <iron-icon icon="gr-icons:help-outline" title="Documentation about submitting changes with files that have no code owners?"></iron-icon> </a>
diff --git a/ui/suggest-owners-trigger.js b/ui/suggest-owners-trigger.js index 05b01a5..427fef6 100644 --- a/ui/suggest-owners-trigger.js +++ b/ui/suggest-owners-trigger.js
@@ -58,7 +58,7 @@ <a on-click="_reportBugClick" href="https://bugs.chromium.org/p/gerrit/issues/entry?template=code-owners-plugin" target="_blank"> <iron-icon icon="gr-icons:bug" title="report a problem"></iron-icon> </a> - <a on-click="_reportDocClick" href="https://gerrit.googlesource.com/plugins/code-owners/+/master/resources/Documentation/how-to-use.md" target="_blank"> + <a on-click="_reportDocClick" href="https://gerrit.googlesource.com/plugins/code-owners/+/HEAD/resources/Documentation/how-to-use.md" target="_blank"> <iron-icon icon="gr-icons:help-outline" title="read documentation"></iron-icon> </a> </span>
diff --git a/ui/suggest-owners.js b/ui/suggest-owners.js index c3ea6cf..2304523 100644 --- a/ui/suggest-owners.js +++ b/ui/suggest-owners.js
@@ -297,7 +297,7 @@ <template is="dom-if" if="[[!_areOwnersFound(suggestion.owners)]]"> <div class="no-owners-content"> <span>Not found</span> - <a on-click="_reportDocClick" href="https://gerrit.googlesource.com/plugins/code-owners/+/master/resources/Documentation/how-to-use.md#no-code-owners-found" target="_blank"> + <a on-click="_reportDocClick" href="https://gerrit.googlesource.com/plugins/code-owners/+/HEAD/resources/Documentation/how-to-use.md#no-code-owners-found" target="_blank"> <iron-icon icon="gr-icons:help-outline" title="read documentation"></iron-icon> </a> </div>