Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 789 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 789 Bytes

GitHub Actions - Add PR to project

Add community-created pull requests to the Community Contributions project when they're opened.

Usage

.github/workflows/add-pr-to-project.yml

name: Add new PRs to github project

on:
  pull_request:
    types:
      - opened
      - ready_for_review

permissions: {}

jobs:
  addprtoproject:
    name: Add PR to GitHub Project
    # Only run on the silverstripe account
    if: github.repository_owner == 'silverstripe'
    runs-on: ubuntu-latest
    steps:
      - name: Add PR to github project
        uses: silverstripe/add-pr-to-project@v1
        with:
          app_id: ${{ vars.MY_APP_ID }}
          private_key: ${{ secrets.MY_PRIVATE_KEY }}

This action has no inputs.