- Add PR size label
- Run
tox
- Close stale PRs
- Check for offensive language
- 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> cancel
in a comment.
verified
andlgtm
are removed on new commits.
- Create a new file in
.github/workflows
directory. - Add relevant steps to the workflow.
- Code should be implemented in Python and placed in
.github/scripts
directory. - Make sure that the workflow is triggered only on relevant events.
- Set
ACTION
environment 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
verified
label was added and at least 2 approvals. - When a PR is opened, assign the PR to the PR owner
- When a PR is opened, add reviewers (requires updates to OWNERS file(s))
- When a PR is reviewed/commented by a user who's not the PR owner, add
reviewed|commented|approved-by-<username>
label - When a PR is ready to be merged (all checks passed), add
ready-to-merge
label - If a label is missing from the repository (i.e was manually deleted), add it back (label colors should be defined as well)
- Tests