Skip to content

Commit 996027a

Browse files
committed
feat: explicit restriction to main branch and closed PRs
1 parent 376d56d commit 996027a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/post_to_mastodon.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ name: Post to Mastodon on PR Merge
22

33
on:
44
pull_request:
5+
branches:
6+
- main
57
types:
68
- closed
79

10+
permissions:
11+
pull-request: read
12+
813
jobs:
914
post_to_mastodon:
1015
if: github.event.pull_request.merged == true

0 commit comments

Comments
 (0)