Skip to content

Commit

Permalink
Yet another fix to the new releasing script
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Feb 4, 2025
1 parent 6cc5e4a commit c5c0be0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ for commit in $(git log --pretty=%H $latest_tag..origin/main --reverse); do
summary="$(git show -s --format=%s $commit)"
echo "Found commit ${commit:0:10}: $summary"

pr_number="$(echo "$summary" | grep -oE '\(#[0-9]+\)$' | grep -oE '[0-9]+')"
if [ -n "$pr_number" ]; then
# Parse PR number, if any
if [[ $summary =~ \(\#([0-9]+)\)$ ]]; then
pr_number=${BASH_REMATCH[1]}
if curl -s -H "$auth_header" https://api.github.com/repos/Akuli/jou/pulls/$pr_number | jq -r '.labels[].name' | grep -q '^skip-release$'; then
echo " Skipping because pull request #$pr_number has the 'skip-release' label"
continue
Expand Down

0 comments on commit c5c0be0

Please sign in to comment.