Skip to content

ory-corp/planning-automation-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

planning-automation-action

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

Inputs

  • 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 to github.repository_owner.
  • label: Initial label for new issues/PRs. Defaults to needs triage.

Complete usage

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

Bulk migration workflow

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 number
  • org: The name of your organization
  • repo: Repository to run the migration on