summaryrefslogtreecommitdiff
path: root/.github/workflows/similar_issues_backfill.yml
blob: 7ba7c8e446a0427a16f1a00a68e5b2c5c2516188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Backfill Similar Issues

on:
  workflow_dispatch:
    inputs:
      dry_run:
        description: Log suggestions without posting comments
        required: true
        default: true
        type: boolean
      max_issues:
        description: Maximum open unassigned issues to inspect (1-50)
        required: true
        default: "20"
        type: string
      search_delay_seconds:
        description: Delay between GitHub searches (2-30 seconds)
        required: true
        default: "3"
        type: string

concurrency:
  group: similar-issues-backfill
  cancel-in-progress: false

permissions: {}

jobs:
  backfill:
    runs-on: ubuntu-22.04
    timeout-minutes: 55
    permissions:
      contents: read
      issues: write
    steps:
      - name: Checkout trusted workflow code
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
        with:
          persist-credentials: false

      - name: Inspect recent open issues
        env:
          GITHUB_TOKEN: ${{ github.token }}
          BACKFILL: "true"
          DRY_RUN: ${{ inputs.dry_run }}
          MAX_ISSUES: ${{ inputs.max_issues }}
          SEARCH_DELAY_SECONDS: ${{ inputs.search_delay_seconds }}
        run: python3 tools/ci/similar_issues.py