branch-name-lint
branch-name-lint copied to clipboard
Github actions compatibility
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
Actual name of branch
Link to github actions: here
Actual behaviour: Ability to lint name of source branch in actions
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