Skip to content

Commit 3500a32

Browse files
authored
Merge branch 'main' into feat/color
2 parents e141876 + ea53bc9 commit 3500a32

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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!
21+
We'll review it as soon as possible. We truly appreciate your contributions! ✨
22+
23+
> 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. 😊`;
24+
const commentBody2 = `![TrustTheProcess](https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExbWtoOWpsMnozdXd0MmJxejhiNGwwdjltY3dyNW80NHg2Ym01YTdlMSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/mPKa6OI5oRsmextwBq/giphy.gif)`;
25+
26+
await github.rest.issues.createComment({
27+
owner: context.repo.owner,
28+
repo: context.repo.repo,
29+
issue_number: issueNumber,
30+
body: commentBody1
31+
});
32+
33+
await github.rest.issues.createComment({
34+
owner: context.repo.owner,
35+
repo: context.repo.repo,
36+
issue_number: issueNumber,
37+
body: commentBody2
38+
});
39+
40+
console.log('Both comments added successfully.');
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.mycmd.commands;
2+
3+
import com.mycmd.Command;
4+
import com.mycmd.ShellContext;
5+
6+
public class TitleCommand implements Command {
7+
@Override
8+
public void execute(String[] args, ShellContext context) {
9+
if (args.length > 0) {
10+
String title = String.join(" ", args);
11+
System.out.println("\033]0;" + title + "\007");
12+
} else {
13+
System.out.println("Usage: title <new title>");
14+
}
15+
}
16+
17+
}

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)