GIT-BUG(1) GIT-BUG(1)

git-bug-bridge-new - پیکربندی یک پل جدید

git-bug bridge new [flags]

پیکربندی یک پل (bridge) جدید با ارسال گزینه‌ها و/یا استفاده از اعلان‌های تعاملی ترمینال. می‌توانید با ارسال تمامی گزینه‌های لازم جهت پیکربندی پل خود، از نمایش اعلان‌های ترمینال جلوگیری کنید.

-n, --name="" یک نام متمایز برای شناسایی پل

-t, --target="" مقصد پل. مقادیر معتبر عبارتند از [github,gitlab,jira,launchpad-preview]

-u, --url="" نشانی اینترنتی (URL) مخزن راه دور

-b, --base-url="" نشانی اینترنتی پایه (Base URL) سیستم ردیاب باگ راه دور

-l, --login="" نام کاربری در سیستم ردیاب باگ راه دور

-c, --credential="" شناسه یا پیشوند یک اعتبارنامه شناخته‌شده برای سیستم ردیاب باگ راه دور (دستور "git-bug bridge auth" را ببینید)

--token="" یک توکن خام احراز هویت برای سیستم ردیاب باگ راه دور

--token-stdin[=false] خواندن توکن از ورودی استاندارد (stdin) و نادیده گرفتن --token

-o, --owner="" مالک مخزن راه دور

-p, --project="" نام مخزن راه دور

--non-interactive[=false] عدم درخواست ورودی از کاربر

-h, --help[=false] راهنما برای new

# مثال تعاملی
[1]: github
[2]: gitlab
[3]: jira
[4]: launchpad-preview
target: 1
name [default]: default
Detected projects:
[1]: github.com/git-bug/git-bug
[0]: Another project
Select option: 1
[1]: user provided token
[2]: interactive token creation
Select option: 1
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
Enter token: 87cf5c03b64029f18ea5f9ca5679daa08ccbd700
Successfully configured bridge: default
# برای GitHub
git bug bridge new \
    --name=default \
    --target=github \
    --owner=example-owner
    --project=example-repo \
    --token=$TOKEN
# برای Launchpad
git bug bridge new \
    --name=default \
    --target=launchpad-preview \
    --url=https://bugs.launchpad.net/ubuntu
# برای Gitlab
git bug bridge new \
    --name=default \
    --target=gitlab \
    --url=https://github.com/example-org/example-repo \
    --token=$TOKEN

git-bug-bridge(1)

Apr 2019 Generated from git-bug's source code