From 708181865bfaa8b6c7c3383019e16b6107522101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Bl=C3=A4cker?= Date: Mon, 25 Nov 2024 09:13:13 +0700 Subject: [PATCH] adds logs and recognition of WaitForBackend label --- .github/workflows/unreviewedPRReminder.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unreviewedPRReminder.yml b/.github/workflows/unreviewedPRReminder.yml index fc90df5e0..031468f10 100644 --- a/.github/workflows/unreviewedPRReminder.yml +++ b/.github/workflows/unreviewedPRReminder.yml @@ -1,5 +1,6 @@ name: 'Check old PRs' on: + push: schedule: - cron: '0 0 * * *' # run once a day workflow_dispatch: # enables manual trigger @@ -22,11 +23,17 @@ jobs: echo "PRS: $PRS" OLD_PRS="" while read -r PR; do + echo "------------------------------------------------------------------" PR_CREATED_AT=$(echo "$PR" | jq -r '.created_at') PR_NUMBER=$(echo "$PR" | jq -r '.number') PR_LABELS=$(echo "$PR" | jq -c '.labels') PR_ISDRAFT=$(echo "$PR" | jq -r '.draft') + echo "Now checking PR: $PR_NUMBER" + echo "PR is in DRAFT status: $PR_ISDRAFT" + echo "The following labels are assigned to this PR: $PR_LABELS" + + # Continue loop if the PR is draft if [[ "$PR_ISDRAFT" == "true" ]]; then continue @@ -36,8 +43,9 @@ jobs: if echo "$PR_LABELS" | grep -q "WIP"; then continue fi - # Continue loop if the PR has the label "WaitForBackend" - if echo "$PR_LABELS" | grep -q "WaitForBackend"; then + + # Continue loop if the PR has the label "WaitForAudit" + if echo "$PR_LABELS" | grep -q "WaitForAudit"; then continue fi