Skip to content

updates

updates #672

name: Theme Pull Requests Closer
on:
- pull_request_target
permissions: read-all
jobs:
close-prs:
if: github.repository == 'ermradulsharma/github-readme-stats'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Check out the code
uses: actions/checkout@v6.0.2 # v6.0.2
- name: Set up Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Close Pull Requests
run: |
comment_message="We are currently pausing addition of new themes. If this theme is exclusively for your personal use, then instead of adding it to our theme collection, you can use card [customization options](https://github.com/ermradulsharma/github-readme-stats?tab=readme-ov-file#customization)."
for pr_number in $(gh pr list -l "themes" -q is:open --json number -q ".[].number"); do
gh pr close $pr_number -c "$comment_message"
done
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}