From 52741f86a558dfff5e2246c9e52967fcd9a51af8 Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Tue, 2 Jan 2024 11:03:54 +0100 Subject: [PATCH 1/7] [infra] Fix labeler.yml --- .github/labeler.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 4ad6406d07..2d7ab38a7b 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,22 +1,29 @@ # Configuration for .github/workflows/pull_request_label.yml. 'type-infra': - - '.github/**' + - changed-files: + - any-glob-to-any-file: '.github/**' 'package:ffigen': - - 'pkgs/ffigen/**' + - changed-files: + - any-glob-to-any-file: 'pkgs/ffigen/**' 'package:jnigen': - - 'pkgs/jnigen/**' + - changed-files: + - any-glob-to-any-file: 'pkgs/jnigen/**' 'package:jni': - - 'pkgs/jni/**' + - changed-files: + - any-glob-to-any-file: 'pkgs/jni/**' 'package:native_assets_builder': - - 'pkgs/native_assets_builder/**' + - changed-files: + - any-glob-to-any-file: 'pkgs/native_assets_builder/**' 'package:native_assets_cli': - - 'pkgs/native_assets_cli/**' + - changed-files: + - any-glob-to-any-file: 'pkgs/native_assets_cli/**' 'package:native_toolchain_c': - - 'pkgs/native_toolchain_c/**' + - changed-files: + - any-glob-to-any-file: 'pkgs/native_toolchain_c/**' From 3892938639e187c1d4e91337dd291386b4170e78 Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Tue, 2 Jan 2024 11:15:23 +0100 Subject: [PATCH 2/7] Try different formatting --- .github/labeler.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 2d7ab38a7b..e11f526a5f 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,29 +1,29 @@ # Configuration for .github/workflows/pull_request_label.yml. 'type-infra': - - changed-files: - - any-glob-to-any-file: '.github/**' +- changed-files: + - any-glob-to-any-file: '.github/**' 'package:ffigen': - - changed-files: - - any-glob-to-any-file: 'pkgs/ffigen/**' +- changed-files: + - any-glob-to-any-file: 'pkgs/ffigen/**' 'package:jnigen': - - changed-files: - - any-glob-to-any-file: 'pkgs/jnigen/**' +- changed-files: + - any-glob-to-any-file: 'pkgs/jnigen/**' 'package:jni': - - changed-files: - - any-glob-to-any-file: 'pkgs/jni/**' +- changed-files: + - any-glob-to-any-file: 'pkgs/jni/**' 'package:native_assets_builder': - - changed-files: - - any-glob-to-any-file: 'pkgs/native_assets_builder/**' +- changed-files: + - any-glob-to-any-file: 'pkgs/native_assets_builder/**' 'package:native_assets_cli': - - changed-files: - - any-glob-to-any-file: 'pkgs/native_assets_cli/**' +- changed-files: + - any-glob-to-any-file: 'pkgs/native_assets_cli/**' 'package:native_toolchain_c': - - changed-files: - - any-glob-to-any-file: 'pkgs/native_toolchain_c/**' +- changed-files: + - any-glob-to-any-file: 'pkgs/native_toolchain_c/**' From 281b1659a70d01be6410b68b67a85e8101aac4fd Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Tue, 2 Jan 2024 11:18:02 +0100 Subject: [PATCH 3/7] Use checkout to use the labeler from the PR --- .github/labeler.yml | 28 ++++++++++++------------ .github/workflows/pull_request_label.yml | 1 + 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index e11f526a5f..2d7ab38a7b 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,29 +1,29 @@ # Configuration for .github/workflows/pull_request_label.yml. 'type-infra': -- changed-files: - - any-glob-to-any-file: '.github/**' + - changed-files: + - any-glob-to-any-file: '.github/**' 'package:ffigen': -- changed-files: - - any-glob-to-any-file: 'pkgs/ffigen/**' + - changed-files: + - any-glob-to-any-file: 'pkgs/ffigen/**' 'package:jnigen': -- changed-files: - - any-glob-to-any-file: 'pkgs/jnigen/**' + - changed-files: + - any-glob-to-any-file: 'pkgs/jnigen/**' 'package:jni': -- changed-files: - - any-glob-to-any-file: 'pkgs/jni/**' + - changed-files: + - any-glob-to-any-file: 'pkgs/jni/**' 'package:native_assets_builder': -- changed-files: - - any-glob-to-any-file: 'pkgs/native_assets_builder/**' + - changed-files: + - any-glob-to-any-file: 'pkgs/native_assets_builder/**' 'package:native_assets_cli': -- changed-files: - - any-glob-to-any-file: 'pkgs/native_assets_cli/**' + - changed-files: + - any-glob-to-any-file: 'pkgs/native_assets_cli/**' 'package:native_toolchain_c': -- changed-files: - - any-glob-to-any-file: 'pkgs/native_toolchain_c/**' + - changed-files: + - any-glob-to-any-file: 'pkgs/native_toolchain_c/**' diff --git a/.github/workflows/pull_request_label.yml b/.github/workflows/pull_request_label.yml index 54e3df537c..7dad514706 100644 --- a/.github/workflows/pull_request_label.yml +++ b/.github/workflows/pull_request_label.yml @@ -16,6 +16,7 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" From ef249d8736879ceaf99ab3977e01ba545e3b66cc Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Tue, 2 Jan 2024 11:21:05 +0100 Subject: [PATCH 4/7] Try adding repo --- .github/workflows/pull_request_label.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pull_request_label.yml b/.github/workflows/pull_request_label.yml index 7dad514706..5f462bf93b 100644 --- a/.github/workflows/pull_request_label.yml +++ b/.github/workflows/pull_request_label.yml @@ -17,6 +17,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + with: + repository: "dart-lang/native" - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" From 39a46ccb57ef41b6b39b04a6c2230b1423af63fb Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Tue, 2 Jan 2024 11:22:50 +0100 Subject: [PATCH 5/7] Undo checkout changes, they do nothing --- .github/workflows/pull_request_label.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/pull_request_label.yml b/.github/workflows/pull_request_label.yml index 5f462bf93b..54e3df537c 100644 --- a/.github/workflows/pull_request_label.yml +++ b/.github/workflows/pull_request_label.yml @@ -16,9 +16,6 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - with: - repository: "dart-lang/native" - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" From e088e7edbe9aaa8023c1b7e6f80121dc6c7c8ac9 Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Tue, 2 Jan 2024 11:24:09 +0100 Subject: [PATCH 6/7] Try deleting everything --- .github/labeler.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 2d7ab38a7b..b99d6bdd32 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,29 +1 @@ # Configuration for .github/workflows/pull_request_label.yml. - -'type-infra': - - changed-files: - - any-glob-to-any-file: '.github/**' - -'package:ffigen': - - changed-files: - - any-glob-to-any-file: 'pkgs/ffigen/**' - -'package:jnigen': - - changed-files: - - any-glob-to-any-file: 'pkgs/jnigen/**' - -'package:jni': - - changed-files: - - any-glob-to-any-file: 'pkgs/jni/**' - -'package:native_assets_builder': - - changed-files: - - any-glob-to-any-file: 'pkgs/native_assets_builder/**' - -'package:native_assets_cli': - - changed-files: - - any-glob-to-any-file: 'pkgs/native_assets_cli/**' - -'package:native_toolchain_c': - - changed-files: - - any-glob-to-any-file: 'pkgs/native_toolchain_c/**' From a7d5531c74bf26e83d6b60d160624126197a8316 Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Tue, 2 Jan 2024 11:26:24 +0100 Subject: [PATCH 7/7] Revert "Try deleting everything" This reverts commit e088e7edbe9aaa8023c1b7e6f80121dc6c7c8ac9. --- .github/labeler.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index b99d6bdd32..2d7ab38a7b 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1 +1,29 @@ # Configuration for .github/workflows/pull_request_label.yml. + +'type-infra': + - changed-files: + - any-glob-to-any-file: '.github/**' + +'package:ffigen': + - changed-files: + - any-glob-to-any-file: 'pkgs/ffigen/**' + +'package:jnigen': + - changed-files: + - any-glob-to-any-file: 'pkgs/jnigen/**' + +'package:jni': + - changed-files: + - any-glob-to-any-file: 'pkgs/jni/**' + +'package:native_assets_builder': + - changed-files: + - any-glob-to-any-file: 'pkgs/native_assets_builder/**' + +'package:native_assets_cli': + - changed-files: + - any-glob-to-any-file: 'pkgs/native_assets_cli/**' + +'package:native_toolchain_c': + - changed-files: + - any-glob-to-any-file: 'pkgs/native_toolchain_c/**'