mirror of
https://github.com/python/cpython.git
synced 2024-11-24 08:52:25 +01:00
3bb12e407c
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
31 lines
741 B
YAML
31 lines
741 B
YAML
name: Update GH projects
|
|
|
|
on:
|
|
issues:
|
|
types:
|
|
- opened
|
|
- labeled
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
add-to-project:
|
|
name: Add issues to projects
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
# if an issue has any of these labels, it will be added
|
|
# to the corresponding project
|
|
- { project: 2, label: "release-blocker, deferred-blocker" }
|
|
- { project: 32, label: sprint }
|
|
|
|
steps:
|
|
- uses: actions/add-to-project@v1.0.0
|
|
with:
|
|
project-url: https://github.com/orgs/python/projects/${{ matrix.project }}
|
|
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
|
labeled: ${{ matrix.label }}
|