-
Notifications
You must be signed in to change notification settings - Fork 66
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
workflow: create docs-check #1311
Conversation
e287017
to
aedaa62
Compare
I believe this PR can now be merged :-) |
Just to be sure, will this block PRs that will reflect in documentation change for 1.1 ? |
@patrickelectric I'm not sure what you mean by this. The idea is it will block merging PRs that are marked as needing documentation (i.e. with the I'm considering "written" to be "an approved PR into the |
types: | ||
- opened | ||
- labeled | ||
- unlabeled |
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.
unlabeled is unnecessary, since we are tracking a label.
types: | |
- opened | |
- labeled | |
- unlabeled | |
on: | |
pull_request: | |
types: [opened, labeled] |
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.
I think the CI check should still run on an unlabeled PR - worst case it's just seen as one more passing test, but best case it might remind the submitter to add a docs label if it's relevant to do so. We also want it to re-run if the docs-needed
label gets removed (e.g. if it was put there accidentally), which I'm assuming this would help with?
if: contains(github.event.pull_request.labels.*.name, 'docs-needed') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Fail if PR needs accompanying docs to be written |
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.
Probably you'll prefer this: https://github.com/marketplace/actions/comment-pull-request
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.
I feel like a CI check is more relevant - it's not necessary to have an automated comment history saying "please write docs" if they haven't been written yet, and a comment is less of a mental block to merging something in (the point being to make the merger stop and think before doing so if there's a 'failing test').
Provides a fail indicator for PRs with the "docs-needed" label. Process found at https://stackoverflow.com/a/71504928/15326510
aedaa62
to
45f2f62
Compare
Provides a fail indicator for PRs with the "docs-needed" label.
Process found at https://stackoverflow.com/a/71504928/15326510
DO NOT MERGE until BlueOS-1.1 base docs have been published.