Skip to content

Commit a27bb51

Browse files
authored
Merge pull request #154 from devchat-ai/improve-help
feat: update command.yml files and enhance workflow scripts
2 parents 29d8477 + 2173ff8 commit a27bb51

28 files changed

Lines changed: 179 additions & 230 deletions

File tree

community/github/command.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
description: Root of github commands.
1+
description: Workflows for github.
2+
steps:
3+
- run: $devchat_python $command_path/main.py

community/github/commit/command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ help:
55
en: README.md
66
zh: README.zh.md
77
steps:
8-
- run: $devchat_python $command_path/commit.py "$input" "english"
8+
- run: $devchat_python $command_path/main.py "$input" "english"

community/github/commit/zh/command.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

community/github/main.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from lib.workflow.call import print_sub_workflows, workflow_call
2+
from lib.workflow.decorators import check_config
3+
4+
5+
@check_config(["github_token"])
6+
def main(github_token: bool):
7+
print_sub_workflows()
8+
if not github_token:
9+
workflow_call("/github.config")
10+
11+
12+
if __name__ == "__main__":
13+
main()

community/gitlab/command.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
description: Root of gitlab commands.
1+
description: Workflow for gitlab.
2+
steps:
3+
- run: $devchat_python $command_path/main.py

community/gitlab/commit/command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ help:
55
en: README.md
66
zh: README.zh.md
77
steps:
8-
- run: $devchat_python $command_path/commit.py "$input" "english"
8+
- run: $devchat_python $command_path/main.py "$input" "english"

community/gitlab/commit/zh/command.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)