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

Fixed GitHub Bot message format #1807

Merged
merged 2 commits into from Feb 6, 2024
Merged
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
14 changes: 6 additions & 8 deletions scripts/new_issue-message.js
@@ -1,14 +1,12 @@
const { context, getOctokit } = require('@actions/github');
const { context, getOctokit } = require("@actions/github");

const newIssueMessage = async () => {
try {
const octokit = getOctokit(process.env.GITHUB_TOKEN);
const issueComment =
`Thank you for opening an issue! 🚀

Our team will review it as soon as possible. In the meantime, please make sure that you've provided all the necessary details to help us understand and address the issue effectively.

Feel free to contribute and participate in discussions!`
"Thank you for opening an issue! 🚀\n\n" +
"Our team will review it as soon as possible. In the meantime, please make sure that you've provided all the necessary details to help us understand and address the issue effectively.\n\n" +
"Feel free to contribute and participate in discussions!";

await octokit.rest.issues.createComment({
...context.repo,
Expand All @@ -19,6 +17,6 @@ const newIssueMessage = async () => {
console.error(error);
process.exit(1);
}
}
};

newIssueMessage();
newIssueMessage();