Skip to content

Commit a540049

Browse files
committed
Add actions for gssoc21
1 parent c7fe600 commit a540049

File tree

6 files changed

+108
-0
lines changed

6 files changed

+108
-0
lines changed

.github/workflows/close.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Close
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
issue_comment:
7+
types: [created]
8+
9+
jobs:
10+
add_label:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions-ecosystem/action-add-labels@v1
15+
if: ${{ startsWith(github.event.comment.body, '/close-pr/') }}
16+
with:
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
labels: Close-PR

.github/workflows/level0.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: level0
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
issue_comment:
7+
types: [created]
8+
9+
jobs:
10+
add_label:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions-ecosystem/action-add-labels@v1
15+
if: ${{ startsWith(github.event.comment.body, '/level0/') }}
16+
with:
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
labels: Level0

.github/workflows/level1.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: level1
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
issue_comment:
7+
types: [created]
8+
9+
jobs:
10+
add_label:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions-ecosystem/action-add-labels@v1
15+
if: ${{ startsWith(github.event.comment.body, '/level1/') }}
16+
with:
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
labels: Level1

.github/workflows/level2.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: level2
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
issue_comment:
7+
types: [created]
8+
9+
jobs:
10+
add_label:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions-ecosystem/action-add-labels@v1
15+
if: ${{ startsWith(github.event.comment.body, '/level2/') }}
16+
with:
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
labels: Level2

.github/workflows/level3.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: level3
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
issue_comment:
7+
types: [created]
8+
9+
jobs:
10+
add_label:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions-ecosystem/action-add-labels@v1
15+
if: ${{ startsWith(github.event.comment.body, '/level3/') }}
16+
with:
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
labels: Level3

.github/workflows/merge.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Merge
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
issue_comment:
7+
types: [created]
8+
9+
jobs:
10+
add_label:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions-ecosystem/action-add-labels@v1
15+
if: ${{ startsWith(github.event.comment.body, '/merge/') }}
16+
with:
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
labels: ready-to-merge

0 commit comments

Comments
 (0)