Skip to content

Commit 5df0612

Browse files
authored
Revert "Add conditions to close certain spammy PRs in OS repo (#54752)" (#54857)
1 parent 189d7dc commit 5df0612

3 files changed

Lines changed: 2 additions & 47 deletions

File tree

.github/workflows/check-for-spammy-prs.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/close-on-invalid-label.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818
pull-requests: write
1919

2020
jobs:
21-
close-if-invalid:
21+
close-on-adding-invalid-label:
2222
if: github.repository == 'github/docs' && github.event.label.name == 'invalid'
2323
runs-on: ubuntu-latest
2424

src/workflows/tests/actions-workflows.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { flatten } from 'flat'
88
import { chain, get } from 'lodash-es'
99

1010
const githubOwnedActionsRegex =
11-
/^(actions\/(cache|checkout|download-artifact|upload-artifact)@v\d+(\.\d+)*)|(octokit\/(request-action)@v\d+(\.\d+)*)$/
11+
/^(actions\/(cache|checkout|download-artifact|upload-artifact)@v\d+(\.\d+)*)$/
1212
const actionHashRegexp = /^[A-Za-z0-9-/]+@[0-9a-f]{40}$/
1313
const checkoutRegexp = /^[actions/checkout]+@(v\d+(\.\d+)*|[0-9a-f]{40})$/
1414
const permissionsRegexp = /(read|write)/

0 commit comments

Comments
 (0)