Merge remote-tracking branch 'remotes/upstream/main' into restore-files

pull/13693/head
Adam Cozzette 1 year ago
commit eee435d1bd
  1. 26
      .github/workflows/janitor.yml

@ -8,16 +8,16 @@ on:
jobs:
stale-prs:
- name: Close Stale Copybara PRs
runs-on: ubuntu-latest
run: |
set -ex
STALE_PRS=$(gh pr list --author "app/copybara-service" --limit 500 \
--json "number" --search "updated:<=$(date --date="-7 day" +%F)" \
| jq ".[].number")
for pr in $(STALE_PRS); do
echo "Closing #$pr..."
gh pr close --comment "Auto-closing Copybara pull request" --delete-branch "$pr"
done
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Close Stale Copybara PRs
runs-on: ubuntu-latest
run: |
set -ex
STALE_PRS=$(gh pr list --author "app/copybara-service" --limit 500 \
--json "number" --search "updated:<=$(date --date="-7 day" +%F)" \
| jq ".[].number")
for pr in $(STALE_PRS); do
echo "Closing #$pr..."
gh pr close --comment "Auto-closing Copybara pull request" --delete-branch "$pr"
done
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading…
Cancel
Save