WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
# pr-lint-action
2
2
3
-
A GitHub Action that verifies your pull request contains a reference to a ticket. It will optionally check the PR title contains `[PROJ-1234]` and the branch contains PROJ-1234 or PROJ_1234. This helps ensure every PR gets mapped to a ticket in Jira!
3
+
A GitHub Action that verifies your pull request contains a reference to a ticket. It will optionally check the PR title contains `[PROJ-1234]` and the branch contains `PROJ-1234` or `PROJ_1234`. This helps ensure every PR gets mapped to a ticket in Jira.
4
4
5
5
## Usage
6
6
7
-
Add `.github/pr-lint.workflow` with the following:
7
+
Add `.github/main.workflow` with the following:
8
8
9
9
```
10
-
workflow "PR Lint Action" {
10
+
workflow "Lint your PRs" {
11
11
on = "pull_request"
12
12
resolves = "PR Lint Action"
13
13
}
@@ -49,4 +49,8 @@ PASS ./index.test.js
49
49
✓ passes if check_branch and check_title is true and both match (58ms)
50
50
✓ passes if ignore_case and lower case title/branch (55ms)
51
51
✓ fails if not ignore_case and lower case title/branch (109ms)
52
-
```
52
+
```
53
+
54
+
## Contributing
55
+
56
+
If you have other things worth automatically checking for in your PRs, please submit a pull request.
0 commit comments