You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to allow only squash OR rebase as valid PR merge strategies (ref: #98). Which one is appropriate depends on context, but can't be enforced automatically.
Solution:
workflows/pull-request.yml should leave a bot comment on the PR saying something like This PR should be merged via <MERGE_STRATEGY> based on the following logic:
if (commits.length > 1 && all are conventional && none are fixups)
rebase
else if (commits.length > 1 && (some are fixups || some are not conventional))
squash
else
do nothing
The text was updated successfully, but these errors were encountered:
lukekarrys
changed the title
pull request action should surface if commit vs pr
pull request action should surface appropriate merge strategy
Mar 17, 2022
Just a side comment... should we be using --fixup, --amend, or refactor: for feedback commits? I'm thinking usually an amend/fixup, but a refactor if it is significant.
Problem:
We want to allow only squash OR rebase as valid PR merge strategies (ref: #98). Which one is appropriate depends on context, but can't be enforced automatically.
Solution:
workflows/pull-request.yml
should leave a bot comment on the PR saying something likeThis PR should be merged via <MERGE_STRATEGY>
based on the following logic:The text was updated successfully, but these errors were encountered: