Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deepakputhraya/action-branch-name

Github action to enforce naming convention on branch names
https://github.com/deepakputhraya/action-branch-name

branching-strategies github-actions hacktoberfest pull-requests pullrequest pullrequests

Last synced: about 1 month ago
JSON representation

Github action to enforce naming convention on branch names

Awesome Lists containing this project

README

        

# Branch naming rules
GitHub Actions status

Github action to enforce naming convention on branch names

## Usage

See [action.yml](./action.yml)

```yaml
name: 'Assert Branch Naming Convention'
on: pull_request

jobs:
branch-naming-rules:
runs-on: ubuntu-latest
steps:
- uses: deepakputhraya/action-branch-name@master
with:
regex: '([a-z])+\/([a-z])+' # Regex the branch should match. This example enforces grouping
allowed_prefixes: 'feature,stable,fix' # All branches should start with the given prefix
ignore: master,develop # Ignore exactly matching branch names from convention
min_length: 5 # Min length of the branch name
max_length: 20 # Max length of the branch name
```

## License
The scripts and documentation in this project are released under the [MIT License](./LICENSE)