GitHub Action that helps automate GitHub Projects (beta)
It reacts to issues
and pull_request
events, and does the following:
- Sets initial labels
- Adds the issue/PR to the configured project board
- Sets the status of the ticket to Todo
project
: Project board number (github.com/orgs/foo/projects/N
)token
: A personal access token with write:org capabilities.org
: The name of your organization. Defaults togithub.repository_owner
.label
: Initial label for new issues/PRs. Defaults toneeds triage
.
on:
issues:
types: [opened]
pull_request:
types: [opened]
permissions:
issues: write
pull-requests: write
jobs:
automate:
runs-on: ubuntu-latest
name: Synchronize Issues and PRs
steps:
- uses: ory-corp/planning-automation-action@main
with:
project: 9
token: ${{ secrets.PLANNING_AUTOMATION_TOKEN }}
org: ory-corp
This repository also includes a one-off workflow that runs on a
workflow_dispatch
event to migrate all existing open issues and PRs in
a repository to the project board. It takes the below inputs:
project
: Project board numberorg
: The name of your organizationrepo
: Repository to run the migration on