From 3e3b8a483fdaa738772bb37c9bdd2203a4daf1a9 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 13 May 2024 09:36:47 +0300 Subject: [PATCH] chore: add action to automatically label docs (#7284) * chore: add action to automatically label docs * removes the paths param --- .github/labeler.yml | 3 +++ .github/workflows/docs-pr-label.yml | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/docs-pr-label.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..08433dd1e5 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,3 @@ +'type: docs': +- changed-files: + - any-glob-to-any-file: www/** \ No newline at end of file diff --git a/.github/workflows/docs-pr-label.yml b/.github/workflows/docs-pr-label.yml new file mode 100644 index 0000000000..770f2c9bde --- /dev/null +++ b/.github/workflows/docs-pr-label.yml @@ -0,0 +1,13 @@ +name: "Add Docs PR Label" +on: + pull_request: + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - id: label-the-PR + uses: actions/labeler@v5 \ No newline at end of file