2019-04-01 15:02:22 +03:00
.TH "GIT-BUG" "1" "Apr 2019" "Generated from git-bug's source code" ""
2018-09-24 16:25:57 +03:00
.nh
.ad l
.SH NAME
.PP
2019-03-02 00:56:04 +03:00
git\- bug\- bridge\- configure \- Configure a new bridge.
2018-09-24 16:25:57 +03:00
.SH SYNOPSIS
.PP
\fB git\- bug bridge configure [flags]\fP
.SH DESCRIPTION
.PP
2019-05-29 21:50:30 +03:00
.RS
.nf
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.
Repository configuration can be made by passing either the \- \- url flag or the \- \- project and \- \- owner flags. If the three flags are provided git\- bug will use \- \- project and \- \- owner flags.
Token configuration can be directly passed with the \- \- token flag or in the terminal prompt. If you don't already have one you can use the interactive procedure to generate one.
.fi
.RE
2018-09-24 16:25:57 +03:00
.SH OPTIONS
2019-05-29 21:50:30 +03:00
.PP
\fB \- n\fP , \fB \- \- name\fP =""
A distinctive name to identify the bridge
.PP
\fB \- t\fP , \fB \- \- target\fP =""
2019-07-22 19:03:03 +03:00
The target of the bridge. Valid values are [github,gitlab,launchpad\- preview]
2019-05-29 21:50:30 +03:00
.PP
\fB \- u\fP , \fB \- \- url\fP =""
The URL of the target repository
2019-12-10 22:30:29 +03:00
.PP
\fB \- b\fP , \fB \- \- base\- url\fP =""
The base URL of your issue tracker service
2019-05-29 21:50:30 +03:00
.PP
\fB \- o\fP , \fB \- \- owner\fP =""
The owner of the target repository
.PP
2019-12-08 23:15:06 +03:00
\fB \- c\fP , \fB \- \- credential\fP =""
The identifier or prefix of an already known credential for the API (see "git\- bug bridge auth")
2019-05-29 21:50:30 +03:00
2019-11-26 21:46:50 +03:00
.PP
2019-12-08 23:15:06 +03:00
\fB \- \- token\fP =""
A raw authentication token for the API
2019-11-26 21:46:50 +03:00
2019-08-24 14:11:58 +03:00
.PP
\fB \- \- token\- stdin\fP [=false]
Will read the token from stdin and ignore \- \- token
2019-05-29 21:50:30 +03:00
.PP
\fB \- p\fP , \fB \- \- project\fP =""
The name of the target repository
2018-09-24 16:25:57 +03:00
.PP
\fB \- h\fP , \fB \- \- help\fP [=false]
help for configure
2019-05-29 21:50:30 +03:00
.SH EXAMPLE
.PP
.RS
.nf
# Interactive example
[1]: github
[2]: launchpad\- preview
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
.fi
.RE
2018-09-24 16:25:57 +03:00
.SH SEE ALSO
.PP
\fB git\- bug\- bridge(1)\fP