Skip to content

Feature/respawning #500

Feature/respawning

Feature/respawning #500

# This workflow requires that the following repository variables have been created:
# - `ORGANIZATION_PROJECT__STATUS_VALUE_FOR_ADDED_PULL_REQUESTS` - The value of the 'Status' field to set for pull requests when added to the project.
# in addition to the ones required by `_reusable_add-content-to-project.yml`.
name: Add pull requests to project
on:
pull_request:
types: [ opened, reopened, ready_for_review ]
jobs:
add_to_project:
# Don't run the job if it's a draft PR
if: ${{ !github.event.pull_request.draft }}
uses: ./.github/workflows/_reusable_add-content-to-project.yml
with:
content_id: ${{ github.event.pull_request.node_id }}
status_field_value_name: ${{ vars.ORGANIZATION_PROJECT__STATUS_VALUE_FOR_ADDED_PULL_REQUESTS }}
secrets: inherit