Skip to content

Commit 601ad76

Browse files
x0rwPLeVasseur
andcommitted
Fix workflow, use uv instead
Co-authored-by: Pete LeVasseur <[email protected]>
1 parent a7f233e commit 601ad76

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,18 @@ jobs:
1414
pull-requests: write
1515

1616
steps:
17+
1718
- name: Checkout code
1819
uses: actions/checkout@v4
1920

21+
# TODO: make this step a reusable composite workflow.
22+
- name: Install uv
23+
run: |
24+
curl -LsSf https://astral.sh/uv/install.sh | sh
25+
export PATH="/root/.cargo/bin:$PATH"
26+
uv --version
27+
28+
2029
- name: Set up Git
2130
run: |
2231
git config --global user.email "[email protected]"

scripts/auto-pr-helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
parent_dir = os.path.abspath(os.path.join(script_dir, ".."))
1111
sys.path.append(parent_dir)
1212

13-
from generate_guideline_templates import generate_id, guideline_rst_template, header_map, issue_header_map
13+
from generate_guideline_templates import generate_id, guideline_rst_template, issue_header_map
1414

1515

1616
def extract_form_fields(issue_body: str) -> dict:
@@ -40,7 +40,7 @@ def extract_form_fields(issue_body: str) -> dict:
4040
fields[current_key] = value
4141

4242
header = header_match.group(1).strip()
43-
current_key = header_map.get(header) # Map to dict key or None if unknown
43+
current_key = issue_header_map.get(header) # Map to dict key or None if unknown
4444
current_value_lines = []
4545
else:
4646
current_value_lines.append(line)

0 commit comments

Comments
 (0)