Skip to content

Commit 598c969

Browse files
authored
[infra] Add PR title checker (#1856)
1 parent 28757e0 commit 598c969

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/pr-title-checker-config.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"CHECKS": {
3+
"prefixes": [
4+
"[ffi] ",
5+
"[ffigen] ",
6+
"[infra] ",
7+
"[jni] ",
8+
"[jnigen] ",
9+
"[native_assets_builder] ",
10+
"[native_assets_cli] ",
11+
"[native_toolchain_c] ",
12+
"[objective_c] ",
13+
"[swift2objc] ",
14+
"[swiftgen] "
15+
],
16+
"ignoreLabels": [
17+
"skip-pr-title-check"
18+
]
19+
},
20+
"MESSAGES": {
21+
"success": "All OK",
22+
"failure": "The PR title has to contain a package name like \"[ffigen]\", or \"[infra]\".",
23+
"notice": ""
24+
}
25+
}
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "PR Title Checker"
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- edited
7+
- reopened
8+
- synchronize
9+
pull_request_target:
10+
types:
11+
- opened
12+
- edited
13+
- reopened
14+
- synchronize
15+
- labeled
16+
- unlabeled
17+
18+
jobs:
19+
check:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: thehanimo/pr-title-checker@7fbfe05602bdd86f926d3fb3bccb6f3aed43bc70
23+
with:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
pass_on_octokit_error: false

0 commit comments

Comments
 (0)