factory-complete-issue
GitHub自动将完成的 Factory 工作项关联的 GitHub Issue 标记为完成,移除相关状态标签,并根据 Issue 当前状态添加 pending-close 标签或发布通知评论。
Trigger Scenarios
Install
npx skills add mastra-ai/mastra --skill factory-complete-issue -g -y
SKILL.md
Frontmatter
{
"name": "factory-complete-issue",
"description": "Mark a GitHub issue as done and update its status labels"
}
Factory Complete Issue
Mark the GitHub issue behind a completed Factory work item as done and update its status labels.
Parse the issue URL or number from $ARGUMENTS, then read its current state and labels. Remove any of these labels that are present:
status: needs triagestatus: auto-triagedstatus: needs approval
Use gh issue edit to remove the listed triage labels. If the issue is open, add status: pending-close when it is not already present and post this comment unless the issue already has it:
This issue has now been marked as done.
If the issue is already closed, do not add status: pending-close or post the comment. Do not modify any other labels or issue fields.
Do not close, reopen, or assign the issue, and do not request another Factory transition.
Version History
- fb538c4 Current 2026-08-20 17:27


