Skip to content

ci: replace OCTOKITBOT_PROJECT_ACTION_TOKEN and OCTOKITBOT_PAT with a token from https://github.com/apps/octokit #107

ci: replace OCTOKITBOT_PROJECT_ACTION_TOKEN and OCTOKITBOT_PAT with a token from https://github.com/apps/octokit

ci: replace OCTOKITBOT_PROJECT_ACTION_TOKEN and OCTOKITBOT_PAT with a token from https://github.com/apps/octokit #107

name: Add PRs and issues to Octokit org project
on:
issues:
types: [reopened, opened]
pull_request_target:
types: [reopened, opened]
jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.OCTOKIT_APP_ID }}
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
owner: octokit
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/octokit/projects/10
github-token: ${{ steps.app-token.outputs.token }}
labeled: "Status: Stale"
label-operator: NOT