mirror of
https://github.com/block/goose.git
synced 2026-05-17 21:19:29 +00:00
Some checks are pending
Canary / bundle-desktop (push) Blocked by required conditions
Canary / bundle-desktop-linux (push) Blocked by required conditions
Canary / bundle-desktop-windows (push) Blocked by required conditions
Canary / Prepare Version (push) Waiting to run
Canary / build-cli (push) Blocked by required conditions
Canary / Upload Install Script (push) Blocked by required conditions
Canary / Release (push) Blocked by required conditions
CI / changes (push) Waiting to run
CI / Check Rust Code Format (push) Blocked by required conditions
CI / Build and Test Rust Project (push) Blocked by required conditions
CI / Lint Rust Code (push) Blocked by required conditions
CI / Check OpenAPI Schema is Up-to-Date (push) Blocked by required conditions
CI / Test and Lint Electron Desktop App (push) Blocked by required conditions
Live Provider Tests / check-fork (push) Waiting to run
Live Provider Tests / changes (push) Blocked by required conditions
Live Provider Tests / Build Release Binary (push) Blocked by required conditions
Live Provider Tests / Smoke Tests (push) Blocked by required conditions
Live Provider Tests / Smoke Tests (Code Execution) (push) Blocked by required conditions
Publish Docker Image / docker (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: Quarantine check
|
|
|
|
on:
|
|
pull_request_target:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
issues: write
|
|
|
|
jobs:
|
|
check-quarantined:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
- name: Check PR Author
|
|
run: |
|
|
# Get PR author
|
|
PR_AUTHOR="${{ github.event.pull_request.user.login }}"
|
|
|
|
# Convert comma-separated list to array
|
|
IFS=',' read -ra QUARANTINE_LIST <<< "${{ vars.QUARANTINED_USERS }}"
|
|
|
|
# Check if PR author is in the quarantine list
|
|
for user in "${QUARANTINE_LIST[@]}"; do
|
|
if [ "$user" = "$PR_AUTHOR" ]; then
|
|
echo "PR author is in the quarantine list - closing PR"
|
|
# Close PR using GitHub CLI
|
|
gh pr close ${{ github.event.pull_request.number }} -c "Thanks for this, please contact the project on discord before opening PRs"
|
|
exit 0
|
|
fi
|
|
done
|
|
|
|
echo "continuing..."
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|