Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/duart38/branch-convention-check

Checks if newly created branches follow a convention defined within a regular expression
https://github.com/duart38/branch-convention-check

actions branch-name-lint branch-name-validation branch-protection github-actions

Last synced: 4 days ago
JSON representation

Checks if newly created branches follow a convention defined within a regular expression

Awesome Lists containing this project

README

        

# Branch convention checking
## Usage

```yml
name: Check branch convention usage
on:
pull_request:
types: [opened]

jobs:
branching:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Check the branch convention usage
uses: duart38/[email protected]
with:
standard_branch_check: '(\b(?:fix|feat|ci|patch)\b(-([0-9])+|)\b(?:-[a-z]{3,})+\b)'
ignore_branch_check: '(\b(?:testing)\b(-([0-9])+|)\b(?:-[a-z]{3,})+\b)'
ignore: 'main' # No-space comma separated branches to ignore. above regex will be checked BEFORE this runs

```