Skip to content

Commit 4c24f09

Browse files
gcf-owl-bot[bot]sofisl
authored andcommitted
1 parent 111cc39 commit 4c24f09

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ body:
2424
e.js"
2525
required: true
2626
- label: "Check our Troubleshooting guide:
27-
https://googlecloudplatform.github.io/google-cloud-node/#/docs/guid\
28-
es/troubleshooting"
27+
https://github.com/googleapis/google-cloud-node/blob/main/docs/trou\
28+
bleshooting.md"
2929
required: true
3030
- label: "Check our FAQ:
31-
https://googlecloudplatform.github.io/google-cloud-node/#/docs/guid\
32-
es/faq"
31+
https://github.com/googleapis/google-cloud-node/blob/main/docs/faq.\
32+
md"
3333
required: true
3434
- label: "Check our libraries HOW-TO:
3535
https://github.com/googleapis/gax-nodejs/blob/main/client-libraries\
@@ -55,9 +55,9 @@ body:
5555
behavior you are experiencing. If the behavior is the same, it means
5656
that you are likely experiencing a bug with the API itself. In that
5757
case, please submit an issue to the API team, either by submitting an
58-
issue in its issue tracker https://cloud.google.com/support/docs/issue-trackers, or by
58+
issue in its issue tracker (https://cloud.google.com/support/docs/issue-trackers), or by
5959
submitting an issue in its linked tracker in the .repo-metadata.json
60-
file
60+
file
6161
validations:
6262
required: true
6363
- type: input
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
22
name: Process Request
3-
about: Submit a process request to the library. Process requests are any requests related to library infrastructure, including CI/CD, publishing, releasing, etc. This issue template should primarily used by internal members.
4-
5-
---
3+
about: Submit a process request to the library. Process requests are any requests related to library infrastructure, for example CI/CD, publishing, releasing, broken links.
4+
---

.github/scripts/close-invalid-link.cjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ module.exports = async ({github, context}) => {
4040
const isBugTemplate = issue.data.body.includes('Link to the code that reproduces this issue');
4141

4242
if (isBugTemplate) {
43+
console.log(`Issue ${number} is a bug template`)
4344
try {
44-
const link = issue.data.body.split('\n')[18].match(/(https?:\/\/g?i?s?t?\.?github.com\/.*)/);
45+
const link = issue.data.body.split('\n')[18].match(/(https?:\/\/(gist\.)?github.com\/.*)/)[0];
46+
console.log(`Issue ${number} contains this link: ${link}`)
4547
const isValidLink = (await fetch(link)).ok;
48+
console.log(`Issue ${number} has a ${isValidLink ? 'valid' : 'invalid'} link`)
4649
if (!isValidLink) {
4750
await closeIssue(github, owner, repo, number);
4851
}

0 commit comments

Comments
 (0)