Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Dependabot Auto-merge (7-day soak)
name: Dependabot Auto-merge (2-day soak)

# Runs daily. For any open Dependabot PR that is >= 7 days old, approved, and
# Runs daily. For any open Dependabot PR that is >= 2 days old, approved, and
# has passing CI — enables auto-merge so the merge queue picks it up.

on:
Expand All @@ -22,8 +22,8 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
run: |
SEVEN_DAYS_AGO=$(date -u -d '7 days ago' '+%Y-%m-%dT%H:%M:%SZ' 2>/dev/null || \
date -u -v-7d '+%Y-%m-%dT%H:%M:%SZ')
SEVEN_DAYS_AGO=$(date -u -d '2 days ago' '+%Y-%m-%dT%H:%M:%SZ' 2>/dev/null || \
date -u -v-2d '+%Y-%m-%dT%H:%M:%SZ')

echo "Looking for Dependabot PRs opened before $SEVEN_DAYS_AGO ..."

Expand Down Expand Up @@ -52,9 +52,9 @@ jobs:
continue
fi

# Skip if less than 7 days old
# Skip if less than 2 days old
if [[ "$CREATED" > "$SEVEN_DAYS_AGO" ]]; then
echo "PR #$NUMBER — opened $CREATED, not yet 7 days old, skipping"
echo "PR #$NUMBER — opened $CREATED, not yet 2 days old, skipping"
continue
fi

Expand Down
Loading