2018-09-24 16:25:57 +03:00
## git-bug bridge configure
2019-02-24 16:46:08 +03:00
Configure a new bridge.
2018-09-24 16:25:57 +03:00
### Synopsis
2019-05-29 21:50:30 +03:00
Configure a new bridge by passing flags or/and using interactive terminal prompts. You can avoid all the terminal prompts by passing all the necessary flags to configure your bridge.
2018-09-24 16:25:57 +03:00
```
git-bug bridge configure [flags]
```
2019-05-29 21:50:30 +03:00
### Examples
```
# Interactive example
[1]: github
2020-02-15 04:55:19 +03:00
[2]: gitlab
[3]: jira
[4]: launchpad-preview
2019-05-29 21:50:30 +03:00
target: 1
name [default]: default
Detected projects:
[1]: github.com/a-hilaly/git-bug
[2]: github.com/MichaelMure/git-bug
[0]: Another project
Select option: 1
2019-06-07 02:28:52 +03:00
[1]: user provided token
[2]: interactive token creation
Select option: 1
2019-05-29 21:50:30 +03:00
You can generate a new token by visiting https://github.com/settings/tokens.
Choose 'Generate new token' and set the necessary access scope for your repository.
The access scope depend on the type of repository.
Public:
- 'public_repo': to be able to read public repositories
Private:
- 'repo' : to be able to read private repositories
2019-06-07 02:28:52 +03:00
Enter token: 87cf5c03b64029f18ea5f9ca5679daa08ccbd700
2019-05-29 21:50:30 +03:00
Successfully configured bridge: default
2019-08-27 01:53:26 +03:00
# For GitHub
2019-05-29 21:50:30 +03:00
git bug bridge configure \
--name=default \
--target=github \
--owner=$(OWNER) \
--project=$(PROJECT) \
--token=$(TOKEN)
# For Launchpad
git bug bridge configure \
--name=default \
--target=launchpad-preview \
2019-08-27 01:53:26 +03:00
--url=https://bugs.launchpad.net/ubuntu/
# For Gitlab
git bug bridge configure \
--name=default \
--target=github \
--url=https://github.com/michaelmure/git-bug \
--token=$(TOKEN)
2019-05-29 21:50:30 +03:00
```
2018-09-24 16:25:57 +03:00
### Options
```
2019-12-08 23:15:06 +03:00
-n, --name string A distinctive name to identify the bridge
-t, --target string The target of the bridge. Valid values are [github,gitlab,launchpad-preview]
2020-02-15 04:55:19 +03:00
-u, --url string The URL of the remote repository
-b, --base-url string The base URL of your remote issue tracker
-l, --login string The login on your remote issue tracker
-c, --credential string The identifier or prefix of an already known credential for your remote issue tracker (see "git-bug bridge auth")
--token string A raw authentication token for the remote issue tracker
2019-12-08 23:15:06 +03:00
--token-stdin Will read the token from stdin and ignore --token
2020-02-15 04:55:19 +03:00
-o, --owner string The owner of the remote repository
-p, --project string The name of the remote repository
2019-12-08 23:15:06 +03:00
-h, --help help for configure
2018-09-24 16:25:57 +03:00
```
### SEE ALSO
2019-02-24 16:46:08 +03:00
* [git-bug bridge ](git-bug_bridge.md ) - Configure and use bridges to other bug trackers.
2018-09-24 16:25:57 +03:00