Skip to content

Commit c17d8da

Browse files
chore: update links in github issue templates (#1979)
* chore: update links in github issue templates Source-Link: googleapis/synthtool@38fa49f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:609822e3c09b7a1bd90b99655904609f162cc15acb4704f1edf778284c36f429 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent e4e0653 commit c17d8da

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

.github/.OwlBot.lock.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
16-
digest: sha256:a5af6af827a9fffba373151e1453b0498da288024cdd16477900dd42857a42e0
17-
# created: 2024-09-20T20:26:11.126243246Z
16+
digest: sha256:609822e3c09b7a1bd90b99655904609f162cc15acb4704f1edf778284c36f429
17+
# created: 2024-10-01T19:34:30.797530443Z

.github/ISSUE_TEMPLATE/bug_report.yml

+6-6
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 https://issuetracker.google.com/savedsearches/559741
60+
file https://issuetracker.google.com/savedsearches/559741
6161
validations:
6262
required: true
6363
- type: input
+2-3
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

+4-1
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)