mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 12:16:31 +00:00
ci: import issue checker (#750)
* ci: supprot auto tag on pull request * ci: update issue checker config * ci: update issue checker & block merge while
This commit is contained in:
62
.github/issue-checker.yml
vendored
Normal file
62
.github/issue-checker.yml
vendored
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
default-mode:
|
||||||
|
add:
|
||||||
|
remove: [pull_request_target, issues]
|
||||||
|
labels:
|
||||||
|
# skips and removes
|
||||||
|
- name: skip all
|
||||||
|
content:
|
||||||
|
regexes: '[Ss]kip (?:[Aa]ll |)[Ll]abels?'
|
||||||
|
- name: remove all
|
||||||
|
content:
|
||||||
|
regexes: '[Rr]emove (?:[Aa]ll |)[Ll]abels?'
|
||||||
|
- name: skip ambiguous
|
||||||
|
content:
|
||||||
|
regexes: '[Ss]kip (?:[Ll]abels? |)(?:`|)ambiguous(?:`|)'
|
||||||
|
- name: remove ambiguous
|
||||||
|
content:
|
||||||
|
regexes: '[Rr]emove (?:[Ll]abels? |)(?:`|)ambiguous(?:`|)'
|
||||||
|
# `feature`
|
||||||
|
- name: enhance
|
||||||
|
content: enhancement
|
||||||
|
regexes: '[Ff]eat(?:\([a-zA-Z]*\))?[\:\.\,]'
|
||||||
|
skip-if:
|
||||||
|
- skip all
|
||||||
|
remove-if:
|
||||||
|
- remove all
|
||||||
|
# `Bug fix`
|
||||||
|
- name: bug-fix
|
||||||
|
content: Bug fix
|
||||||
|
regexes: '[Ff]ix(?:\([a-zA-Z]*\))?[\:\.\,]'
|
||||||
|
skip-if:
|
||||||
|
- skip all
|
||||||
|
remove-if:
|
||||||
|
- remove all
|
||||||
|
# `document`
|
||||||
|
- name: doc
|
||||||
|
content: documentation
|
||||||
|
regexes: '[Dd]ocs(?:\([a-zA-Z]*\))?[\:\.\,]'
|
||||||
|
skip-if:
|
||||||
|
- skip all
|
||||||
|
remove-if:
|
||||||
|
- remove all
|
||||||
|
# `test`
|
||||||
|
- name: test
|
||||||
|
content: test
|
||||||
|
regexes: '[Tt]est(?:\([a-zA-Z]*\))?[\:\.\,]'
|
||||||
|
skip-if:
|
||||||
|
- skip all
|
||||||
|
remove-if:
|
||||||
|
- remove all
|
||||||
|
# `ambiguous`
|
||||||
|
- name: pr-ambiguous
|
||||||
|
# 不符合 commitizen 的 PR
|
||||||
|
content: ambiguous
|
||||||
|
regexes: '^(?!(?:build|chore|ci|docs?|feat|fix|perf|refactor|rft|style|test)(?:\([a-zA-Z]*\))?[\:\.\(\,]|[Rr]evert|[Rr]elease)'
|
||||||
|
mode:
|
||||||
|
pull_request_target:
|
||||||
|
skip-if:
|
||||||
|
- skip all
|
||||||
|
- skip ambiguous
|
||||||
|
remove-if:
|
||||||
|
- remove all
|
||||||
|
- remove ambiguous
|
24
.github/workflows/issue-checker.yml
vendored
Normal file
24
.github/workflows/issue-checker.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: "Issue Checker"
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened, edited]
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened, edited]
|
||||||
|
issue_comment:
|
||||||
|
types: [created, edited]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
triage:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: zzyyyl/issue-checker@v1.7
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
configuration-path: .github/issue-checker.yml
|
||||||
|
not-before: 2024-04-20T00:00:00Z
|
||||||
|
include-title: 1
|
@ -44,20 +44,14 @@ trigger_labels = [
|
|||||||
"regression-from-stable-to-nightly",
|
"regression-from-stable-to-nightly",
|
||||||
"I-unsound",
|
"I-unsound",
|
||||||
]
|
]
|
||||||
exclude_labels = [
|
exclude_labels = ["P-*", "T-release", "requires-nightly"]
|
||||||
"P-*",
|
|
||||||
"T-release",
|
|
||||||
"requires-nightly",
|
|
||||||
]
|
|
||||||
|
|
||||||
[autolabel."T-doc"]
|
[autolabel."T-doc"]
|
||||||
trigger_files = [
|
trigger_files = [
|
||||||
# Source code
|
# Source code
|
||||||
"doc",
|
"doc",
|
||||||
]
|
]
|
||||||
exclude_labels = [
|
exclude_labels = ["T-*"]
|
||||||
"T-*",
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
[autolabel."A-meta"]
|
[autolabel."A-meta"]
|
||||||
@ -70,19 +64,13 @@ trigger_files = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[autolabel."A-fs"]
|
[autolabel."A-fs"]
|
||||||
trigger_files = [
|
trigger_files = ["kernel/src/filesystem"]
|
||||||
"kernel/src/filesystem",
|
|
||||||
]
|
|
||||||
|
|
||||||
[autolabel."O-x86_64"]
|
[autolabel."O-x86_64"]
|
||||||
trigger_files = [
|
trigger_files = ["kernel/src/arch/x86_64"]
|
||||||
"kernel/src/arch/x86_64",
|
|
||||||
]
|
|
||||||
|
|
||||||
[autolabel."O-riscv64"]
|
[autolabel."O-riscv64"]
|
||||||
trigger_files = [
|
trigger_files = ["kernel/src/arch/riscv64"]
|
||||||
"kernel/src/arch/riscv64",
|
|
||||||
]
|
|
||||||
|
|
||||||
[autolabel."T-driver"]
|
[autolabel."T-driver"]
|
||||||
trigger_files = [
|
trigger_files = [
|
||||||
@ -92,25 +80,20 @@ trigger_files = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[autolabel."T-virtulization"]
|
[autolabel."T-virtulization"]
|
||||||
trigger_files = [
|
trigger_files = ["kernel/src/virt", "kernel/src/arch/x86_64/kvm"]
|
||||||
"kernel/src/virt",
|
|
||||||
"kernel/src/arch/x86_64/kvm"
|
|
||||||
]
|
|
||||||
|
|
||||||
[autolabel."S-等待审查"]
|
[autolabel."S-等待审查"]
|
||||||
new_pr = true
|
new_pr = true
|
||||||
|
|
||||||
[autolabel."needs-triage"]
|
[autolabel."needs-triage"]
|
||||||
new_issue = true
|
new_issue = true
|
||||||
exclude_labels = [
|
exclude_labels = ["A-diagnostics"]
|
||||||
"A-diagnostics",
|
|
||||||
]
|
|
||||||
|
|
||||||
[shortcut]
|
[shortcut]
|
||||||
|
|
||||||
[no-merges]
|
[no-merges]
|
||||||
exclude_titles = ["Rollup of", "subtree update", "Subtree update"]
|
exclude_titles = ["Rollup of", "subtree update", "Subtree update"]
|
||||||
labels = ["S-等待作者修改"]
|
labels = ["S-等待作者修改", "ambiguous"]
|
||||||
|
|
||||||
[mentions."triagebot.toml"]
|
[mentions."triagebot.toml"]
|
||||||
message = "`triagebot.toml` has been modified, there may have been changes to the review queue."
|
message = "`triagebot.toml` has been modified, there may have been changes to the review queue."
|
||||||
@ -133,47 +116,29 @@ users_on_vacation = []
|
|||||||
[assign.adhoc_groups]
|
[assign.adhoc_groups]
|
||||||
|
|
||||||
# 驱动程序
|
# 驱动程序
|
||||||
driver = [
|
driver = ["@fslongjin", "@YJwu2023", "@GnoCiYeH"]
|
||||||
"@fslongjin",
|
|
||||||
"@YJwu2023",
|
|
||||||
"@GnoCiYeH"
|
|
||||||
]
|
|
||||||
|
|
||||||
# 虚拟化
|
# 虚拟化
|
||||||
virtulization = [
|
virtulization = ["@fslongjin", "@ZXXYy"]
|
||||||
"@fslongjin",
|
|
||||||
"@ZXXYy"
|
|
||||||
]
|
|
||||||
|
|
||||||
filesystem = [
|
filesystem = ["@fslongjin"]
|
||||||
"@fslongjin"
|
|
||||||
]
|
|
||||||
|
|
||||||
riscv64 = [
|
riscv64 = ["@fslongjin"]
|
||||||
"@fslongjin"
|
|
||||||
]
|
|
||||||
|
|
||||||
x86_64 = [
|
x86_64 = ["@fslongjin", "@GnoCiYeH", "@Chiichen"]
|
||||||
"@fslongjin",
|
|
||||||
"@GnoCiYeH",
|
|
||||||
"@Chiichen",
|
|
||||||
]
|
|
||||||
|
|
||||||
# CI/CD
|
# CI/CD
|
||||||
infra-ci = [
|
infra-ci = ["@fslongjin", "@Chiichen"]
|
||||||
"@fslongjin"
|
|
||||||
]
|
|
||||||
|
|
||||||
bootstrap = [
|
bootstrap = ["@fslongjin"]
|
||||||
"@fslongjin"
|
|
||||||
]
|
|
||||||
|
|
||||||
[assign.owners]
|
[assign.owners]
|
||||||
"/.github/workflows" = ["infra-ci"]
|
"/.github/workflows" = ["infra-ci"]
|
||||||
"/kernel/src/driver" = ["driver"]
|
"/triagebot.toml" = ["infra-ci"]
|
||||||
"/kernel/src/filesystem" = ["filesystem"]
|
"/kernel/src/driver" = ["driver"]
|
||||||
"/kernel/src/virt" = ["virtulization"]
|
"/kernel/src/filesystem" = ["filesystem"]
|
||||||
"/kernel/src/arch/x86_64/kvm" = ["virtulization"]
|
"/kernel/src/virt" = ["virtulization"]
|
||||||
"/kernel/src/arch/x86_64" = ["x86_64"]
|
"/kernel/src/arch/x86_64/kvm" = ["virtulization"]
|
||||||
"/kernel/src/arch/riscv64" = ["riscv64"]
|
"/kernel/src/arch/x86_64" = ["x86_64"]
|
||||||
|
"/kernel/src/arch/riscv64" = ["riscv64"]
|
||||||
|
"/tools" = ["bootstrap"]
|
||||||
|
Reference in New Issue
Block a user