Skip to content

Commit 7b2bc91

Browse files
committed
👷 ci(bot): init some configs [no ci]
1 parent cd3ea51 commit 7b2bc91

File tree

3 files changed

+95
-0
lines changed

3 files changed

+95
-0
lines changed

.github/auto_assign.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Set to true to add reviewers to pull requests
2+
addReviewers: true
3+
4+
# Set to author to set pr creator as assignee
5+
addAssignees: author
6+
7+
# A list of reviewers to be added to pull requests (GitHub user name)
8+
reviewers:
9+
- webup
10+
- benjaminhuo
11+
12+
# A number of reviewers added to the pull request
13+
# Set 0 to add all the reviewers (default: 0)
14+
numberOfReviewers: 1
15+
16+
# A list of keywords to be skipped the process that add reviewers if pull requests include it
17+
skipKeywords:
18+
- wip
19+
20+
# A list of users to be skipped by both the add reviewers and add assignees processes
21+
skipUsers:
22+
- dependabot[bot]

.github/labeler.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Number of labels to fetch (optional). Defaults to 100
2+
numLabels: '40'
3+
# These labels will not be used even if the issue contains them (optional).
4+
# Pass a blank array if no labels are to be excluded.
5+
# excludeLabels: []
6+
excludeLabels:
7+
- pinned
8+
# custom configuration to override default behaviour
9+
# control explicitly what gets added and when
10+
# custom:
11+
# - location: title
12+
# keywords:
13+
# - enable
14+
# labels:
15+
# - enhancement
16+
# - location: title
17+
# keywords:
18+
# - fix
19+
# labels:
20+
# - bug
21+
# - location: title
22+
# keywords:
23+
# - doc
24+
# labels:
25+
# - documentation

.github/mergable.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
version: 2
2+
mergeable:
3+
- when: pull_request.*
4+
name: 'Ingore WIP'
5+
validate:
6+
- do: title
7+
must_exclude:
8+
regex: ^\[WIP\]
9+
- do: label
10+
must_exclude:
11+
regex: 'wip'
12+
- when: pull_request.*
13+
name: 'NO empty description'
14+
validate:
15+
- do: description
16+
no_empty:
17+
enabled: true
18+
message: Description matter and should not be empty. Provide detail with either **what** was changed, **why** it was changed, or **how** it was changed.
19+
- when: schedule.repository
20+
name: 'Check stale PR and issues'
21+
validate:
22+
- do: stale
23+
days: 20
24+
type: pull_request, issues
25+
pass:
26+
- do: comment
27+
payload:
28+
body: This is old. Is it still relevant?
29+
- when: pull_request.opened
30+
name: 'Greet a contributor'
31+
validate: []
32+
pass:
33+
- do: comment
34+
payload:
35+
body: >
36+
Thanks for creating a pull request! A maintainer will review your changes shortly. Please don't be discouraged if it takes a while.
37+
- when: pull_request.*, pull_request_review.*
38+
name: 'Draft check'
39+
validate:
40+
- do: payload
41+
pull_request:
42+
draft:
43+
boolean:
44+
match: false
45+
fail:
46+
- do: comment
47+
payload:
48+
body: This PR is STILL a draft!

0 commit comments

Comments
 (0)