Skip to content

Commit 5ecf80b

Browse files
authored
ci: add theme prs closer workflow (#3534)
* ci: add theme prs closer workflow * permissions
1 parent bbadc0b commit 5ecf80b

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Theme Pull Requests Closer
2+
3+
on:
4+
pull_request:
5+
types:
6+
- labeled
7+
8+
permissions:
9+
actions: read
10+
checks: read
11+
contents: read
12+
deployments: read
13+
issues: read
14+
discussions: read
15+
packages: read
16+
pages: read
17+
pull-requests: write
18+
repository-projects: read
19+
security-events: read
20+
statuses: read
21+
22+
jobs:
23+
close-prs:
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Check out the code
28+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
29+
30+
- name: Set up Git
31+
run: |
32+
git config user.name "github-actions[bot]"
33+
git config user.email "github-actions[bot]@users.noreply.github.com"
34+
35+
- name: Close Pull Requests
36+
run: |
37+
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."
38+
39+
for pr_number in $(gh pr list -l "themes" -q is:open --json number -q ".[].number"); do
40+
gh pr close $pr_number -c "$comment_message"
41+
done

0 commit comments

Comments
 (0)