branch-name-lint icon indicating copy to clipboard operation
branch-name-lint copied to clipboard

Github actions compatibility

Open TArch64 opened this issue 3 years ago • 1 comments

Hi guys. We have this tool on pre-push hook and it works fine but when I try to run it on github actions it fails with errors. Seems like this method returns incorrect name of branch https://github.com/barzik/branch-name-lint/blob/723b21604d83d96663ae8f8938608e6fb2897726/index.js#L84

Github logs image

Actual name of branch 962f9bf5ec80308b6f7b78c4c5d30828

Link to github actions: here

Actual behaviour: Ability to lint name of source branch in actions

TArch64 avatar Oct 20 '21 21:10 TArch64

As an option we can add ability to specify branch name to lint via env variable or cli option. Github allows to get name from env variable https://stackoverflow.com/a/58034787/9904159

TArch64 avatar Oct 20 '21 21:10 TArch64