Skip to content

[9.x] Close illuminate pull-requests. #40765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
18 changes: 18 additions & 0 deletions .github/workflows/close-pull-requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: close-pull-requests

on:
schedule:
- cron: '0 * * * *'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running every hour which is more than sufficient


jobs:
close_pull_requests:
runs-on: ubuntu-20.04

name: Close all illuminate pull-requests

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run the script
run: ./bin/close-pull-requests.sh
26 changes: 26 additions & 0 deletions bin/close-pull-requests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

set -e

COMMENT='Thank you for your pull request.
However, you have submitted this PR on the Illuminate organization which is a read-only sub split of \`laravel/framework\`.
Please submit your PR on the https://github.com/laravel/framework repository.

Thanks!'

for REPO in $(gh repo list illuminate --public --topic="read-only" --json "nameWithOwner" --jq '.[].nameWithOwner'); do

for PR in $(gh pr list -R $REPO --json "number" --jq '.[].number'); do

# Add a comment
gh pr comment $PR -R $REPO -b $COMMENT

# Close the pull request
gh pr close $PR -R $REPO

# Lock the pull request too?
# gh api -X PUT repos/$REPO/issues/$PR/lock
Copy link
Contributor Author

@lucasmichot lucasmichot Feb 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could also be nice to have PR locked too here


done

done
2 changes: 0 additions & 2 deletions src/Illuminate/Auth/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Auth/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Broadcasting/.gitattributes

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Bus/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Bus/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Cache/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Cache/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Collections/.gitattributes

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Conditionable/.gitattributes

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Config/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Config/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Console/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Console/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Container/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Container/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Contracts/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Contracts/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Cookie/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Cookie/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Database/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Database/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Encryption/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Encryption/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Events/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Events/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Filesystem/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Filesystem/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Hashing/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Hashing/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Http/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Http/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Log/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Log/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Macroable/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Macroable/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Mail/.gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions src/Illuminate/Mail/.github/workflows/close-pull-request.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Illuminate/Notifications/.gitattributes

This file was deleted.

Loading