Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added issue automation #17

Merged
merged 2 commits into from
Jan 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}