AdityaGovardhan / ga-pull-requests-projects

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

Home Page:https://github.com/marketplace/actions/add-new-pull-request-to-project-board

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://github.com/marketplace/actions/add-new-pull-request-to-project-board

License:MIT License


Languages

Language:JavaScript 100.0%