Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add reply new issue workflow #3905

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/reply-new-issue.yml
@@ -0,0 +1,29 @@
name: Reply New Issue

on:
issues:
types: [opened]

permissions:
issues: write

jobs:
reply-to-issue:
runs-on: ubuntu-latest
steps:
- name: Reply to new issue
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issueComment = `@${context.actor} 👋

Thank you for submitting an issue to \`VueUse\`.
Please ensure your submission is complete according to the \`issue\` template, so we can more effectively pinpoint and address the problem.
`
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: issueComment
})