|
17 | 17 | "Input your gitlab API URL to access gitlab api, if not specified, default is https://gitlab.com/api/v4" |
18 | 18 | ) |
19 | 19 | @editor("Input your gitlab TOKEN to access gitlab api") |
20 | | -@editor("Input your gitlab work report template path") |
21 | | -def edit_config(issue_url, gitlab_api_url, gitlab_token, template_path): |
| 20 | +def edit_config(issue_url, gitlab_api_url, gitlab_token): |
22 | 21 | pass |
23 | 22 |
|
24 | 23 |
|
25 | 24 | def main(): |
26 | 25 | issue_url = read_config("git_issue_repo", is_global=True) |
27 | 26 | gitlab_token = read_config("gitlab_token", is_global=True) |
28 | 27 | gitlab_api_url = read_config("gitlab_api_url", is_global=True) |
29 | | - template_path = read_config("gitlab_work_report_template_path", is_global=True) |
30 | | - issue_url, gitlab_api_url, gitlab_token, template_path = edit_config( |
31 | | - issue_url, gitlab_api_url, gitlab_token, template_path |
32 | | - ) |
| 28 | + issue_url, gitlab_api_url, gitlab_token = edit_config(issue_url, gitlab_api_url, gitlab_token) |
33 | 29 | if not gitlab_token: |
34 | 30 | print("Please specify the gitlab token to access gitlab api.") |
35 | 31 | sys.exit(0) |
36 | 32 | save_config("git_issue_repo", issue_url, is_global=True) |
37 | 33 | save_config("gitlab_token", gitlab_token, is_global=True) |
38 | 34 | save_config("gitlab_api_url", gitlab_api_url, is_global=True) |
39 | | - save_config("gitlab_work_report_template_path", template_path, is_global=True) |
40 | 35 |
|
41 | 36 | print("config gitlab settings successfully.") |
42 | 37 | sys.exit(0) |
|
0 commit comments