From db96a89c05a1764ec3c01ee1a644317e541b1ef2 Mon Sep 17 00:00:00 2001 From: Sorn Date: Sat, 6 Sep 2025 19:20:15 +0400 Subject: [PATCH] #0 Test blacklist --- .github/workflows/blacklist.yaml | 25 +++++++++++++++++++++++++ docs/README.md | 8 -------- 2 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/blacklist.yaml diff --git a/.github/workflows/blacklist.yaml b/.github/workflows/blacklist.yaml new file mode 100644 index 00000000..29a102fb --- /dev/null +++ b/.github/workflows/blacklist.yaml @@ -0,0 +1,25 @@ +name: PR Blacklist Check + +on: + pull_request: + types: [opened, reopened, edited, synchronize] + +jobs: + check-blacklist: + runs-on: ubuntu-latest + steps: + - name: Check for blacklisted user + env: + BLACKLISTED_USERS: ${{ vars.BLACKLISTED_USERS }} + PR_AUTHOR: ${{ github.actor }} + run: | + if [[ -n "$BLACKLISTED_USERS" ]]; then + # Convert comma-separated list to array + IFS=',' read -ra USERS <<< "$BLACKLISTED_USERS" + for user in "${USERS[@]}"; do + if [[ "$user" == "$PR_AUTHOR" ]]; then + echo "::error::User $PR_AUTHOR is blacklisted from submitting PRs" + exit 1 + fi + done + fi \ No newline at end of file diff --git a/docs/README.md b/docs/README.md index 25529dc8..fcb7ece7 100644 --- a/docs/README.md +++ b/docs/README.md @@ -518,11 +518,3 @@ Copy of https://site.financialmodelingprep.com/developer/docs/stable#bulk - `com.fasterxml.jackson.core:jackson-databind` - `org.apache.httpcomponents.client5:httpclient5` - `org.apache.commons:commons-lang3` - -## Contributors - -- [sorndotdev](https://github.com/sorndotdev) -- [andyyngo](https://github.com/andyyngo) -- [HamzaIddaoui](https://github.com/HamzaIddaoui) -- [siddhantkore](https://github.com/siddhantkore) -- [joonseolee](https://github.com/joonseolee)