Skip to content
Latchkey

Issue Commenter workflow (exercism/python)

The Issue Commenter workflow from exercism/python, explained and optimized by Latchkey.

A

CI health: A - excellent

Point runs-on at Latchkey and get job timeouts, self-healing for flaky steps, and up to 58% lower cost, applied automatically.

Grade your own workflow free or run it on Latchkey →
Source: exercism/python.github/workflows/issue-commenter.ymlLicense MITView source

What it does

This is the Issue Commenter workflow from the exercism/python 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

workflow (.yml)
name: "Issue Commenter"
on:
  issues:
    types: [opened]

jobs:
  comment-on-new-issue:
    runs-on: ubuntu-24.04
    name: Comments for every NEW issue.
    steps:
      - name: Checkout
        uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0

      - name: Read issue-comment.md
        id: issue-comment
        uses: juliangruber/read-file-action@271ff311a4947af354c6abcd696a306553b9ec18
        with:
          path: .github/issue-comment.md

      - name: Base comment
        uses: jd-0001/gh-action-comment-on-new-issue@c443e1151cc69b146fd6918cc983ec1bd27ab254
        with:
          message: "${{ steps.issue-comment.outputs.content }}"
          ignore-label: ":anger: prickle"

The same workflow, on Latchkey

Removes redundant runs and caps runaway jobs. Added and changed lines are highlighted.

name: "Issue Commenter"
on:
  issues:
    types: [opened]
 
jobs:
  comment-on-new-issue:
    timeout-minutes: 30
    runs-on: latchkey-small
    name: Comments for every NEW issue.
    steps:
      - name: Checkout
        uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
 
      - name: Read issue-comment.md
        id: issue-comment
        uses: juliangruber/read-file-action@271ff311a4947af354c6abcd696a306553b9ec18
        with:
          path: .github/issue-comment.md
 
      - name: Base comment
        uses: jd-0001/gh-action-comment-on-new-issue@c443e1151cc69b146fd6918cc983ec1bd27ab254
        with:
          message: "${{ steps.issue-comment.outputs.content }}"
          ignore-label: ":anger: prickle"
 

What changed

This workflow runs 1 job per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.

Actions used in this workflow