Giter Club home page Giter Club logo

action-add-issues-to-project's Introduction

Add Issues to Project (Github Action

Github action to automatically add all issues to the specified project board.

Installation

NOTE: GITHUB_TOKEN will not have sufficient privalege to write organization project, hence personal access token is needed.

  1. Create a personal access token with org:write permission
  2. Add .github/workflows/action.yml example (see below)
  3. Merge your changes to master (won't run until you do this)
  4. Create/edit/reopen issues and enjoy the magic!

Example Workflow

name: Issue Automation
on:
  issues:
    types: [ opened, edited, reopened ]
jobs:
  add-to-project-board:
    name: Add issue to project board
    runs-on: ubuntu-latest
    steps:
      - name: Add new issues to project board
        uses: matmar10/add-issues-to-project@master
        with:
          gitub_token: ${{ secrets.GITHUB_TOKEN_2 }}
          github_project_title: Your Github Project Board's Title
          github_org: your-org-name

Testing Locally

Pre-Requisites

  1. nektos/act framework installed
  2. Create a personal access token having org:write permission

Set Up

  1. git clone https://github.com/matmar10/add-issues-to-project.git to clone this repo
  2. cd add-issues-to-project
  3. npm install to install node deps
  4. Create a .secrets file with GITHUB_TOKEN_2 set to secret created in Pre-Requisites step #2
  5. Run npm run test

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.