You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by gi...@apache.org on 2026/09/28 20:11:02 UTC

(datafusion) 01/01: ci: Checkout repo first in the Release Version Labeler workflow (#25845)

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

github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-25845-146348b8137ef66056638e80c7c8cad34c6a9def
in repository https://gitbox.apache.org/repos/asf/datafusion.git

commit c76bc3bc292070348fd35c32a5d2e2b2ddcc8599
Author: Nuno Faria <nu...@gmail.com>
AuthorDate: Mon Sep 28 20:10:38 2026 +0000

    ci: Checkout repo first in the Release Version Labeler workflow (#25845)
    
    ## Which issue does this PR close?
    
    - N/A.
    
    ## Rationale for this change
    
    Follow up to https://github.com/apache/datafusion/pull/25776. Adds the
    missing checkout to the release version workflow.
    
    ## What changes are included in this PR?
    
    - Added the missing checkout.
    - Fix the script fmt.
    
    ## What is the testing strategy for this PR?
    
    N/A.
    
    ## Are there any user-facing changes?
    
    No.
---
 .github/workflows/release_version_labeler.yaml |  4 +++-
 ci/scripts/release_version_labeler.js          | 14 +++++++-------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/release_version_labeler.yaml b/.github/workflows/release_version_labeler.yaml
index d2ab0c6fc0..1e44ad842c 100644
--- a/.github/workflows/release_version_labeler.yaml
+++ b/.github/workflows/release_version_labeler.yaml
@@ -37,8 +37,10 @@ jobs:
     runs-on: ubuntu-slim
     permissions:
       pull-requests: write
+      contents: read
     steps:
-      - name: Add the target release version 
+      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1  # v7.0.1
+      - name: Add the target release version
         uses: actions/github-script@v9.0.0
         with:
           script: |
diff --git a/ci/scripts/release_version_labeler.js b/ci/scripts/release_version_labeler.js
index 54a6ac6825..78d17d5671 100644
--- a/ci/scripts/release_version_labeler.js
+++ b/ci/scripts/release_version_labeler.js
@@ -29,14 +29,14 @@ module.exports = async ({ github, context }) => {
         });
     } catch (error) {
         if (error.status === 404) {
-        await github.rest.issues.createLabel({
-            owner: context.repo.owner,
-            repo: context.repo.repo,
-            name: target_version,
-            color: '222222'
-        });
+            await github.rest.issues.createLabel({
+                owner: context.repo.owner,
+                repo: context.repo.repo,
+                name: target_version,
+                color: '222222'
+            });
         } else {
-        throw error;
+            throw error;
         }
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org