Skip to content

Commit

Permalink
adds logs and recognition of WaitForBackend label
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDEnYO committed Nov 25, 2024
1 parent 98da226 commit 7081818
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/unreviewedPRReminder.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 'Check old PRs'
on:
push:
schedule:
- cron: '0 0 * * *' # run once a day
workflow_dispatch: # enables manual trigger
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7081818

Please sign in to comment.