From 24e38224350394198c9f873800048d25b8c6548e Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 23 Jun 2022 15:31:48 -0400 Subject: [PATCH] .github: Label doc/releases PRs so tibdex/backport@v2 can backport Signed-off-by: David Galloway --- .github/labeler.yml | 9 +++++++++ .github/workflows/label-releases-doc-prs.yml | 21 ++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/label-releases-doc-prs.yml diff --git a/.github/labeler.yml b/.github/labeler.yml index bf8c4d31683..342eb723b38 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,6 +1,15 @@ api-change: - src/pybind/mgr/dashboard/openapi.yaml +backport quincy: + - doc/releases/** + +backport pacific: + - doc/releases/** + +backport octopus: + - doc/releases/** + build/ops: - "**/CMakeLists.txt" - admin/** diff --git a/.github/workflows/label-releases-doc-prs.yml b/.github/workflows/label-releases-doc-prs.yml new file mode 100644 index 00000000000..1e95a950af1 --- /dev/null +++ b/.github/workflows/label-releases-doc-prs.yml @@ -0,0 +1,21 @@ +--- +name: "Label doc/releases PRs so our backport GitHub Action picks them up" + +on: + pull_request: + types: + - closed + branches: + - main + paths: + - 'doc/releases/**' + +jobs: + if_merged: + runs-on: ubuntu-latest + steps: + - name: Assign labels based on modified files + uses: actions/labeler@9794b1493b6f1fa7b006c5f8635a19c76c98be95 + with: + sync-labels: '' + repo-token: "${{ secrets.GITHUB_TOKEN }}"