Skip to content

Commit

Permalink
added issue automation (#17)
Browse files Browse the repository at this point in the history
* added issue automation

* Update issue-unlabel-automation.yml
  • Loading branch information
frunika authored Jan 15, 2021
1 parent ec80a66 commit 68d361a
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/issue-automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Issue to Project

on:
issues:
types: [labeled]

jobs:
ToDo-List:
runs-on: ubuntu-latest
steps:
- name: Move bugs and features to ToDo-List
uses: alex-page/github-project-automation-plus@v0.5.1
if: |
contains(github.event.issue.labels.*.name, 'bug') ||
contains(github.event.issue.labels.*.name, 'feature')
with:
project: ToDo-List
column: To do
repo-token: ${{ secrets.TOKEN_SEBASTIAN }}
Wish-List:
runs-on: ubuntu-latest
steps:
- name: Move ideas to Wish-List
uses: alex-page/github-project-automation-plus@v0.5.1
if: |
contains(github.event.issue.labels.*.name, 'idea')
with:
project: Wish-List
column: ${{ github.event.repository.name }}
repo-token: ${{ secrets.TOKEN_SEBASTIAN }}
Discussion:
runs-on: ubuntu-latest
steps:
- name: Move questions to Friday-Discussion
uses: alex-page/github-project-automation-plus@v0.5.1
if: |
contains(github.event.issue.labels.*.name, 'question')
with:
project: OTC Core Developer Friday-Meeting
column: neu
repo-token: ${{ secrets.TOKEN_SEBASTIAN }}
44 changes: 44 additions & 0 deletions .github/workflows/issue-unlabel-automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Remove Issue from Project

on:
issues:
types: [unlabeled]

jobs:
ToDo-List:
runs-on: ubuntu-latest
steps:
- name: Remove former bugs and features from ToDo-List
uses: alex-page/github-project-automation-plus@v0.5.1
if: |
!contains(github.event.issue.labels.*.name, 'bug') &&
!contains(github.event.issue.labels.*.name, 'feature')
with:
project: ToDo-List
column: To do
repo-token: ${{ secrets.TOKEN_SEBASTIAN }}
action: delete
Wish-List:
runs-on: ubuntu-latest
steps:
- name: Remove former ideas from Wish-List
uses: alex-page/github-project-automation-plus@v0.5.1
if: |
!contains(github.event.issue.labels.*.name, 'idea')
with:
project: Wish-List
column: ${{ github.event.repository.name }}
repo-token: ${{ secrets.TOKEN_SEBASTIAN }}
action: delete
Discussion:
runs-on: ubuntu-latest
steps:
- name: Remove former questions from Friday-Discussion
uses: alex-page/github-project-automation-plus@v0.5.1
if: |
!contains(github.event.issue.labels.*.name, 'question')
with:
project: OTC Core Developer Friday-Meeting
column: neu
repo-token: ${{ secrets.TOKEN_SEBASTIAN }}
action: delete
16 changes: 16 additions & 0 deletions .github/workflows/pr-automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: PR to Project

on:
pull_request:
types: [opened, reopened]

jobs:
ToDo-List:
runs-on: ubuntu-latest
steps:
- name: Move PR to ToDo-List
uses: alex-page/github-project-automation-plus@v0.5.1
with:
project: ToDo-List
column: In progress
repo-token: ${{ secrets.TOKEN_SEBASTIAN }}

0 comments on commit 68d361a

Please sign in to comment.