Skip to content

Block commits#2

Merged
hashhar merged 4 commits intotrinodb:mainfrom
nineinchnick:block-commits
Aug 12, 2022
Merged

Block commits#2
hashhar merged 4 commits intotrinodb:mainfrom
nineinchnick:block-commits

Conversation

@nineinchnick
Copy link
Copy Markdown
Member

To be used in trinodb/trino#13494

}
if (this.actionFixup == 'request-changes' || this.actionMerge == 'request-changes') {
const okMessage = 'PR no longer has any merge or fixup commits.';
const failPrefix = 'PR requires a rebase. Found: ';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should be careful requiring rebase.
whenever we do so, we should instruct to use

git rebase -i $(git merge-base master head)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Would you like me to add that to the message? Or can you suggest a better phrasing to avoid suggesting a rebase?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For merge commits the current wording is fine.
for fixups you can omit that for now. we can improve the wording once we start using this and can see this in practice

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I reworded both the ok and fail messages. PTAL.

Copy link
Copy Markdown
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

style comments % !amend and last comment about bot comment getting buried

@hashhar
Copy link
Copy Markdown
Member

hashhar commented Aug 10, 2022

Reminder to autosquash. 😉

@nineinchnick
Copy link
Copy Markdown
Member Author

nineinchnick commented Aug 10, 2022 via email

@hashhar
Copy link
Copy Markdown
Member

hashhar commented Aug 10, 2022

Then I worry about noise. But let's proceed with this and we can address feedback as it starts getting used.

LGTM from me % autosquash. @findepi PTAL if you have remaining comments.

@hashhar hashhar merged commit f72d191 into trinodb:main Aug 12, 2022
@nineinchnick nineinchnick deleted the block-commits branch April 14, 2025 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants