-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: "Check old PRs" | ||
name: 'Check old PRs' | ||
on: | ||
schedule: | ||
- cron: '0 0 * * *' # run once a day | ||
workflow_dispatch: # enables manual trigger | ||
- cron: '0 0 * * *' # run once a day | ||
workflow_dispatch: # enables manual trigger | ||
|
||
jobs: | ||
check: | ||
|
@@ -13,7 +13,7 @@ jobs: | |
|
||
- name: Check PR age | ||
id: check_age | ||
env: # set the GH_TOKEN environment variable here | ||
env: # set the GH_TOKEN environment variable here | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
set -x | ||
|
@@ -36,6 +36,10 @@ 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 | ||
fi | ||
# Convert date to Unix timestamp | ||
PR_CREATED_AT=$(date -d"$PR_CREATED_AT" +%s) | ||
|
@@ -55,6 +59,6 @@ jobs: | |
if: env.old_prs != '' | ||
uses: Ilshidur/[email protected] | ||
with: | ||
args: "Hey team, please check out the following PRs that are not yet reviewed/merged: ${{ env.old_prs }}" | ||
args: 'Hey team, please check out the following PRs that are not yet reviewed/merged: ${{ env.old_prs }}' | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} |