Update cli.py
This commit is contained in:
Родитель
9cb155a52f
Коммит
572bb06300
6
cli.py
6
cli.py
|
@ -53,7 +53,7 @@ def serve(args):
|
||||||
jira = jiralib.Jira(args.jira_url, args.jira_user, args.jira_token)
|
jira = jiralib.Jira(args.jira_url, args.jira_user, args.jira_token)
|
||||||
s = Sync(
|
s = Sync(
|
||||||
github,
|
github,
|
||||||
jira.getProject(args.jira_project, args.jira_label),
|
jira.getProject(args.jira_project, args.jira_labels),
|
||||||
direction=direction_str_to_num(args.direction),
|
direction=direction_str_to_num(args.direction),
|
||||||
)
|
)
|
||||||
server.run_server(s, args.secret, port=args.port)
|
server.run_server(s, args.secret, port=args.port)
|
||||||
|
@ -84,7 +84,7 @@ def sync(args):
|
||||||
args.jira_project,
|
args.jira_project,
|
||||||
args.issue_end_state,
|
args.issue_end_state,
|
||||||
args.issue_reopen_state,
|
args.issue_reopen_state,
|
||||||
args.jira_label,
|
args.jira_labels,
|
||||||
)
|
)
|
||||||
repo_id = args.gh_org + "/" + args.gh_repo
|
repo_id = args.gh_org + "/" + args.gh_repo
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ def main():
|
||||||
default=os.getenv("GH2JIRA_JIRA_TOKEN"),
|
default=os.getenv("GH2JIRA_JIRA_TOKEN"),
|
||||||
)
|
)
|
||||||
credential_base.add_argument("--jira-project", help="JIRA project key")
|
credential_base.add_argument("--jira-project", help="JIRA project key")
|
||||||
credential_base.add_argument("--jira-label", help="JIRA bug label(s)")
|
credential_base.add_argument("--jira-labels", help="JIRA bug label(s)")
|
||||||
credential_base.add_argument(
|
credential_base.add_argument(
|
||||||
"--secret",
|
"--secret",
|
||||||
help="Webhook secret. Alternatively, the GH2JIRA_SECRET may be set.",
|
help="Webhook secret. Alternatively, the GH2JIRA_SECRET may be set.",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче