Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/duart38/branch-convention-check
- Owner: duart38
- License: mit
- Created: 2022-09-30T14:48:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-05T09:19:56.000Z (over 2 years ago)
- Last Synced: 2024-05-01T23:18:45.575Z (9 months ago)
- Topics: actions, branch-name-lint, branch-name-validation, branch-protection, github-actions
- Language: TypeScript
- Homepage:
- Size: 209 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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```