Skip to content

Commit 9bd4739

Browse files
committed
refactor: don't hardcode repository name
Part of #1610
1 parent 582cfb3 commit 9bd4739

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scripts/ci/connect-todos-to-issues.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ while IFS=$'\t' read PUZZLE_ID TICKET TITLE REST; do
113113
# NB: we search by body as a title isn't reliable: it might be modified after issue creation and don't match with code
114114
# (but later, we check a title anyway)
115115
debug "$PUZZLE_ID: search issues with a body that contain puzzle id '$PUZZLE_ID' or a title that is equal to '$TITLE'"
116-
SEARCH_BY_BODY="$(gh search issues --repo php-coder/mystamps --json number,state,url,title,body --match body "$PUZZLE_ID")"
116+
SEARCH_BY_BODY="$(gh search issues --repo "$GITHUB_REPOSITORY" --json number,state,url,title,body --match body "$PUZZLE_ID")"
117117
ISSUES_BY_BODY_COUNT="$(echo "$SEARCH_BY_BODY" | jq '. | length')"
118118
debug "$PUZZLE_ID: found $ISSUES_BY_BODY_COUNT issue(s) by body"
119119

120-
SEARCH_BY_TITLE="$(gh search issues --repo php-coder/mystamps --json number,state,url,title,body --match title "$TITLE")"
120+
SEARCH_BY_TITLE="$(gh search issues --repo "$GITHUB_REPOSITORY" --json number,state,url,title,body --match title "$TITLE")"
121121
ISSUES_BY_TITLE_COUNT="$(echo "$SEARCH_BY_TITLE" | jq '. | length')"
122122
debug "$PUZZLE_ID: found $ISSUES_BY_TITLE_COUNT issue(s) by title"
123123

0 commit comments

Comments
 (0)