You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Github app to validate commit message on a pull request
2
+
Github app to validate commit message and pull request title on a pull request
3
+
4
+
## Description
5
+
This app runs a format check on commit messages and pull request title on the creation of a pull request.
6
+
7
+
For example, let's say you specify that a commit message should have a format `DDD:message`. Here D stand for numeric digit. The app checks if the commit message follows this format. If all the commit messages follow this format, the check returns successful, otherwise failure. The reviewer can then decide if they want to go ahead with the code merge.
8
+
9
+
### App URL
10
+
https://github.com/apps/commit-message-validator
11
+
12
+
## Installation
13
+
14
+
Use the Github's app section or above URL to install the app to your repository.
15
+
16
+
## Setup
17
+
18
+
You would need to add a configuration file named `.validationconfig` to the root of your repository. The contents of that file will be:
19
+
20
+
```
21
+
PR_TITLE_REGEX=<PR Title Regex>
22
+
COMMIT_MESSAGE_REGEX=<Commit Message Regex>
23
+
```
24
+
25
+
## Usage
26
+
Go to the `checks` section on your PR to see the result of the check run performed by the app. It will show you the result as well as the commit messages which failed.
0 commit comments