mirror of
https://github.com/google-github-actions/auth.git
synced 2026-06-07 06:17:05 +00:00
Add workflow for troubleshooting comment
This commit is contained in:
parent
773e856e31
commit
f899132198
1 changed files with 31 additions and 0 deletions
31
.github/workflows/troubleshooting.yml
vendored
Normal file
31
.github/workflows/troubleshooting.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
name: 'troubleshooting'
|
||||
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
- 'labeled'
|
||||
- 'opened'
|
||||
|
||||
jobs:
|
||||
troubleshooting:
|
||||
runs-on: 'ubuntu-latest'
|
||||
|
||||
steps:
|
||||
- uses: 'actions/github-script@v6'
|
||||
if: '${{ github.event.label_name == 'bug' }}'
|
||||
with:
|
||||
script: |-
|
||||
const msg =
|
||||
`Hi there :wave:!\n` +
|
||||
`\n` +
|
||||
`Thank you for reporting an issue. Our team will triage this as soon as we ` +
|
||||
`can. Please take a moment to review the ` +
|
||||
`[troubleshooting steps](https://github.com/google-github-actions/auth/blob/main/docs/TROUBLESHOOTING.md)` +
|
||||
`which lists common error messages and their resolution steps.`;
|
||||
|
||||
await github.rest.issues.createComment({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: msg,
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue