Skip to content

Commit d31e134

Browse files
committed
Fix for pull request finding
Review commenti Copilot: - #2113 (comment) Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
1 parent b5b6701 commit d31e134

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/pr-kind-label.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ jobs:
6565
REPO: ${{ github.repository }}
6666
run: |
6767
# Use the last /milestone directive in the PR body
68-
milestone=$(printf '%s' "$PR_BODY" | tr -d '\r' | grep '^/milestone ' | \
69-
sed 's|^/milestone ||' | tail -n 1)
68+
milestone=$(printf '%s' "$PR_BODY" | tr -d '\r' | sed -n 's|^/milestone ||p' | \
69+
tail -n 1)
7070
[ -z "$milestone" ] && exit 0
7171
gh pr edit "$PR_NUMBER" --repo "$REPO" --milestone "$milestone" || \
7272
echo "::warning::Milestone '$milestone' not found in repository"

0 commit comments

Comments
 (0)