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

GREP for PR reference accepts references that are split over a line #2072

Merged
merged 1 commit into from
Mar 28, 2021
Merged

GREP for PR reference accepts references that are split over a line #2072

merged 1 commit into from
Mar 28, 2021

Conversation

MarkCBell
Copy link
Contributor

@MarkCBell MarkCBell commented Mar 28, 2021

Fixes #2070 by changing grep pattern used to search for the reference PR number in the github changelog workflow to be

PR( |\n\s*)#${{ github.event.pull_request.number }}[^0-9]

This matches PR #1234 or

xxxxxxxxxxx xxxxxxxxx xxxxxxxxx PR
   #1234 xxxxxxxxx xxxxxxxxxx

so CHANGES.md is still acceptable even if prettify requires that the PR reference be formatted to be split across two lines.

@MarkCBell
Copy link
Contributor Author

Please can a contributor add the "skip-news" label to this PR since this is fixing a bug in one of the github workflows it does not affect the behaviour of black.

@ichard26 ichard26 added the skip news Pull requests that don't need a changelog entry. label Mar 28, 2021
Copy link
Collaborator

@ichard26 ichard26 left a comment

Choose a reason for hiding this comment

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

Hey thanks for the PR! Looks good to me!

Pro-tip: use a keyword to have GitHub automatically close an issue when a PR is merged. This helps keep our (very chaotic) issue tracker slightly less chaotic :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news Pull requests that don't need a changelog entry.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Black's Changelog Entry and Lint checks that are run on PRs can contradict each other
3 participants