From 3b604480fbc742e8f8320c0c699da7c385e4855b Mon Sep 17 00:00:00 2001 From: baxyz Date: Wed, 29 Jul 2026 16:02:46 +0000 Subject: [PATCH 1/2] =?UTF-8?q?fix(workflows):=20=F0=9F=94=92=EF=B8=8F=20m?= =?UTF-8?q?ove=20auto-assign=20to=20real=20.github/workflows/=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5 --- .github/workflows/auto-assign.yml | 12 ++++++++ workflows/auto-assign.yml | 48 ------------------------------- 2 files changed, 12 insertions(+), 48 deletions(-) create mode 100644 .github/workflows/auto-assign.yml delete mode 100644 workflows/auto-assign.yml diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..8de4ff9 --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,12 @@ +name: Auto Assign +on: + issues: + types: [opened] + pull_request: + types: [opened] +jobs: + run: + uses: helpers4/.github/.github/workflows/reusable-auto-assign.yml@main + with: + assignees: baxyz + numOfAssignee: 1 diff --git a/workflows/auto-assign.yml b/workflows/auto-assign.yml deleted file mode 100644 index 4ddd74a..0000000 --- a/workflows/auto-assign.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Auto-assign Issues and PRs - -on: - issues: - types: [opened] - pull_request: - types: [opened] - -jobs: - auto-assign: - runs-on: ubuntu-latest - - steps: - - name: Assign issue to baxyz - if: github.event_name == 'issues' - uses: actions/github-script@v7 - with: - script: | - github.rest.issues.addAssignees({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - assignees: ['baxyz'] - }); - - - name: Assign PR to baxyz - if: github.event_name == 'pull_request' - uses: actions/github-script@v7 - with: - script: | - github.rest.issues.addAssignees({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - assignees: ['baxyz'] - }); - - - name: Add labels to issue - if: github.event_name == 'issues' - uses: actions/github-script@v7 - with: - script: | - github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - labels: ['triage'] - }); From a506cad7b07367054ddd22bd8243d0f87b256b73 Mon Sep 17 00:00:00 2001 From: baxyz Date: Wed, 29 Jul 2026 18:29:01 +0000 Subject: [PATCH 2/2] =?UTF-8?q?fix(workflows):=20=F0=9F=94=92=EF=B8=8F=20a?= =?UTF-8?q?dd=20explicit=20permissions=20block=20to=20auto-assign?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5 --- .github/workflows/auto-assign.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index 8de4ff9..fb336fa 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -1,4 +1,9 @@ name: Auto Assign + +permissions: + issues: write + pull-requests: write + on: issues: types: [opened]