From 6336226d068aeecf762ad28bcaf9115e06df79b7 Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Mon, 25 Dec 2023 20:18:48 +0800 Subject: [PATCH] chore(ci): auto doc labeler job Signed-off-by: Ruihang Xia --- .github/doc-label-config.yml | 2 ++ .github/workflows/doc-label.yml | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .github/doc-label-config.yml create mode 100644 .github/workflows/doc-label.yml diff --git a/.github/doc-label-config.yml b/.github/doc-label-config.yml new file mode 100644 index 000000000000..25cbc194dbe5 --- /dev/null +++ b/.github/doc-label-config.yml @@ -0,0 +1,2 @@ +Doc not needed: + - '- \[x\] I have written the necessary rustdoc comments' diff --git a/.github/workflows/doc-label.yml b/.github/workflows/doc-label.yml new file mode 100644 index 000000000000..76c0e048cbac --- /dev/null +++ b/.github/workflows/doc-label.yml @@ -0,0 +1,19 @@ +name: "PR Doc Labeler" +on: + pull_request: + types: [opened, edited] + +permissions: + pull-requests: write + contents: read + +jobs: + triage: + if: ${{ github.repository == 'waynexia/greptimedb' }} + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v3.3 + with: + configuration-path: .github/doc-label-config.yml + enable-versioned-regex: false + repo-token: ${{ github.token }}