Skip to content

Commit 6888786

Browse files
authored
Merge pull request cli#11423 from cli/babakks/fix-help-wanted-label-regexp
Fix `help wanted` label regexp in CI automation
2 parents 3d5675f + be67a35 commit 6888786

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/scripts/check-help-wanted.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ for issue_num in $CLOSING_ISSUES; do
5656
fi
5757

5858
# Check if 'help wanted' label exists
59-
if ! echo "$LABELS" | grep -q "help wanted"; then
59+
if ! echo "$LABELS" | grep -qE '^help wanted$'; then
6060
ISSUES_WITHOUT_HELP_WANTED+=("$issue_num")
6161
echo "Issue #$issue_num does not have 'help wanted' label"
6262
else
@@ -78,7 +78,7 @@ if [ ${#ISSUES_WITHOUT_HELP_WANTED[@]} -gt 0 ]; then
7878
gh pr comment "$PR_URL" --body-file - <<EOF
7979
Thank you for your pull request! 🎉
8080
81-
This PR appears to fix the following issues that are not labeled with \`help wanted\`:
81+
This PR appears to fix the following issues that are not labeled with https://github.com/cli/cli/labels/help%20wanted:
8282
8383
$ISSUE_LIST
8484
As outlined in our [Contributing Guidelines](https://github.com/cli/cli/blob/trunk/.github/CONTRIBUTING.md), we expect that PRs are only created for issues that have been labeled \`help wanted\`.

0 commit comments

Comments
 (0)