File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Dependabot Auto-merge (7 -day soak)
1+ name : Dependabot Auto-merge (2 -day soak)
22
3- # Runs daily. For any open Dependabot PR that is >= 7 days old, approved, and
3+ # Runs daily. For any open Dependabot PR that is >= 2 days old, approved, and
44# has passing CI — enables auto-merge so the merge queue picks it up.
55
66on :
2222 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2323 REPO : ${{ github.repository }}
2424 run : |
25- SEVEN_DAYS_AGO=$(date -u -d '7 days ago' '+%Y-%m-%dT%H:%M:%SZ' 2>/dev/null || \
26- date -u -v-7d '+%Y-%m-%dT%H:%M:%SZ')
25+ SEVEN_DAYS_AGO=$(date -u -d '2 days ago' '+%Y-%m-%dT%H:%M:%SZ' 2>/dev/null || \
26+ date -u -v-2d '+%Y-%m-%dT%H:%M:%SZ')
2727
2828 echo "Looking for Dependabot PRs opened before $SEVEN_DAYS_AGO ..."
2929
5252 continue
5353 fi
5454
55- # Skip if less than 7 days old
55+ # Skip if less than 2 days old
5656 if [[ "$CREATED" > "$SEVEN_DAYS_AGO" ]]; then
57- echo "PR #$NUMBER — opened $CREATED, not yet 7 days old, skipping"
57+ echo "PR #$NUMBER — opened $CREATED, not yet 2 days old, skipping"
5858 continue
5959 fi
6060
You can’t perform that action at this time.
0 commit comments