Skip to content

Mhm0ud/github-actions-gitflow

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check the PR head branch name

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:

  1. The name of the PR head branch not started with feature/, hotfix/, bugfix/, and release/
  2. The hotfix PR not to the main branch.

How to use:

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •