This is an automated email from the ASF dual-hosted git repository.

slawrence pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil.git


The following commit(s) were added to refs/heads/main by this push:
     new 549ac81de Add "dependencies" label to scala steward PRs
549ac81de is described below

commit 549ac81deb80c42bd5882dd5b62e997979bbf830
Author: Steve Lawrence <[email protected]>
AuthorDate: Mon Aug 4 11:13:29 2025 -0400

    Add "dependencies" label to scala steward PRs
    
    Commit 6d60986a53 added a scala steward configuration to apply the
    "dependencies" label to PRs it created, but that didn't actually work as
    expected--it only adds the text "labels: depenencies" to the PR message
    without actually labeling anything. Turns out scala steward doesn't have
    the ability to add actual labels.
    
    To fix this, we now use the TimonVS/pr-labeler-action action (usage is
    approved by ASF) which allows assigning labels based on branch names.
    Scala steward uses an "update/" prefix for its branches so we specify
    that in the config.
    
    This also removes the .scala-steward.conf file--it doesn't provide any
    value since the only thing it was used for was labeling, which didn't
    work.
    
    DAFFODIL-2995
---
 .scala-steward.conf => .github/pr-labeler.yml           |  4 +---
 .scala-steward.conf => .github/workflows/pr-labeler.yml | 13 +++++++++++--
 2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/.scala-steward.conf b/.github/pr-labeler.yml
similarity index 84%
copy from .scala-steward.conf
copy to .github/pr-labeler.yml
index 8e43f4199..95a0b2ca0 100644
--- a/.scala-steward.conf
+++ b/.github/pr-labeler.yml
@@ -13,6 +13,4 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# 
https://github.com/scala-steward-org/scala-steward/blob/main/docs/repo-specific-configuration.md
-
-pullRequests.customLabels = [ "dependencies" ]
+dependencies: ['update/*']
diff --git a/.scala-steward.conf b/.github/workflows/pr-labeler.yml
similarity index 74%
rename from .scala-steward.conf
rename to .github/workflows/pr-labeler.yml
index 8e43f4199..b310bd7f1 100644
--- a/.scala-steward.conf
+++ b/.github/workflows/pr-labeler.yml
@@ -13,6 +13,15 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# 
https://github.com/scala-steward-org/scala-steward/blob/main/docs/repo-specific-configuration.md
+name: PR Labeler
+on:
+  pull_request:
+    types: [opened]
 
-pullRequests.customLabels = [ "dependencies" ]
+jobs:
+  pr-labeler:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: 
TimonVS/pr-labeler-action@f9c084306ce8b3f488a8f3ee1ccedc6da131d1af # v5.0.0
+        with:
+          repo-token: ${{ secrets.GITHUB_TOKEN }}

Reply via email to