Skip to content

Commit

Permalink
fix: remove debugging output
Browse files Browse the repository at this point in the history
StephenHulme committed Oct 29, 2024
1 parent c516645 commit b7868d1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
@@ -38,29 +38,17 @@ jobs:
| .pr_number'
)
echo PR_NUMBERS
echo $PR_NUMBERS
# Fetch titles for each PR number
PR_NUMBERS_AND_TITLES=$(for PR_NUMBER in $PR_NUMBERS; do
gh pr view $PR_NUMBER --json number,title --jq '{number: .number, title: .title}'
done | jq -s 'sort_by(.title)')
echo PR_NUMBERS_AND_TITLES
echo $PR_NUMBERS_AND_TITLES
# Sort extracted PR numbers by title
SORTED_PR_NUMBERS=$(jq -r '.[].number' <<< "$PR_NUMBERS_AND_TITLES")
echo SORTED_PR_NUMBERS
echo $SORTED_PR_NUMBERS
STORIES=$(xargs -I {} gh pr view {} --json body --jq '.body | if . | test("Closes #\\d+") then capture("Closes #(?<issue_number>\\d+)") | "- #{}
- Closes #" + .issue_number else "- #{}" end' <<< "$SORTED_PR_NUMBERS") # Note the line-break on this line is for formatting
echo STORIES
echo $STORIES
# Format and write STORIES as a multiline string
echo "STORIES<<EOF" >> $GITHUB_ENV
echo "$STORIES" >> $GITHUB_ENV

0 comments on commit b7868d1

Please sign in to comment.