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

Warn when fixing enhancements without changelog #274

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

CyberShadow
Copy link
Member

Fixes #178.

@dlang-bot
Copy link
Collaborator

dlang-bot commented May 27, 2021

Thanks for your pull request, @CyberShadow!

@@ -14,6 +14,27 @@ struct UserMessage
}


void checkEnhancementChangelog(in ref PullRequest pr, ref UserMessage[] msgs,
Copy link
Member

Choose a reason for hiding this comment

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

Don't use in ref please

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm using the same signature as the method below.

if (!diff.canFind("\n+++ b/changelog/"))
{
msgs ~= UserMessage(UserMessage.Type.Warning,
"Pull requests implementing enhancements should include a [full changelog entry](https://github.com/dlang/dmd/tree/master/changelog)."
Copy link
Member

Choose a reason for hiding this comment

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

Wait, won't this trigger for other repos too ?

Copy link
Member Author

Choose a reason for hiding this comment

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

As of #273 the list of refs for non-Bugzilla-using projects should be empty, which should match projects which use the changelog directory.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh I see what you mean, well spotted. Fix pushed.

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

Successfully merging this pull request may close these issues.

Require a verbose changelog entry for all enhancement bugs
4 participants