This action adds issue or PR to GitHub Projects(Beta).
All inputs are required.
Personal access token that contains repo
and write:org
is required.
For security reasons, it is recommended to set the token to GitHub secrets.
User or Organization name of projects beta.
The projects number.
This is shown in URL of projects.
In the following example, the projects number is 1.
https://github.com/orgs/foo/projects/1
The node id of issue or PR.
You can use github.event.issue.node_id
if triggered on: issues
or github.event.pull_request.node_id
if triggered on: pull_request
.
Project item id added to the project.
- uses: sunadoi/add-projects-beta@v1
with:
github-token: ${{ secrets.ADD_PROJECTS_BETA }}
project-owner: "foo"
project-number: 1
content-id: ${{ github.event.issue.node_id }}