Skip to content

Commit

Permalink
[Automated] Update assign_pr_to_project caller workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ynbot committed Nov 26, 2024
1 parent ae66517 commit 4f9b515
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/assign_pr_to_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
name: 🔸Auto assign pr
on:
workflow_dispatch:
inputs:
pr_number:
type: number
description: "Run workflow for this PR number"
required: true
project_id:
type: number
description: "Github Project Number"
required: true
default: 16
pull_request:
types:
- opened
Expand All @@ -9,7 +20,7 @@ jobs:
uses: ynput/ops-repo-automation/.github/workflows/pr_to_project.yml@main
with:
repo: "${{ github.repository }}"
project_id: 16
pull_request_number: ${{ github.event.pull_request.number }}
project_id: ${{ inputs.project_id || 16 }}
pull_request_number: ${{ github.event.pull_request.number || inputs.pr_number }}
secrets:
token: ${{ secrets.YNPUT_BOT_TOKEN }}

0 comments on commit 4f9b515

Please sign in to comment.