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

ci: Fix changelog-checker GHA workflow #14842

Merged
merged 2 commits into from
Oct 3, 2022
Merged

Conversation

eculver
Copy link
Contributor

@eculver eculver commented Oct 3, 2022

Description

I was recently working on some manual backports for 1.11 in #14828 and others and the changelog-checker workflow was failing despite having added a proper changelog entry. When I looked into it, it seems that there is some broken shell code in the action that is making it fail for the case where the base is not the default branch. In my case, the base branch was release/1.11.x.

Some history: it looks like back in #10844, there was a bit of a refactor/update to the checker logic that added this default branch case. I guess we just missed the bug in the code review.

In any case, this should fix it!

Testing & Reproduction steps

I tested this by pulling the body of the checker out into a shell script and manually running it with the arguments for my pull request. The contents of the script are here in case you want to try it yourself: https://gist.github.com/eculver/ff83d81e09e5e030f817cf6212c6951f

It should exit 0 on a successful run and output (along with some other debug output)

Found .changelog entry in PR!

@eculver eculver added the pr/no-changelog PR does not need a corresponding .changelog entry label Oct 3, 2022
@github-actions github-actions bot added the theme/contributing Additions and enhancements to community contributing materials label Oct 3, 2022
Copy link
Contributor

@mikemorris mikemorris left a comment

Choose a reason for hiding this comment

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

Thanks!

@eculver eculver merged commit 035e126 into main Oct 3, 2022
@eculver eculver deleted the eculver/fix-changelog-checker branch October 3, 2022 23:49
eculver added a commit that referenced this pull request Oct 3, 2022
eculver added a commit that referenced this pull request Oct 3, 2022
eculver added a commit that referenced this pull request Oct 3, 2022
eculver added a commit that referenced this pull request Oct 3, 2022
eculver added a commit that referenced this pull request Oct 4, 2022
eculver added a commit that referenced this pull request Oct 4, 2022
eculver added a commit that referenced this pull request Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/no-changelog PR does not need a corresponding .changelog entry theme/contributing Additions and enhancements to community contributing materials
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants