From 2ad105cd8eaae8dd6746d00935e2914d5536789e Mon Sep 17 00:00:00 2001 From: Vladislav Byrgazov Date: Tue, 28 May 2024 15:26:53 +0500 Subject: [PATCH] Added comment with draft field info to reuse Signed-off-by: Vladislav Byrgazov --- .github/workflows/check-mergeability.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check-mergeability.yaml b/.github/workflows/check-mergeability.yaml index 665cea1..f967f64 100644 --- a/.github/workflows/check-mergeability.yaml +++ b/.github/workflows/check-mergeability.yaml @@ -21,6 +21,7 @@ jobs: id: check_pr run: | pr_info=$(gh pr list --head ${{ github.event.workflow_run.head_branch }} --json number,mergeable,headRefName) +# env GITHUB_RUN_NUMBER can be used pr_number=$(echo $pr_info | jq -r '.[0].number') mergeable=$(echo $pr_info | jq -r '.[0].mergeable') pr_branch_ref=$(echo $pr_info | jq -r '.[0].headRefName')