Skip to content

Commit

Permalink
.github: add workflow to auto assign to projects (#307)
Browse files Browse the repository at this point in the history
* .github: add workflow to auto assign to projects

* Update assign-to-project.yml
  • Loading branch information
ran-huang authored May 22, 2020
1 parent 6f81d5f commit 6393439
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/assign-to-project.yml
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'

0 comments on commit 6393439

Please sign in to comment.