Skip to content

ci: add merge guard workflow for fixup commits and do-not-merge label#53

Open
shubhamdhama wants to merge 2 commits intocockroachdb:mainfrom
shubhamdhama:disallow-merge
Open

ci: add merge guard workflow for fixup commits and do-not-merge label#53
shubhamdhama wants to merge 2 commits intocockroachdb:mainfrom
shubhamdhama:disallow-merge

Conversation

@shubhamdhama
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@Nukitt Nukitt left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown

@suj-krishnan suj-krishnan left a comment

Choose a reason for hiding this comment

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

LGTM, except for the nit/query. Also, please add a one-line description. Thank you!

- name: Check for fixup or squash commits
run: |
git fetch origin ${{ github.base_ref }}
COMMITS=$(git log --oneline "origin/${{ github.base_ref }}..HEAD" --grep="^fixup!" --grep="^squash!" --format="%h %s")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit: do we need to check for 'squash!' in the commit message? (I don't see it being used). We can skip if it is not the convention.

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.

3 participants