| name | ci-auxiliary |
| description | GitHub repository automation: PR label, PR size label, PR milestone, issue milestone, auto cherry-pick, comment issue, GitHub Actions runner enable/delete, actions cache cleanup, feishu-message, webhook_utils.sh Use when changing label rules, milestone policies, cherry-pick targets, runner management, or bot message formats.
|
CI Auxiliary
This skill covers PR / issue / milestone / cherry-pick automation.
Related Files
Workflows
Utils
utils.sh Type Quick Reference
| Type | Operation |
|---|
| 15 | Comment on issue |
| 21 | Set PR size label |
| 22 | Set PR milestone |
| 23 | Set issue milestone |
| 24 | Move PR/issue to next milestone |
| 30 | Delete actions cache |
| 44 | Get GitHub Actions job URL |
Common Tasks
1. Change PR size label rules
bash ./.github/utils/utils.sh --type 21 \
--github-repo "${{ github.repository }}" \
--github-token "${{ env.GITHUB_TOKEN }}" \
--pr-number "${{ github.event.pull_request.number }}"
The rule logic lives in utils.sh function set_size_label, typically classifying diffs into size/XS through size/XXL.
2. Add a new cherry-pick target branch
Configure target branches and trigger labels in pull-request-cherry-pick-auto.yml. Notes:
- Trigger labels usually look like
cherry-pick release-x.y.
- On failure, the workflow creates a comment to alert maintainers.
3. Adjust issue auto-comments
comment-issue.yml calls utils.sh --type 15. To change comment content, update the comment_issue function or workflow parameters.
4. Delete actions cache
bash ./.github/utils/utils.sh --type 30 \
--github-repo <repo> \
--github-token <token>
Related Skills