Skip to content

Commit 74acd21

Browse files
authored
feat(Project): add automated management of Project CI (#3680)
1 parent 1fc1a14 commit 74acd21

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://github.com/TDesignOteam/tdesign-projects-action
2+
3+
name: project-issue-trigger
4+
on:
5+
issues:
6+
types: [opened, closed]
7+
jobs:
8+
project-issue-trigger:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: issue to project
12+
uses: TDesignOteam/tdesign-projects-action@main
13+
env:
14+
GH_TOKEN: ${{ secrets.TDESIGN_BOT_TOKEN }}
15+
PROJECT_TYPE: ISSUE2TRIGGER
16+
PROJECT_ID: 1
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# https://github.com/TDesignOteam/tdesign-projects-action
2+
3+
name: projects-label-trigger
4+
5+
on:
6+
issues:
7+
types: [labeled, unlabeled]
8+
9+
jobs:
10+
projects-label-trigger:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: label to project
14+
uses: TDesignOteam/tdesign-projects-action@main
15+
env:
16+
GH_TOKEN: ${{ secrets.TDESIGN_BOT_TOKEN }}
17+
PROJECT_TYPE: LABEL2TRIGGER
18+
PROJECT_ID: 1
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# https://github.com/TDesignOteam/tdesign-projects-action
2+
3+
name: project-pr-trigger
4+
5+
on:
6+
pull_request_target:
7+
types: [opened, reopened, closed]
8+
9+
jobs:
10+
project-pr-trigger:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: pr to project
14+
uses: TDesignOteam/tdesign-projects-action@main
15+
env:
16+
GH_TOKEN: ${{ secrets.TDESIGN_BOT_TOKEN }}
17+
PROJECT_TYPE: PR2TRIGGER
18+
PROJECT_ID: 1

0 commit comments

Comments
 (0)