Skip to content

Commit d4cb03c

Browse files
author
ynbot
committed
[Automated] Update assign_pr_to_project caller workflow
1 parent 1af1f3a commit d4cb03c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
name: 🔸Auto assign pr
22
on:
3+
workflow_dispatch:
4+
inputs:
5+
pr_number:
6+
type: number
7+
description: "Run workflow for this PR number"
8+
required: true
9+
project_id:
10+
type: number
11+
description: "Github Project Number"
12+
required: true
13+
default: 16
314
pull_request:
415
types:
516
- opened
@@ -9,7 +20,7 @@ jobs:
920
uses: ynput/ops-repo-automation/.github/workflows/pr_to_project.yml@main
1021
with:
1122
repo: "${{ github.repository }}"
12-
project_id: 16
13-
pull_request_number: ${{ github.event.pull_request.number }}
23+
project_id: ${{ inputs.project_id || 16 }}
24+
pull_request_number: ${{ github.event.pull_request.number || inputs.pr_number }}
1425
secrets:
1526
token: ${{ secrets.YNPUT_BOT_TOKEN }}

0 commit comments

Comments
 (0)