From 244d5efa45d85bf28431f61da3b884e115eb203c Mon Sep 17 00:00:00 2001 From: chenzihong <522023320011@smail.nju.edu.cn> Date: Fri, 9 Jan 2026 14:37:27 +0800 Subject: [PATCH 1/4] ci: add labeler action --- .github/labeler.yml | 19 +++++++++++++++++++ .github/workflows/labeler.yml | 17 +++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..c4fdbdac --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,19 @@ +core: +- graphgen/**/* + +examples: +- examples/**/* + +baselines: +- baselines/**/* + +documentation: +- "**/*.md" + +workflows: +- .github/workflows/*.yml + +config: +- .github/labeler.yml +- .pre-commit-config.yaml +- .pylintrc diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..c4242d35 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,17 @@ +name: Labeler +on: + pull_request_target: + types: [opened, synchronize, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: .github/labeler.yml From 9cdaabaace9c12845ac80115c2f0541c4dec716c Mon Sep 17 00:00:00 2001 From: chenzihong <522023320011@smail.nju.edu.cn> Date: Fri, 9 Jan 2026 14:43:46 +0800 Subject: [PATCH 2/4] ci: add issue label template --- .github/issue-labeler.yml | 10 ++++++++++ .github/{labeler.yml => pr-labeler.yml} | 0 .github/workflows/labeler.yml | 18 ++++++++++++++++-- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .github/issue-labeler.yml rename .github/{labeler.yml => pr-labeler.yml} (100%) diff --git a/.github/issue-labeler.yml b/.github/issue-labeler.yml new file mode 100644 index 00000000..37370acc --- /dev/null +++ b/.github/issue-labeler.yml @@ -0,0 +1,10 @@ +bug: + - '\b(bug|error|fail|crash|defect|broken)\b' + - 'Bug report' + +enhancement: + - '\b(feature|request|idea|proposal|improve|add)\b' + - 'Feature request' + +question: + - '\b(question|help|how to|support|query)\b' diff --git a/.github/labeler.yml b/.github/pr-labeler.yml similarity index 100% rename from .github/labeler.yml rename to .github/pr-labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index c4242d35..17d658e7 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -2,16 +2,30 @@ name: Labeler on: pull_request_target: types: [opened, synchronize, reopened] + issues: + types: [opened] permissions: contents: read pull-requests: write + issues: write jobs: - label: + pr-labeler: + if: github.event_name == 'pull_request_target' runs-on: ubuntu-latest steps: - uses: actions/labeler@v4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - configuration-path: .github/labeler.yml + configuration-path: .github/pr-labeler.yml + + issue-labeler: + if: github.event_name == 'issues' + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v3.4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: .github/issue-labeler.yml + enable-versioned-regex: 0 From 8d1845136fcb201e4b1c9ab0e8227e2cf20ed753 Mon Sep 17 00:00:00 2001 From: chenzihong <522023320011@smail.nju.edu.cn> Date: Fri, 9 Jan 2026 14:47:27 +0800 Subject: [PATCH 3/4] ci: fix pr-labeler.yml --- .github/pr-labeler.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml index c4fdbdac..981224c2 100644 --- a/.github/pr-labeler.yml +++ b/.github/pr-labeler.yml @@ -1,19 +1,20 @@ core: -- graphgen/**/* + - graphgen/**/* examples: -- examples/**/* + - examples/**/* baselines: -- baselines/**/* + - baselines/**/* documentation: -- "**/*.md" + - "**/*.md" workflows: -- .github/workflows/*.yml + - .github/workflows/*.yml + - .github/workflows/*.yaml config: -- .github/labeler.yml -- .pre-commit-config.yaml -- .pylintrc + - .github/labeler.yml + - .pre-commit-config.yaml + - .pylintrc From 7c72b713ac21ab9328791caaf9a5ec8f9fdafef6 Mon Sep 17 00:00:00 2001 From: chenzihong <522023320011@smail.nju.edu.cn> Date: Fri, 9 Jan 2026 14:52:58 +0800 Subject: [PATCH 4/4] ci: update pr-labeler.yml --- .github/pr-labeler.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml index 981224c2..07e38abe 100644 --- a/.github/pr-labeler.yml +++ b/.github/pr-labeler.yml @@ -15,6 +15,7 @@ workflows: - .github/workflows/*.yaml config: - - .github/labeler.yml + - .github/pr-labeler.yml + - .github/issue-labeler.yml - .pre-commit-config.yaml - .pylintrc