Skip to content

Commit 6b55f33

Browse files
committed
Fix ci
1 parent 8a543c7 commit 6b55f33

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/auto-pr-on-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
- name: Run Python script to generate guideline file
3535
run: |
36-
echo '${{ toJson(github.event.issue) }}' | uv run python scripts/auto-pr-helper.py
36+
echo '${{ toJson(github.event.issue) }}' | uv run python scripts/auto-pr-helper.py --save
3737
3838
- name: Commit generated guideline files
3939
run: |

.github/workflows/snapshot-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Snapshot Tests for auto-pr
33
on:
44
push:
55
paths:
6-
- 'generate_guideline_templates.py'
6+
- 'generate_guideline_templates.py'
77
- 'scripts/auto-pr-helper.py'
88
- '.github/auto-pr-tests/**'
99
workflow_dispatch: # also allow manual runs

scripts/auto-pr-helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def format_code_block(code: str, lang: str = "rust") -> str:
107107

108108
# parse arguments
109109
parser = argparse.ArgumentParser(description="Generate guideline from GitHub issue JSON.")
110-
parser.add_argument("--saved", action="store_true", help="Save the generated guideline file.")
110+
parser.add_argument("--save", action="store_true", help="Save the generated guideline file.")
111111
args = parser.parse_args()
112112

113113
## locally test with `cat scripts/test_issue_sample.json | python3 scripts/auto-pr-helper.py`
@@ -129,5 +129,5 @@ def format_code_block(code: str, lang: str = "rust") -> str:
129129
print(content)
130130
print("=====CONTENT=END=====")
131131

132-
if args.saved:
132+
if args.save:
133133
save_guideline_file(content, chapter)

0 commit comments

Comments
 (0)