ci: add theme prs closer workflow

This commit is contained in:
Alexandr
2023-12-06 21:51:22 +02:00
parent 23472f40e8
commit 01cfabf9c6
+27
View File
@@ -0,0 +1,27 @@
name: Theme Pull Requests Closer
on:
pull_request:
types:
- labeled
jobs:
close-prs:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- 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."
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