From 1baefb4e90e9933ce1571b5a95e6ea1565de8047 Mon Sep 17 00:00:00 2001 From: Casey Hillers Date: Tue, 6 Jun 2023 12:39:40 -0700 Subject: [PATCH] [labeler] Add engine workflow (flutter/engine#42566) https://github.com/flutter/flutter/issues/126002 --- engine/src/flutter/.github/labeler.yml | 34 +++++++++++++++++++ .../src/flutter/.github/workflows/labeler.yml | 20 +++++++++++ 2 files changed, 54 insertions(+) create mode 100644 engine/src/flutter/.github/labeler.yml create mode 100644 engine/src/flutter/.github/workflows/labeler.yml diff --git a/engine/src/flutter/.github/labeler.yml b/engine/src/flutter/.github/labeler.yml new file mode 100644 index 00000000000..91d8713608a --- /dev/null +++ b/engine/src/flutter/.github/labeler.yml @@ -0,0 +1,34 @@ +# Copyright 2013 The Flutter Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# See https://github.com/actions/labeler/blob/main/README.md for docs. +embedder: + - shell/platform/embedder + +impeller: + - impeller/**/* + +platform-android: + - shell/platform/android/**/* + +platform-ios: + - shell/platform/darwin/common/**/* + - shell/platform/darwin/ios/**/* + +platform-fuchsia: + - shell/platform/fuchsia/**/* + +platform-linux: + - shell/platform/linux/**/* + +platform-macos: + - shell/platform/darwin/common/**/* + - shell/platform/darwin/macos/**/* + +platform-web: + - lib/web_ui/**/* + - '**/web_sdk/**/*' + +platform-windows: + - shell/platform/windows/**/* diff --git a/engine/src/flutter/.github/workflows/labeler.yml b/engine/src/flutter/.github/workflows/labeler.yml new file mode 100644 index 00000000000..3a5577155a0 --- /dev/null +++ b/engine/src/flutter/.github/workflows/labeler.yml @@ -0,0 +1,20 @@ +# Copyright 2013 The Flutter Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +name: "Pull Request Labeler" +on: +- pull_request_target + +# Declare default permissions as read only. +permissions: read-all + +jobs: + triage: + if: ${{ github.repository == 'flutter/flutter' }} + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + # Source available at https://github.com/actions/labeler/blob/main/README.md + - uses: actions/labeler@0776a679364a9a16110aac8d0f40f5e11009e327