File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1212Usage:
1313 cat issue.json | uv run python scripts/auto-pr-helper.py
1414 cat issue.json | uv run python scripts/auto-pr-helper.py --save
15-
16- Location: scripts/auto-pr-helper.py (replaces existing file)
1715"""
1816
1917import argparse
2018import json
19+ import os
2120import sys
2221
22+ # Add the scripts directory to Python path so we can import guideline_utils
23+ script_dir = os .path .dirname (os .path .abspath (__file__ ))
24+ sys .path .insert (0 , script_dir )
25+
2326from guideline_utils import (
2427 extract_form_fields ,
2528 guideline_template ,
Original file line number Diff line number Diff line change 99Usage:
1010 cat issue.json | uv run python scripts/generate-rst-comment.py
1111 curl https://api.github.com/repos/.../issues/123 | uv run python scripts/generate-rst-comment.py
12-
13- Location: scripts/generate-rst-comment.py (new file)
1412"""
1513
1614import json
15+ import os
1716import sys
1817
18+ # Add the scripts directory to Python path so we can import guideline_utils
19+ script_dir = os .path .dirname (os .path .abspath (__file__ ))
20+ sys .path .insert (0 , script_dir )
21+
1922from guideline_utils import (
2023 chapter_to_filename ,
2124 extract_form_fields ,
Original file line number Diff line number Diff line change 77This module contains common functions used by:
88- auto-pr-helper.py (for automated PR generation)
99- generate-rst-comment.py (for generating preview comments)
10-
11- Location: scripts/guideline_utils.py
1210"""
1311
1412import os
You can’t perform that action at this time.
0 commit comments