From 38e8dc1103cc0149038a7486795ed9a985789d82 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Mon, 3 Aug 2026 23:56:04 +0200 Subject: [PATCH 1/3] save the repository to a env name --- action.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yaml b/action.yaml index 029e965..7b4b1ad 100644 --- a/action.yaml +++ b/action.yaml @@ -71,6 +71,7 @@ runs: CREATOR: "app/github-actions" ISSUE_BODY: ${{ steps.formatter.outputs.ISSUE_BODY }} GH_TOKEN: ${{ github.token }} + REPOSITORY: ${{ github.repository }} run: | issues=$( gh issue list \ From 44602f550171424e21a5650726d3c0f19af9657d Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Mon, 3 Aug 2026 23:56:23 +0200 Subject: [PATCH 2/3] tell `gh` which repository to query / modify --- action.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yaml b/action.yaml index 7b4b1ad..7920b1a 100644 --- a/action.yaml +++ b/action.yaml @@ -75,6 +75,7 @@ runs: run: | issues=$( gh issue list \ + --repo "$REPOSITORY" \ -S "in:title $ISSUE_TITLE" \ --state open \ --author $CREATOR \ @@ -84,10 +85,12 @@ runs: if [[ $(echo "$issues" | jq 'length') -eq 1 ]]; then gh issue edit \ + --repo "$REPOSITORY" \ "$(echo "$issues" | jq '.[] | .number')" \ --body-file $ISSUE_BODY else gh issue new \ + --repo "$REPOSITORY" \ --assignee "$ASSIGNEES" \ --label "$ISSUE_LABEL" \ --title "$ISSUE_TITLE" \ From 9b0ca8cebb7e169c287f2bafabb38388bed693ec Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Mon, 3 Aug 2026 23:57:13 +0200 Subject: [PATCH 3/3] use the pre-set `GITHUB_REPOSITORY` env variable instead --- action.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/action.yaml b/action.yaml index 7920b1a..5c9bfb4 100644 --- a/action.yaml +++ b/action.yaml @@ -71,11 +71,10 @@ runs: CREATOR: "app/github-actions" ISSUE_BODY: ${{ steps.formatter.outputs.ISSUE_BODY }} GH_TOKEN: ${{ github.token }} - REPOSITORY: ${{ github.repository }} run: | issues=$( gh issue list \ - --repo "$REPOSITORY" \ + --repo "$GITHUB_REPOSITORY" \ -S "in:title $ISSUE_TITLE" \ --state open \ --author $CREATOR \ @@ -85,12 +84,12 @@ runs: if [[ $(echo "$issues" | jq 'length') -eq 1 ]]; then gh issue edit \ - --repo "$REPOSITORY" \ + --repo "$GITHUB_REPOSITORY" \ "$(echo "$issues" | jq '.[] | .number')" \ --body-file $ISSUE_BODY else gh issue new \ - --repo "$REPOSITORY" \ + --repo "$GITHUB_REPOSITORY" \ --assignee "$ASSIGNEES" \ --label "$ISSUE_LABEL" \ --title "$ISSUE_TITLE" \