Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/check-for-spammy-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ jobs:
const titleWordCountMin = 3
const urlRegex = /https?:\/\/\S+/i
const titleHasUrl = urlRegex.test(issue.title)
const titleHasDollarSign = issue.title.includes('$')
// Text-default symbols need an emoji selector; plain digits, #, and * need a keycap.
const titleHasEmoji = /\p{Emoji_Presentation}(?!\uFE0E)|\p{Extended_Pictographic}\uFE0F|[#*0-9]\uFE0F?\u20E3/u.test(issue.title)
// Keep the existing non-emoji heuristics limited to newly opened issues.
const hasOtherSpam = context.payload.action === 'opened' &&
(titleWordCount < titleWordCountMin || titleHasUrl || titleHasDollarSign)
(titleWordCount < titleWordCountMin || titleHasUrl)
if (!titleHasEmoji && !hasOtherSpam) {
return
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Here are some resources to help you get started with open source contributions:
* [Finding ways to contribute to open source on GitHub](https://docs.github.com/en/get-started/exploring-projects-on-github/finding-ways-to-contribute-to-open-source-on-github)
* [Set up Git](https://docs.github.com/en/get-started/git-basics/set-up-git)
* [GitHub flow](https://docs.github.com/en/get-started/using-github/github-flow)
* [Collaborating with pull requests](https://docs.github.com/en/github/collaborating-with-pull-requests)
* [How we use pull requests on Docs](https://docs.github.com/en/contributing/collaborating-on-github-docs/about-contributing-to-github-docs#pull-requests)

## License

Expand Down
Loading