Skip to content
Latchkey

Auto close issues with "can't reproduce" label workflow (vuejs/core)

The Auto close issues with "can't reproduce" label workflow from vuejs/core, 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: vuejs/core.github/workflows/close-cant-reproduce-issues.ymlLicense MITView source

What it does

This is the Auto close issues with "can't reproduce" label workflow from the vuejs/core 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: Auto close issues with "can't reproduce" label

on:
  schedule:
    - cron: '0 0 * * *'

permissions:
  issues: write

jobs:
  close-issues:
    if: github.repository == 'vuejs/core'
    runs-on: ubuntu-latest
    steps:
      - name: can't reproduce
        uses: actions-cool/issues-helper@200c78641dbf33838311e5a1e0c31bbdb92d7cf0 # v3.0.0
        with:
          actions: 'close-issues'
          token: ${{ secrets.GITHUB_TOKEN }}
          labels: "can't reproduce"
          inactive-day: 3

The same workflow, on Latchkey

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

name: Auto close issues with "can't reproduce" label
 
on:
  schedule:
    - cron: '0 0 * * *'
 
permissions:
  issues: write
 
jobs:
  close-issues:
    timeout-minutes: 30
    if: github.repository == 'vuejs/core'
    runs-on: latchkey-small
    steps:
      - name: can't reproduce
        uses: actions-cool/issues-helper@200c78641dbf33838311e5a1e0c31bbdb92d7cf0 # v3.0.0
        with:
          actions: 'close-issues'
          token: ${{ secrets.GITHUB_TOKEN }}
          labels: "can't reproduce"
          inactive-day: 3
 

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.