Automate issue and pull request processing
This is a reusable workflow to automate repetitve issue and pull request tasks. It adds issues and pull requests to a GitHub project specified by the calling workflow.
To use this workflow, first, create a personal access token (PAT) with project permission. Add the PAT to your repository as a secret.
Then, call this workflow with the uses key of a job in your project's workflow file.
on:
issues:
types: [opened]
pull_request:
types: [opened]
jobs:
issue-automation:
name: Issue Automation
uses: brobeson/IssueAutomation/.github/workflows/issue_automation.yaml@v1
secrets
personal_access_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
project_owner: you
project_id: 42| Key | Required | Type | Description |
|---|---|---|---|
personal_access_token |
yes | string | The PAT you created and added to your repository. This must be in the secrets object in the calling job. |
project_owner |
yes | string | The account name of the user who owns the project to add issues to. Organization projects are not supported. |
project_id |
yes | number | The ID number of the project to update. |
The workflow runs the following steps.
- Add new issues to the specified project.
The PAT must project permission in the calling repository.