triage
Triage a GitHub issue (set component, priority, size, milestone)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Triage a GitHub issue (set component, priority, size, milestone)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Commit changes with a clean commit message
Commit, push, and open a pull request
Commit, push, and open a pull request with auto-merge
Commit, push, and open a merge request
Commit, push, and open a merge request with auto-merge
Commit changes with a clean commit message
| name | triage |
| description | Triage a GitHub issue (set component, priority, size, milestone) |
First, run these commands and review their output:
gh repo view --json nameWithOwner --jq '.nameWithOwner'To set project fields, you need the project item ID (not the issue number):
gh project item-list {project_number} --owner {owner} --limit 300 --format json | jq '.items[] | select(.content.number == ISSUE_NUMBER) | .id'
gh project item-edit --id {item-id} --project-id {project-id} --field-id {field-id} --single-select-option-id {option-id}
Check if an issue type is set:
gh api repos/{owner}/{repo}/issues/{number} --jq '.type.name // empty'
Set an issue type (only if not already set):
gh api -X PATCH repos/{owner}/{repo}/issues/{number} --field type=Bug
Valid types: Bug, Feature, Task
Find an issue's parent (for sub-issues):
gh api graphql -f query='
{
repository(owner: "{owner}", name: "{repo}") {
issue(number: ISSUE_NUMBER) {
parent {
number
title
}
}
}
}'
Get the parent's project fields (to copy them):
gh project item-list {project_number} --owner {owner} --limit 300 --format json | jq '.items[] | select(.content.number == PARENT_NUMBER)'
Check current milestone:
gh api repos/{owner}/{repo}/issues/{number} --jq '.milestone.title // empty'
Set a milestone (use the milestone number, not title):
gh api -X PATCH repos/{owner}/{repo}/issues/{number} --field milestone={milestone-number}
Based on the user's request:
gh api repos/{owner}/{repo}/issues/{number} --jq '{title, body, type: .type.name}'gh project item-editgh api -X PATCHgh api -X PATCH