-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github: add workflow to auto assign to projects (#307)
* .github: add workflow to auto assign to projects * Update assign-to-project.yml
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Assign to Project | ||
|
||
on: | ||
issues: | ||
types: [opened, labeled] | ||
pull_request: | ||
types: [opened, labeled] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
assign_one_project: | ||
runs-on: ubuntu-latest | ||
name: Assign to Project | ||
steps: | ||
- name: Assign NEW issues to Docs SIG project | ||
uses: srggrs/[email protected] | ||
if: | | ||
github.event_name == 'issues' && | ||
github.event.action == 'opened' | ||
with: | ||
project: 'https://github.com/pingcap/docs-tidb-operator/projects/1' | ||
column_name: 'Issue: Backlog' | ||
- name: Assign NEW pull requests to Docs SIG project | ||
uses: srggrs/[email protected] | ||
if: | | ||
github.event_name == 'pull_request' && | ||
github.event.action == 'opened' | ||
with: | ||
project: 'https://github.com/pingcap/docs-tidb-operator/projects/1' | ||
column_name: 'PR: In Progress' | ||
- name: Assign issues or PRs with translation-welcome label | ||
uses: srggrs/[email protected] | ||
if: | | ||
contains(github.event.issue.labels.*.name, 'translation/welcome') || | ||
contains(github.event.pull_request.labels.*.name, 'translation/welcome') | ||
with: | ||
project: 'https://github.com/pingcap/docs-tidb-operator/projects/2' | ||
column_name: 'To do' |