From 40f1ac1fdd0fbdc76ea2fa373fbf07ece091f573 Mon Sep 17 00:00:00 2001 From: matttrach Date: Tue, 19 Aug 2025 11:55:56 -0500 Subject: [PATCH 1/2] fix: give issue write permissions Signed-off-by: matttrach --- .github/workflows/main-issue.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main-issue.yml b/.github/workflows/main-issue.yml index aa12788..203b99d 100644 --- a/.github/workflows/main-issue.yml +++ b/.github/workflows/main-issue.yml @@ -2,13 +2,15 @@ name: MainIssue # This workflow generates a "main" issue when a PR is created targeting main. on: pull_request: - branches: - - main + branches: [main] + types: [opened] jobs: generate-issue: name: 'Create Main Issue' runs-on: ubuntu-latest + permissions: + issues: write steps: - uses: actions/github-script@v7 with: @@ -22,8 +24,8 @@ jobs: owner: owner, repo: repo, title: pr.title, - body: "This is the main issue tracking #" + pr.number + "\n\n" + - "Please add labels indicating the release versions eg. 'version/v0'\n" + + body: "This is the main issue tracking #" + pr.number + " \n\n" + + "Please add labels indicating the release versions eg. 'version/v0' \n" + "Please add comments for user issues which this issue addresses. \n" + "Description copied from PR: \n" + pr.body, labels: ['internal/main'] From 648b6beec73cb84c36213f573f8631bbc6a5b8ff Mon Sep 17 00:00:00 2001 From: matttrach Date: Tue, 19 Aug 2025 12:01:22 -0500 Subject: [PATCH 2/2] fix: try pull request target Signed-off-by: matttrach --- .github/workflows/main-issue.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main-issue.yml b/.github/workflows/main-issue.yml index 203b99d..3c7ce50 100644 --- a/.github/workflows/main-issue.yml +++ b/.github/workflows/main-issue.yml @@ -1,7 +1,7 @@ name: MainIssue # This workflow generates a "main" issue when a PR is created targeting main. on: - pull_request: + pull_request_target: branches: [main] types: [opened]