Skip to content

Commit ff8089a

Browse files
committed
added workflow for auto comment on issues
1 parent 17d8413 commit ff8089a

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Auto Comment on Issue
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
comment:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Add Comment to Issue
15+
uses: actions/github-script@v6
16+
with:
17+
script: |
18+
const issueNumber = context.issue.number;
19+
20+
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. 😊`;
21+
22+
const commentBody2 = `![TrustTheProcess](https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExbWtoOWpsMnozdXd0MmJxejhiNGwwdjltY3dyNW80NHg2Ym01YTdlMSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/mPKa6OI5oRsmextwBq/giphy.gif)`;
23+
24+
await github.rest.issues.createComment({
25+
owner: context.repo.owner,
26+
repo: context.repo.repo,
27+
issue_number: issueNumber,
28+
body: commentBody1
29+
});
30+
31+
await github.rest.issues.createComment({
32+
owner: context.repo.owner,
33+
repo: context.repo.repo,
34+
issue_number: issueNumber,
35+
body: commentBody2
36+
});
37+
38+
console.log('Both comments added successfully.');

target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/workspaces/MyCMD/src/main/java/com/mycmd/commands/CdCommand.java
55
/workspaces/MyCMD/src/main/java/com/mycmd/commands/ClsCommand.java
66
/workspaces/MyCMD/src/main/java/com/mycmd/commands/CopyCommand.java
7+
/workspaces/MyCMD/src/main/java/com/mycmd/commands/DateCommand.java
78
/workspaces/MyCMD/src/main/java/com/mycmd/commands/DelCommand.java
89
/workspaces/MyCMD/src/main/java/com/mycmd/commands/DirCommand.java
910
/workspaces/MyCMD/src/main/java/com/mycmd/commands/EchoCommand.java

0 commit comments

Comments
 (0)