-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[infra] Add PR title checker #1856
Changes from 4 commits
8eea8dd
00db578
924f4b5
1686cbe
a300842
c47590d
de0d356
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"LABEL": { | ||
"name": "The PR title has to contain a package name like \"[ffigen]\", or \"[infra]\".", | ||
"color": "EEEEEE" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's quite a strong warning color |
||
}, | ||
"CHECKS": { | ||
"prefixes": [ | ||
"[ffi] ", | ||
"[ffigen] ", | ||
"[infra] ", | ||
"[jni] ", | ||
"[jnigen] ", | ||
"[native_assets_builder] ", | ||
"[native_assets_cli] ", | ||
"[native_toolchain_c] ", | ||
"[objective_c] ", | ||
"[swift2objc] ", | ||
"[swiftgen] " | ||
] | ||
}, | ||
"MESSAGES": { | ||
"success": "All OK", | ||
"failure": "Failing CI test", | ||
"notice": "" | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe also add some ignore label to override? ;) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "PR Title Checker" | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- reopened | ||
- synchronize | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- reopened | ||
- synchronize | ||
- labeled | ||
- unlabeled | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: thehanimo/[email protected] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use hashes for github action versions https://blog.rafaelgss.dev/why-you-should-pin-actions-by-commit-hash |
||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
pass_on_octokit_error: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the label name, and not the description, IIUC. Might want to opt for something shorter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should just leave the label away completely. There's already a red/green bot checkmark/cross.