From ff8089ae49db3f8d304565002708c0781d32fa36 Mon Sep 17 00:00:00 2001 From: Vishal Gehlot <157263652+Vishal002003@users.noreply.github.com> Date: Sun, 12 Oct 2025 08:19:54 +0000 Subject: [PATCH 1/2] added workflow for auto comment on issues --- .../issue-create-automate-message.yml | 38 +++++++++++++++++++ .../compile/default-compile/inputFiles.lst | 1 + 2 files changed, 39 insertions(+) create mode 100644 github/worklows/issue-create-automate-message.yml diff --git a/github/worklows/issue-create-automate-message.yml b/github/worklows/issue-create-automate-message.yml new file mode 100644 index 0000000..5b71fd7 --- /dev/null +++ b/github/worklows/issue-create-automate-message.yml @@ -0,0 +1,38 @@ +name: Auto Comment on Issue + +on: + issues: + types: [opened] + +permissions: + issues: write + +jobs: + comment: + runs-on: ubuntu-latest + steps: + - name: Add Comment to Issue + uses: actions/github-script@v6 + with: + script: | + const issueNumber = context.issue.number; + + const commentBody1 = `### Thank you for raising this issue!\n We'll review it as soon as possible. We truly appreciate your contributions! ✨\n\n> Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. 😊`; + + const commentBody2 = `![TrustTheProcess](https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExbWtoOWpsMnozdXd0MmJxejhiNGwwdjltY3dyNW80NHg2Ym01YTdlMSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/mPKa6OI5oRsmextwBq/giphy.gif)`; + + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issueNumber, + body: commentBody1 + }); + + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issueNumber, + body: commentBody2 + }); + + console.log('Both comments added successfully.'); \ No newline at end of file diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index 8e8fabc..88dd9c3 100644 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -4,6 +4,7 @@ /workspaces/MyCMD/src/main/java/com/mycmd/commands/CdCommand.java /workspaces/MyCMD/src/main/java/com/mycmd/commands/ClsCommand.java /workspaces/MyCMD/src/main/java/com/mycmd/commands/CopyCommand.java +/workspaces/MyCMD/src/main/java/com/mycmd/commands/DateCommand.java /workspaces/MyCMD/src/main/java/com/mycmd/commands/DelCommand.java /workspaces/MyCMD/src/main/java/com/mycmd/commands/DirCommand.java /workspaces/MyCMD/src/main/java/com/mycmd/commands/EchoCommand.java From 6d76147349afb4fa2f64a04985586e73f71601a5 Mon Sep 17 00:00:00 2001 From: Vishal Gehlot <157263652+Vishal002003@users.noreply.github.com> Date: Sun, 12 Oct 2025 16:45:14 +0530 Subject: [PATCH 2/2] Update github/worklows/issue-create-automate-message.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- github/worklows/issue-create-automate-message.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/github/worklows/issue-create-automate-message.yml b/github/worklows/issue-create-automate-message.yml index 5b71fd7..bd48f4d 100644 --- a/github/worklows/issue-create-automate-message.yml +++ b/github/worklows/issue-create-automate-message.yml @@ -17,8 +17,10 @@ jobs: script: | const issueNumber = context.issue.number; - const commentBody1 = `### Thank you for raising this issue!\n We'll review it as soon as possible. We truly appreciate your contributions! ✨\n\n> Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. 😊`; + const commentBody1 = `### Thank you for raising this issue! +We'll review it as soon as possible. We truly appreciate your contributions! ✨ +> Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. 😊`; const commentBody2 = `![TrustTheProcess](https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExbWtoOWpsMnozdXd0MmJxejhiNGwwdjltY3dyNW80NHg2Ym01YTdlMSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/mPKa6OI5oRsmextwBq/giphy.gif)`; await github.rest.issues.createComment({