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

Don't allow changelog entries when the no-changelog label is also set #290

Closed

Conversation

webvictim
Copy link

@webvictim webvictim self-assigned this Nov 7, 2024
@webvictim webvictim requested a review from a team as a code owner November 7, 2024 20:49
@@ -56,6 +56,9 @@ func (b *Bot) CheckChangelog(ctx context.Context) error {
}

for _, changelogEntry := range changelogEntries {
if slices.Contains(pull.UnsafeLabels, NoChangelogLabel) {
Copy link
Contributor

Choose a reason for hiding this comment

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

At this point, the method will have already returned if there is a no-changelog label, from two blocks above. Also, this should probably not be in the loop - it does not need to be checked more than once.

@webvictim webvictim closed this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants