-
Notifications
You must be signed in to change notification settings - Fork 32
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
adding pr description conventions #440
base: main
Are you sure you want to change the base?
Conversation
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.
Orca Security Scan Summary
Status | Check | Issues by priority | |
---|---|---|---|
Passed | Infrastructure as Code | 0 0 0 0 | View in Orca |
Passed | Vulnerabilities | 0 0 0 0 | View in Orca |
Passed | Secrets | 0 0 0 0 | View in Orca |
…ion_requirements.cm
A screenshot of the relevant part of docs after the changes is a life saver 🛟 |
pr_description_checklist: | ||
if: | ||
- {{ pr.description | includes(regex=r/\-\[\]/) }} | ||
run: | ||
- action: add-label@v1 | ||
args: | ||
label: "Missing Checklist Items" | ||
color: {{ colors.yellow }} | ||
- action: request-changes@v1 | ||
args: | ||
comment: | | ||
Please complete the PR checklist before requesting a code review. |
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.
How about doing 2 checks, one for optional checklist items and one for mandatory. We cna suggest that a check list item that marked as mandatory blocks PR with request change and that optionl one result in a missing
label.
- optional
- mandatory *
for the baove mandatory regex is r/\- \[ \].*\*$/
automations: | ||
pr_description_checklist: | ||
if: | ||
- {{ pr.description | includes(regex=r/\-\[\]/) }} |
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.
the original regex doesnt cover GitHub markdown checkbox - [ ]
which has spaces
- {{ pr.description | includes(regex=r/\-\[\]/) }} | |
- {{ pr.description | includes(regex=r/\- \[ \]/) }} |
No description provided.