Skip to content

Commit e8e2757

Browse files
committed
style: fix formatting in PR title validation script and workflow files
1 parent e715ac9 commit e8e2757

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

.github/scripts/validate_pr.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
DEFAULT_TITLE_TASK_REGEX = None # No built-in defaults — must come from file
24-
DEFAULT_TITLE_DEV_REGEX = None # No built-in defaults — must come from file
24+
DEFAULT_TITLE_DEV_REGEX = None # No built-in defaults — must come from file
2525

2626

2727
def _trim(s: Optional[str]) -> str:
@@ -86,9 +86,9 @@ def validate_title(title: str) -> List[str]:
8686
return [
8787
"Invalid PR title.",
8888
"Allowed formats (see policy config):",
89-
*( [f"- Task (RU): {example_task_ru}"] if example_task_ru else [] ),
90-
*( [f"- Task (EN): {example_task_en}"] if example_task_en else [] ),
91-
*( [f"- Dev: {example_dev}"] if example_dev else [] ),
89+
*([f"- Task (RU): {example_task_ru}"] if example_task_ru else []),
90+
*([f"- Task (EN): {example_task_en}"] if example_task_en else []),
91+
*([f"- Dev: {example_dev}"] if example_dev else []),
9292
]
9393

9494

.github/workflows/pr-title.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: PR Title Gate
2-
32
on:
43
workflow_call:
5-
64
jobs:
75
pr_title:
86
name: Validate PR Title
@@ -11,18 +9,14 @@ jobs:
119
- name: Skip on non-PR events
1210
if: ${{ github.event_name != 'pull_request' }}
1311
run: echo "Not a PR event; skipping title check"
14-
1512
- name: Checkout
1613
if: ${{ github.event_name == 'pull_request' }}
1714
uses: actions/checkout@v4
18-
1915
- name: Set up Python
2016
if: ${{ github.event_name == 'pull_request' }}
2117
uses: actions/setup-python@v5
2218
with:
2319
python-version: '3.11'
24-
2520
- name: Validate PR title
2621
if: ${{ github.event_name == 'pull_request' }}
2722
run: python .github/scripts/validate_pr.py
28-

0 commit comments

Comments
 (0)