You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# **What it does**: This action closes spammy pull requests in the open-source repository that have the title 'Revert "Repo sync" or contain an empty commit.
4
+
# **Why we have it**: We get lots of spam in the open-source repository.
5
+
# **Who does it impact**: Open-source contributors.
6
+
7
+
on:
8
+
# Needed in lieu of `pull_request` so that PRs from a fork can be
9
+
# closed when marked as invalid.
10
+
pull_request_target:
11
+
types: [opened]
12
+
13
+
permissions:
14
+
contents: read
15
+
issues: write
16
+
pull-requests: write
17
+
18
+
jobs:
19
+
close_empty_pr:
20
+
if: github.repository == 'github/docs'
21
+
runs-on: ubuntu-latest
22
+
23
+
steps:
24
+
- name: Checkout repository
25
+
uses: actions/checkout@v2
26
+
27
+
- name: Get PR details
28
+
id: pr_details
29
+
uses: octokit/request-action@v2
30
+
with:
31
+
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}
0 commit comments