Skip to content

GitHub app to enforce Angular commit conventions for PR title

License

Notifications You must be signed in to change notification settings

coleHafner/semantic-pr-title

Repository files navigation

Semantic PR Title

A GitHub App built with Probot that enforces your PR title to match a user defined regex.

Config

Add a file @ .github/semantic-pr-title.yml with the following:

REGEX: <your regex here>

The default regex enforces the angular commit convention (first line) on your PR title: (build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([a-z0-9\\s]+\\))?(:\\s)([a-z0-9\\s]+)

Note that the regex is a string and \ must be escaped.

Setup

# Install dependencies
npm ci

# Run the bot
npm run dev

Usage

This app is hosted on Glitch and available on the GitHub marketplace.

Contributing

If you have suggestions for how pr-title-linter could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

License

ISC © 2019 Cole Hafner (https://colehafner.com)

About

GitHub app to enforce Angular commit conventions for PR title

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published