feat(pr-sync): Enhance issue management on PR merge and close events

This commit is contained in:
2026-01-08 13:37:32 +01:00
parent 288de5b95b
commit 0578bec878
2 changed files with 105 additions and 21 deletions

View File

@@ -2,7 +2,18 @@ name: Sync PR to Project
on:
pull_request:
types: [opened, edited, ready_for_review, converted_to_draft, reopened, synchronize]
types:
[
opened,
assigned,
unassigned,
edited,
ready_for_review,
converted_to_draft,
reopened,
synchronize,
closed,
]
jobs:
sync-project:
@@ -14,11 +25,11 @@ jobs:
contents: read
env:
PROJECT_NUMBER: 3 # BEC Project
ORG: 'bec-project'
REPO: 'ophyd_devices'
TOKEN: ${{ secrets.ADD_ISSUE_TO_PROJECT }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PROJECT_NUMBER: 3 # BEC Project
ORG: "bec-project"
REPO: "ophyd_devices"
TOKEN: ${{ secrets.ADD_ISSUE_TO_PROJECT }}
PR_NUMBER: ${{ github.event.pull_request.number }}
steps:
- name: Set up python environment
@@ -37,4 +48,4 @@ jobs:
pip install -r ./.github/scripts/pr_issue_sync/requirements.txt
- name: Sync PR to Project
run: |
python ./.github/scripts/pr_issue_sync/pr_issue_sync.py
python ./.github/scripts/pr_issue_sync/pr_issue_sync.py