Skip to content

Commit 006d9da

Browse files
andrewbranchJack-Works
authored andcommitted
Allow triggering twoslash bisection manually (microsoft#48721)
1 parent df6e8bf commit 006d9da

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/twoslash-repros.yaml

+9-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ on:
1111
issues:
1212
types:
1313
- labeled
14-
workflow_dispatch: {}
14+
workflow_dispatch:
15+
inputs:
16+
bisect_issue:
17+
description: Triggers a bisect request on the given issue number instead of updating repros on all issues
18+
required: false
19+
type: string
1520

1621
jobs:
1722
run:
18-
if: ${{ !github.event.label }}
23+
if: ${{ !github.event.label && !github.event.inputs.bisect_issue }}
1924
runs-on: ubuntu-latest
2025
steps:
2126
- name: Use node
@@ -25,7 +30,7 @@ jobs:
2530
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
2631

2732
bisect:
28-
if: ${{ github.event.label.name == 'Bisect Repro' }}
33+
if: ${{ github.event.label.name == 'Bisect Repro' || github.event.inputs.bisect_issue }}
2934
runs-on: ubuntu-latest
3035
steps:
3136
- uses: actions/checkout@v3
@@ -37,4 +42,4 @@ jobs:
3742
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
3843
with:
3944
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
40-
bisect: ${{ github.event.issue.number }}
45+
bisect: ${{ github.event.issue.number || github.event.inputs.bisect_issue }}

0 commit comments

Comments
 (0)