From a72779997cd877be0f73b181290fb96d4f03bdc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lison=20Fernandes?= Date: Thu, 4 May 2023 22:48:38 +0100 Subject: [PATCH] Adding a Pull Request Labeler workflow (#2503) * Added a Pull Request Labeler workflow This workflow will add labels based on the PR file path changes * Update .github/workflows/pr-labeler.yml Co-authored-by: Joseph Flinn <58369717+joseph-flinn@users.noreply.github.com> --------- Co-authored-by: Joseph Flinn <58369717+joseph-flinn@users.noreply.github.com> --- .github/labeler.yml | 17 +++++++++++++++++ .github/workflows/pr-labeler.yml | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/pr-labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..b455eb22a --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,17 @@ +android: +- src/Core/* +- src/Android/* + +iOS: +- src/Core/* +- lib/ios/* +- src/iOS/* +- src/iOS.Autofill/* +- src/iOS.Core/* +- src/iOS.Extension/* +- src/iOS.ShareExtension/* +- src/iOS.Widget/* +- src/watchOS/* + +watchOS: +- src/watchOS/* \ No newline at end of file diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 000000000..21d847303 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,17 @@ +--- +name: "Pull Request Labeler" + +on: + pull_request_target: {} + +jobs: + labeler: + name: "Pull Request Labeler" + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-20.04 + steps: + - uses: actions/labeler@ba790c862c380240c6d5e7427be5ace9a05c754b # v4.0.3 + with: + sync-labels: true