Check Branch Name
Actionscheck the naming convention of the pull request head branch if it follows the gitflow naming convention
v1
LatestBy Mhm0ud
This action will check the name of the pull request head branch follow the naming convention of the gitflow, and it will fail if it's not follow the below rules:
- The name of the PR head branch not started with feature/, hotfix/, bugfix/, and release/
- The hotfix PR not to the main branch.
name: "Test Branch Name"
on:
pull_request:
types: [opened, edited, reopened, synchronize]
jobs:
test_job:
runs-on: ubuntu-latest
name: A job to test branch name
steps:
- uses: mhm0ud/github-actions-gitflow@v1
Check Branch Name is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.