ci: add to project setup (#1038)

This commit is contained in:
Yifeng Wang
2023-02-16 08:46:17 +08:00
committed by GitHub
parent 8b617abead
commit 9a1123239f

26
.github/workflows/add-to-project.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Add to GitHub projects
on:
issues:
types:
- opened
- transferred
- labeled
pull_request:
types:
- opened
- labeled
jobs:
add-to-project:
name: Add issues and pull requests
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.4.0
with:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/orgs/toeverything/projects/10
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
# labeled: bug, needs-triage
# label-operator: OR