Merge pull request #28543 from leboncoin/feat-integration-gerrit-edit-mode
feat(integration): add edit url mode for Gerrit integration
This commit is contained in:
@@ -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,6 +24,7 @@ integrations:
|
||||
gitilesBaseUrl: https://gerrit.company.com/gitiles
|
||||
baseUrl: https://gerrit.company.com/gerrit
|
||||
cloneUrl: https://gerrit.company.com/clone
|
||||
disableEditUrl: false
|
||||
username: ${GERRIT_USERNAME}
|
||||
password: ${GERRIT_PASSWORD}
|
||||
```
|
||||
@@ -37,6 +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.
|
||||
- `disableEditUrl` (optional): Disable the edit mode.
|
||||
- `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.
|
||||
|
||||
Reference in New Issue
Block a user