Package Exports
- add-issues-to-project
- add-issues-to-project/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (add-issues-to-project) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.
- Create a personal access token with
org:write
permission - Add
.github/workflows/action.yml
example (see below) - Merge your changes to master (won't run until you do this)
- 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
nektos/act
framework installed- Create a personal access token having
org:write
permission
Set Up
git clone https://github.com/matmar10/add-issues-to-project.git
to clone this repocd add-issues-to-project
npm install
to install node deps- Create a
.secrets
file withGITHUB_TOKEN_2
set to secret created in Pre-Requisites step #2 - Run
npm run test