Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: seperate line output when a release is missing changelog #1302

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

crozzy
Copy link
Contributor

@crozzy crozzy commented Apr 2, 2024

It was annoying as PRs that needed changelog entries were being displayed without line breaks so it was difficult to parse.

It was annoying as PRs that needed changelog entries were being
displayed without line breaks so it was difficult to parse.

Signed-off-by: crozzy <[email protected]>
@crozzy crozzy requested a review from a team as a code owner April 2, 2024 17:37
@crozzy crozzy requested review from hdonnay and removed request for a team April 2, 2024 17:37
@crozzy
Copy link
Contributor Author

crozzy commented Apr 2, 2024

@hdonnay I suspect you might have some better bash jiu jitsu

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.78%. Comparing base (395b041) to head (b579f37).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1302      +/-   ##
==========================================
+ Coverage   55.77%   55.78%   +0.01%     
==========================================
  Files         265      265              
  Lines       16557    16557              
==========================================
+ Hits         9235     9237       +2     
+ Misses       6362     6361       -1     
+ Partials      960      959       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -20,7 +20,7 @@ done
shift $((OPTIND - 1))
VERSION="${1:?need a version argument}"
VERSION="v${VERSION#v}"

IFS=
Copy link
Member

@hdonnay hdonnay Apr 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest something like:

gh search prs --state closed --merged --label=needs-changelog --json=title,url | jq -r '.[] | (.url | @text) + " - " + (.title | @text)' > /tmp/prs
if [ -s /tmp/prs ]; then
    echo "There are still PRs that need changelog entries"
    cat /tmp/prs
    exit 1
fi

@hdonnay
Copy link
Member

hdonnay commented Apr 16, 2024

Want me to push this over the finish line?

@crozzy
Copy link
Contributor Author

crozzy commented May 10, 2024

Want me to push this over the finish line?

Sure, sorry only just seen this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants