From b9f0fc451a208ab175ab2738a112a0eada72c738 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Tue, 21 Nov 2023 14:43:37 +0100 Subject: [PATCH] ci: auto-label pull requests Use the official labeler action to automatically assign labels to PRs based on the edited files. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- .github/labeler.yml | 39 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 21 +++++++++++++++++++ 2 files changed, 60 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 0000000000..4ee933a37b --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,39 @@ +area/release: + - .github/** + - _releaser/** + +area/build: + - content/build/* + - _vendor/github.com/moby/buildkit/** + - _vendor/github.com/docker/buildx/** + +area/compose: + - content/compose/** + - _vendor/github.com/docker/compose/** + - _vendor/github.com/docker/compose-spec/** + +area/desktop: + - content/desktop/** + +area/engine: + - content/engine/** + - content/config/** + +area/security: + - content/security/** + +area/get-started: + - content/get-started/** + +area/networking: + - content/network/** + +area/hub: + - content/docker-hub/** + +area/cli: + - content/engine/reference/commandline/** + - _vendor/github.com/docker/cli/** + +area/api: + - content/engine/api/** diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..fd0a9c923f --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,21 @@ +name: labeler + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + pull_request_target: + +jobs: + labeler: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - + name: Run + uses: actions/labeler@v4 + with: + dot: true