GithubHelp home page GithubHelp logo

labrose / assign-one-project-github-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from srggrs/assign-one-project-github-action

0.0 0.0 0.0 27 KB

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

License: MIT License

Dockerfile 7.75% Shell 92.25%

assign-one-project-github-action's Introduction

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/[email protected]
      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/[email protected]
      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'

assign-one-project-github-action's People

Contributors

srggrs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.