Skip to content

PGO: Improve the existing PR process #118

PGO: Improve the existing PR process

PGO: Improve the existing PR process #118

name: Add new issues to the team project board
on:
issues:
types:
- opened
- transferred
permissions:
contents: read
jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- name: Get token
id: get_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
permissions: >-
{
"organization_projects": "write",
"issues": "read"
}
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/elastic/projects/1286
github-token: ${{ steps.get_token.outputs.token }}