Skip to content

Commit 2f55ec4

Browse files
authored
fix(docs): update issue search query to stay focused to local repo (#466)
* fix(docs): update issue search query to stay focused to local repo previously our query was github wide, this keeps it local and searches for existing open stale issues report issue Signed-off-by: jmeridth <jmeridth@gmail.com> * fix: put secrets.ORGANIZATION back Signed-off-by: jmeridth <jmeridth@gmail.com> * fix: example issue query Thank you @zkoppert for double checking me. 🙇 Signed-off-by: jmeridth <jmeridth@gmail.com> --------- Signed-off-by: jmeridth <jmeridth@gmail.com>
1 parent b57b8d0 commit 2f55ec4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,11 @@ jobs:
122122
# This next step updates an existing issue. If you want a new issue every time, remove this step and remove the `issue-number: ${{ env.issue_number }}` line below.
123123
- name: Check for the stale report issue
124124
run: |
125-
ISSUE_NUMBER=$(gh search issues "Stale-repository-report" --match title --json number --jq ".[0].number")
125+
ISSUE_NUMBER=$(gh search issues "Stale-repository-report" --repo $REPO_WITH_OWNER --state open --match title --json number --jq ".[0].number")
126126
echo "issue_number=$ISSUE_NUMBER" >> "$GITHUB_ENV"
127127
env:
128128
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
129+
REPO_WITH_OWNER: ${{ github.repository }}
129130
130131
- name: Create issue
131132
uses: peter-evans/create-issue-from-file@v6

0 commit comments

Comments
 (0)