13rac1 / block-fixup-merge-action

Github Action to block merge of Pull Requests containing fixup! or squash! commits
MIT License
46 stars 14 forks source link

Gets branch name wrong and fails #15

Closed sporksmith closed 3 years ago

sporksmith commented 4 years ago

Example output:

Current ref: refs/pull/790/merge
(snip)
Current branch: 90/merge

I believe the error is on this line: https://github.com/13rac1/block-fixup-merge-action/blob/a82405273693189df42d8aba5f3d0553d2dc77f2/entrypoint.sh#L6

13rac1 commented 3 years ago

Similar issue with tags :thinking:

Current ref: refs/tags/2.1.2
Current branch: .1.2

Needs to run on refs/heads/* only.