Loading...
Loading...
Compare original and translation side by side
| Task | Use This Skill | Use |
|---|---|---|
| Run tests on every PR | ✅ | ❌ |
| Build and publish a Docker image | ✅ | ❌ |
| Deploy to GitHub Pages | ✅ | ❌ |
| Check if PR matches the spec | ❌ | ✅ |
| Daily repo health report | ❌ | ✅ |
| Code review with AI judgment | ❌ | ✅ |
| 任务 | 使用此工具 | 使用 |
|---|---|---|
| 为每个PR运行测试 | ✅ | ❌ |
| 构建并发布Docker镜像 | ✅ | ❌ |
| 部署到GitHub Pages | ✅ | ❌ |
| 检查PR是否符合规范 | ❌ | ✅ |
| 每日仓库健康报告 | ❌ | ✅ |
| 基于AI判断的代码审查 | ❌ | ✅ |
pull_requestpushworkflow_dispatchschedulereleasepull_requestworkflow_dispatchschedulereleasepython ~~agent-scaffolders-root/scripts/scaffold_github_action.py \
--skill-dir <path-to-skill-directory> \
--category <test|build|lint|deploy|release|security|maintenance|custom> \
--platform <python|nodejs|go|docker|dotnet|generic> \
[--triggers pull_request push schedule workflow_dispatch] \
[--name "My Workflow Name"] \
[--branch main].yml.github/workflows/python ~~agent-scaffolders-root/scripts/scaffold_github_action.py \
--skill-dir <path-to-skill-directory> \
--category <test|build|lint|deploy|release|security|maintenance|custom> \
--platform <python|nodejs|go|docker|dotnet|generic> \
[--triggers pull_request push schedule workflow_dispatch] \
[--name "My Workflow Name"] \
[--branch main].github/workflows/.ymlPYPI_TOKENNPM_TOKENDOCKER_PASSWORDDEPLOY_KEY@v4@v3contents: readPYPI_TOKENNPM_TOKENDOCKER_PASSWORDDEPLOY_KEY@v4@v3contents: read| Trigger | Fires when | Common for |
|---|---|---|
| PR opened/updated | Tests, lint, security |
| Branch pushed | Deploy, release checks |
| On a time schedule | Maintenance, reports |
| Manual button click | Deploys, one-off jobs |
| Release published | Package publishing |
| Issue opened/labeled | Triage, notifications |
| Called by another workflow | Reusable sub-workflows |
| 触发器 | 触发时机 | 常见用途 |
|---|---|---|
| PR创建/更新时 | 测试、代码检查、安全扫描 |
| 分支推送时 | 部署、发布检查 |
| 定时触发 | 维护任务、报告生成 |
| 手动点击按钮触发 | 部署、一次性任务 |
| 版本发布时 | 包发布 |
| 议题创建/标记时 | 分类处理、通知 |
| 被其他工作流调用时 | 可复用子工作流 |
permissions:
contents: read # Read repo files
contents: write # Commit files, push
pull-requests: write # Comment on PRs
issues: write # Create/update issues
packages: write # Publish packages
id-token: write # OIDC (for cloud deploys)Always declare minimum required permissions. Thegrants no permissions by default unless declared.GITHUB_TOKEN
permissions:
contents: read # 读取仓库文件
contents: write # 提交文件、推送
pull-requests: write # 对PR添加评论
issues: write # 创建/更新议题
packages: write # 发布包
id-token: write # OIDC(用于云部署)始终声明最小必要权限。默认情况下,不授予任何权限,除非明确声明。GITHUB_TOKEN
undefinedundefinedundefinedundefinedaudit-pluginaudit-plugin