chore: activate gerrit editURL by default

Signed-off-by: Andy LADJADJ <andy.ladjadj@adevinta.com>
This commit is contained in:
Andy LADJADJ
2025-03-24 15:25:13 +01:00
parent 86decb69d1
commit f56ee49904
7 changed files with 30 additions and 28 deletions
+4 -2
View File
@@ -11,6 +11,8 @@ or registered with the
[catalog-import](https://github.com/backstage/backstage/tree/master/plugins/catalog-import)
plugin.
Gerrit 3.9+ supports inline editing via URL. the integration enables this by default, following Gerrit's [official URL pattern](https://gerrit-review.googlesource.com/Documentation/user-inline-edit.html#create_from_url) for inline edits.
## Configuration
To use this integration, add at least one Gerrit configuration to your root `app-config.yaml`:
@@ -22,7 +24,7 @@ integrations:
gitilesBaseUrl: https://gerrit.company.com/gitiles
baseUrl: https://gerrit.company.com/gerrit
cloneUrl: https://gerrit.company.com/clone
enableEditUrl: true
disableEditUrl: false
username: ${GERRIT_USERNAME}
password: ${GERRIT_PASSWORD}
```
@@ -38,7 +40,7 @@ a structure with up to six elements:
address here. This is the address that you would open in a browser.
- `cloneUrl` (optional): The base URL for HTTP clones. Will default to `baseUrl` if
not set. The address used to clone a repo is the `cloneUrl` plus the repo name.
- `enableEditUrl` (optional): Activate the edit mode for Gerrit >= 3.9 following the [official pattern](https://gerrit-review.googlesource.com/Documentation/user-inline-edit.html#create_from_url)
- `disableEditUrl` (optional): Disable the edit mode for Gerrit < 3.9
- `username` (optional): The Gerrit username to use in API requests. If
neither a username nor password are supplied, anonymous access will be used.
- `password` (optional): The password or http token for the Gerrit user.