-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (41 loc) · 1.46 KB
/
process_switch_issue.yml
File metadata and controls
50 lines (41 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Process Switch Submission
on:
issues:
types: [opened, labeled]
jobs:
process-switch:
if: contains(github.event.issue.labels.*.name, 'automation')
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
steps:
- name: Checkout Code
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.14.3'
- name: Extract Issue Body
env:
ISSUE_BODY: ${{ github.event.issue.body }}
run: printf "%s" "$ISSUE_BODY" > issue_body.txt
- name: Process Issue Data
id: process
run: |
python scripts/process_issue_ops.py issue_body.txt
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "feat(community): add new switch for issue #${{ github.event.issue.number }}"
title: "feat(community): Add Switch from Issue #${{ github.event.issue.number }}"
body: |
This PR adds a new silent switch based on Issue #${{ github.event.issue.number }}.
**Contributor**: @${{ github.actor }}
**Manual Review Required**: Please verify the switch logic.
Closes #${{ github.event.issue.number }}
branch: "add-switch-${{ github.event.issue.number }}"
base: main
delete-branch: true