Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
652 B
23 lines
652 B
1 year ago
|
name: Protobuf Janitor
|
||
|
|
||
|
on:
|
||
|
schedule:
|
||
|
# Run daily at 10 AM UTC (2 AM PDT)
|
||
|
- cron: 0 10 * * *
|
||
|
workflow_dispatch:
|
||
|
|
||
|
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 }}
|