-
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
Conversation
@mosuem I think this is roughly what we want. WDYT? |
.github/pr-title-checker-config.json
Outdated
{ | ||
"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 comment
The reason will be displayed to describe this comment to others. Learn more.
That's quite a strong warning color
.github/pr-title-checker-config.json
Outdated
@@ -0,0 +1,26 @@ | |||
{ | |||
"LABEL": { | |||
"name": "The PR title has to contain a package name like \"[ffigen]\", or \"[infra]\".", |
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.
"failure": "Failing CI test", | ||
"notice": "" | ||
} | ||
} |
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 also add some ignore label to override? ;)
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: thehanimo/[email protected] |
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.
Use hashes for github action versions https://blog.rafaelgss.dev/why-you-should-pin-actions-by-commit-hash
Thanks @mosuem! 🙏 |
Dogfooding dart-lang/ecosystem#332 (comment).