Skip to content

Commit b44f4fa

Browse files
committed
test: label and move to project
1 parent 2b96579 commit b44f4fa

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

.github/workflows/label.yml

+17-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
# This workflow will triage pull requests and apply a label based on the
2-
# paths that are modified in the pull request.
3-
#
4-
# To use this workflow, you will need to set up a .github/labeler.yml
5-
# file with configuration. For more information, see:
6-
# https://github.com/actions/labeler
7-
8-
name: Labeler
9-
on: [pull_request]
10-
1+
name: Auto Assign to Project(s)
2+
on:
3+
issues:
4+
types: [opened, labeled]
5+
pull_request:
6+
types: [opened, labeled]
7+
env:
8+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
119
jobs:
12-
label:
13-
10+
assign_one_project:
1411
runs-on: ubuntu-latest
15-
12+
name: Assign to One Project
1613
steps:
17-
- uses: actions/labeler@v2
14+
- name: Assign issues and pull requests with `bug` label to project 3
15+
uses: srggrs/[email protected]
16+
if: |
17+
contains(github.event.issue.labels.*.name, 'bug') ||
18+
contains(github.event.pull_request.labels.*.name, 'bug')
1819
with:
19-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
20-
20+
project: "https://github.com/rainingmaster/lua-nginx-module/projects/1"
21+
column_name: "PRs that ready to be merged"

0 commit comments

Comments
 (0)