Skip to content

About

Automatically add an issue or pull request to specific GitHub Project when you create them.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

56 Commits

Folders and files

Repository files navigation

GitHub Action for Assign to One Project

Docker Cloud Automated build Docker Cloud Build Status Docker Pulls Docker Stars GitHub license

Automatically add an issue or pull request to specific GitHub Project when you create them. By default, the issues are assigned to the To do column and the pull requests to the In progress one, so make sure you have those columns in your project dashboard.

Acknowledgment & Motivations

This action has been modified from the original action from masutaka. I needed to fix it as the original docker container would not build. Also I think the GitHub Action syntax changed a bit.

Inputs

project

Required The url of the project to be assigned to.

Example usage

Examples of action:

Repository project

name: Auto Assign Project

on: [pull_request, issues]
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
  assign_one_project:
    runs-on: ubuntu-latest
    name: Assign to One Project
    steps:
    - name: Run assignment to one project
      uses: srggrs/assign-one-project-github-action@1.1.0
      if: github.event.action == 'opened' # not required but speed up the action
      with:
        project: 'https://github.com/srggrs/assign-one-project-github-action/projects/2'

Organisation or User project

Generate a token from the Organisation settings or User Settings and add it as a secret in the repository secrets as MY_GITHUB_TOKEN

name: Auto Assign Project

on: [pull_request, issues]
env:
  MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}

jobs:
  assign_one_project:
    runs-on: ubuntu-latest
    name: Assign to One Project
    steps:
    - name: Run assignment to one project
      uses: srggrs/assign-one-project-github-action@1.1.0
      if: github.event.action == 'opened' # not required but speed up the action
      with:
        project: 'https://github.com/srggrs/assign-one-project-github-action/projects/2'

About

Automatically add an issue or pull request to specific GitHub Project when you create them.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages