- Add PR size label
- Run
tox - Close stale PRs
- Check for offensive language
- Assign the PR to the author
- Add to or remove a label from PR; supported labels:
wip,lgtm,verified, andhold. - To add a new label, add
/<label name>in a comment. - To remove a label, add
/<label name> cancelin a comment.
verifiedandlgtmare removed on new commits. - To build and push image to quay, add
/build-push-pr-imagein a comment. This would create an image with tag pr-<pr_number> to quay repository. This image tag, however would be deleted on PR merge or close action.
- Create a new file in
.github/workflowsdirectory. - Add relevant steps to the workflow.
- Code should be implemented in Python and placed in
.github/scriptsdirectory. - Make sure that the workflow is triggered only on relevant events.
- Set
ACTIONenvironment variable in the workflow and use it in the code to identify the relevant workflow.
- Block merging if not all defined checks pass. For example: a
verifiedlabel was added and at least 2 approvals. - When a PR is opened, add reviewers (requires updates to OWNERS file(s))
- When a PR is ready to be merged (all checks passed), add
ready-to-mergelabel - If a label is missing from the repository (i.e was manually deleted), add it back (label colors should be defined as well)
- Tests