Repository navigation
59 lines (53 loc) · 1.61 KB
/
Copy pathsimilar-issues-backfill.yml
File metadata and controls
59 lines (53 loc) · 1.61 KB
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
49
50
51
52
53
54
55
56
57
58
59
name: Backfill Similar Issues
on:
workflow_dispatch:
inputs:
dry_run:
description: Log suggestions without posting comments
required: false
default: false
type: boolean
max_issues_per_chunk:
description: Maximum issues per chunk; 0 processes the full backlog
required: false
default: "0"
type: string
permissions:
contents: read
concurrency:
group: similar-issues-backfill
cancel-in-progress: false
jobs:
backfill:
name: Backfill chunk ${{ matrix.chunk_index }}
runs-on: ubuntu-latest
timeout-minutes: 55
strategy:
fail-fast: false
max-parallel: 1
matrix:
chunk_index: [0, 1, 2]
steps:
- uses: actions/checkout@v7.0.1
- name: Create PanDB bot token
id: app-token
uses: actions/create-github-app-token@v3.3.0
with:
app-id: ${{ vars.DBX_BOT_APP_ID }}
private-key: ${{ secrets.DBX_BOT_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: dbx
permission-issues: write
- name: Setup Node.js
uses: actions/setup-node@v7.1.0
with:
node-version: 26.13.0
- name: Backfill similar issue suggestions
run: node .github/scripts/backfill-similar-issues.mjs
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
BACKFILL_CHUNK_INDEX: ${{ matrix.chunk_index }}
BACKFILL_CHUNK_COUNT: "3"
BACKFILL_MAX_ISSUES: ${{ inputs.max_issues_per_chunk }}
BACKFILL_SEARCH_DELAY_MS: "7000"
DRY_RUN: ${{ inputs.dry_run }}