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
Copy file name to clipboardExpand all lines: .github/workflows/auto-add-ready-for-doc-review.yml
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
name: Auto-add ready-for-doc-review label
2
2
3
-
# **What it does**: Automatically adds the "ready-for-doc-review" label to DIY docs PRs that contain content or data changes when they are opened in a non-draft state or converted from draft to ready for review.
4
-
# **Why we have it**: To ensure DIY docs PRs are automatically added to the docs-content review board without requiring manual labeling.
5
-
# **Who does it impact**: Contributors making content changes and docs-content reviewers.
3
+
# Sends DIY content changes to the docs-content review board without manual labeling.
6
4
7
5
on:
8
6
pull_request:
@@ -34,8 +32,7 @@ jobs:
34
32
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
35
33
script: |
36
34
try {
37
-
// Team is addressed by numeric ID (org github = 9919, team docs = 325922)
38
-
// because IDs survive team renames and slugs do not.
35
+
// 9919 is the github org and 325922 the docs team; numeric IDs survive renames.
Copy file name to clipboardExpand all lines: .github/workflows/check-for-spammy-issues.yml
+3-16Lines changed: 3 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
name: Check for Spammy Issues
2
2
3
-
# **What it does**: This action closes low value issues in the open-source repository.
4
-
# **Why we have it**: We get lots of spam in the open-source repository.
5
-
# **Who does it impact**: Open-source contributors.
3
+
# Closes low-value public issues so spam does not stay open in github/docs.
6
4
7
5
on:
8
6
issues:
@@ -39,24 +37,15 @@ jobs:
39
37
username: context.payload.sender.login,
40
38
});
41
39
42
-
// Do not perform this workflow with GitHub employees. This return
43
-
// statement only gets hit if the user is a GitHub employee
40
+
// Skip GitHub employees so legitimate internal reports stay open.
44
41
return
45
42
} catch (err) {
46
-
// An error will be thrown if the user is not a GitHub employee
47
-
// If a user is not a GitHub employee, we should check to see if title has at least the minimum required number of words in it and if it does, we can exit the workflow
48
-
43
+
// The membership lookup throws for non-employees, so fall through to title checks.
49
44
if (titleWordCount >= titleWordCountMin && !titleHasUrl && !titleHasDollarSign) {
50
45
return
51
46
}
52
47
}
53
48
54
-
//
55
-
// Assuming the user is not a GitHub employee and the issue title
56
-
// does not contain the minimum number of words required, proceed.
57
-
//
58
-
59
-
// Close the issue and add the invalid label
60
49
await github.rest.issues.update({
61
50
owner: owner,
62
51
repo: repo,
@@ -65,15 +54,13 @@ jobs:
65
54
state: 'closed'
66
55
});
67
56
68
-
// Comment on the issue
69
57
await github.rest.issues.createComment({
70
58
owner: owner,
71
59
repo: repo,
72
60
issue_number: issue.number,
73
61
body: `This issue may have been opened accidentally. I'm going to close it now, but feel free to open a new issue with a more descriptive title! Make sure not to include full URLs in your issue titles, and use paths instead.`
74
62
});
75
63
76
-
// Add the issue to the Done column on the triage board
0 commit comments