/ga-pull-requests-projects

Github Actions: Add Newly Created Pull Request to the First Project Board

Primary LanguageJavaScriptMIT LicenseMIT

Add pull request to project

A javascript github action to add a pull request to the first project on the repository.

NOTE: If you have more than one project, this might not work.

Usage

name: 'add new pull request to project board'

on:
  pull_request:
    branches:
    - master
    types:
    - opened
 
jobs:
  add_to_project:
    runs-on: ubuntu-latest
    steps:
    - uses: AdityaGovardhan/ga-pull-requests-projects@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        repository: ${{ github.repository }}
        pull_request: ${{ github.event.pull_request.number }}

References:

github javascript action tutorial

secrets github token