We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ce01d commit f562c61Copy full SHA for f562c61
.github/workflows/check-for-spammy-issues.yml
@@ -22,10 +22,16 @@ jobs:
22
const owner = 'github'
23
const repo = 'rest-api-description'
24
25
- const titleWordCount = issue.title.trim().split(' ').length
+ let titleWordCount = 0
26
+ if (issue.title) {
27
+ titleWordCount = issue.title.trim().split(' ').length
28
+ }
29
const titleWordCountMin = 3
30
- const bodyWordCount = issue.body.trim().split(' ').length
31
+ let bodyWordCount = 0
32
+ if (issue.body) {
33
+ bodyWordCount = issue.body.trim().split(' ').length
34
35
const bodyWordCountMin = 6
36
37
try {
0 commit comments