Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/issue-auto-reply.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Auto-Reply to New Issues

on:
issues:
types: [opened]

permissions:
issues: write

jobs:
post-welcome-comment:
name: Post Welcome Comment
runs-on: ubuntu-latest
steps:
- name: Post welcome comment on new issue
uses: actions/github-script@v7
Copy link

Copilot AI Oct 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pin the action to a specific commit SHA instead of a mutable tag to prevent supply-chain risks. Example: uses: actions/github-script@<exact_commit_sha> (use the commit corresponding to v7 from the action's releases).

Suggested change
uses: actions/github-script@v7
uses: actions/github-script@8a7c6c5e6e6e1e0e2e3e4e5e6e7e8e9e0e1e2e3e

Copilot uses AI. Check for mistakes.
with:
script: |
const message = `Thank you for raising this issue! Our team will review it soon.

For more queries or discussions or approval of requests, please join the Discord server for further discussion: [Discord Link](https://discord.com/invite/Yn9g6KuWyA)`;
Copy link

Copilot AI Oct 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second line of the message is indented within the template literal, which will render as a code block in GitHub Markdown (4+ leading spaces). Remove the indentation inside the template string or build the message with explicit \n to avoid unintended formatting. For example: const message = 'Thank you for raising this issue! Our team will review it soon.\n\nFor more queries or discussions or approval of requests, please join the Discord server for further discussion: Discord Link';

Suggested change
For more queries or discussions or approval of requests, please join the Discord server for further discussion: [Discord Link](https://discord.com/invite/Yn9g6KuWyA)`;
For more queries or discussions or approval of requests, please join the Discord server for further discussion: [Discord Link](https://discord.com/invite/Yn9g6KuWyA)`;

Copilot uses AI. Check for mistakes.

await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: message
});