Welcome New Contributor workflow (boshi-xixixi/TraeSkill)
The Welcome New Contributor workflow from boshi-xixixi/TraeSkill, explained and optimized by Latchkey.
CI health: C - fair
Point runs-on at Latchkey and get run de-duplication, job timeouts, self-healing for flaky steps, and up to 58% lower cost, applied automatically.
What it does
This is the Welcome New Contributor workflow from the boshi-xixixi/TraeSkill repository, a real project running GitHub Actions. It is shown here with attribution under its MIT license.
Below, Latchkey shows a faster, safer version produced by its optimization engine.
The workflow
name: Welcome New Contributor
on:
pull_request:
types: [opened]
issues:
types: [opened]
jobs:
welcome:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: |
🎉 感谢你的第一个 Pull Request!
我们会尽快审查你的贡献。在等待期间,请确保:
- PR 描述清晰说明了变更内容
- 遵循了 [贡献指南](../CONTRIBUTING.md)
- 如有新增 Skill,已包含 SKILL.md 和 AGENTS.md
issue-message: |
👋 感谢你提交第一个 Issue!
我们会尽快处理你的反馈。如果是新 Skill 提案,欢迎参考现有 Skill 的结构来完善你的建议。
The same workflow, on Latchkey
Removes redundant runs and caps runaway jobs. Added and changed lines are highlighted.
name: Welcome New Contributor on: pull_request: types: [opened] issues: types: [opened] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: welcome: timeout-minutes: 30 runs-on: latchkey-small steps: - uses: actions/first-interaction@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} pr-message: | 🎉 感谢你的第一个 Pull Request! 我们会尽快审查你的贡献。在等待期间,请确保: - PR 描述清晰说明了变更内容 - 遵循了 [贡献指南](../CONTRIBUTING.md) - 如有新增 Skill,已包含 SKILL.md 和 AGENTS.md issue-message: | 👋 感谢你提交第一个 Issue! 我们会尽快处理你的反馈。如果是新 Skill 提案,欢迎参考现有 Skill 的结构来完善你的建议。
What changed
- Run on Latchkey managed runners with one line (
runs-on), which apply the fixes below automatically and self-heal transient failures. This example useslatchkey-small; pick the runner size that fits the job. - Cancel superseded runs when a branch or PR gets a newer push.
- Add a job timeout so a hung step cannot burn hours of runner time.
This workflow runs 1 job per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.