Skip to content

Commit 4c7e7ec

Browse files
committed
update comment messages
1 parent 4794fad commit 4c7e7ec

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ runs:
4545
owner: context.repo.owner,
4646
repo: context.repo.repo,
4747
issue_number: issueNumber,
48-
body: `Starting a Coder workspace. You can track the progress [here](${runUrl}).`
48+
body: `🔄 Starting a Coder workspace. You can track the progress [here](${runUrl}).`
4949
});
5050
core.setOutput('comment_id', comment.data.id);
5151
core.setOutput('run_url', runUrl);

dist/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Source hash: 46998a3aefe2d9f033ddcd4b4f4c88d4bd7cc25d7b153e8bd19507a5e35db5f4
1+
// Source hash: bede50fef0a5393efa961715144c209f04f8e036b989dec2839d865fbab7b3df
22
import { createRequire } from "node:module";
33
var __create = Object.create;
44
var __getProtoOf = Object.getPrototypeOf;
@@ -30580,7 +30580,7 @@ class StartWorkspaceAction {
3058030580
commentId: this.input.githubStatusCommentId
3058130581
});
3058230582
commentBody = commentBody + `
30583-
Workspace will be available here: ${workspaceUrl}`;
30583+
Workspace will be available at: ${workspaceUrl}`;
3058430584
await this.githubUpdateIssueComment({
3058530585
owner: this.input.githubRepoOwner,
3058630586
repo: this.input.githubRepoName,
@@ -30597,8 +30597,8 @@ Workspace will be available here: ${workspaceUrl}`;
3059730597
owner: this.input.githubRepoOwner,
3059830598
repo: this.input.githubRepoName,
3059930599
commentId: this.input.githubStatusCommentId,
30600-
comment: `✅ Workspace started: ${workspaceUrl}
30601-
View [Github Actions logs](${this.input.githubWorkflowRunUrl}).`
30600+
comment: `✅ Coder workspace started! You can view the action logs [here](${this.input.githubWorkflowRunUrl}).
30601+
Workspace is available at: ${workspaceUrl}`
3060230602
});
3060330603
}
3060430604
}

src/action.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ describe("StartWorkspaceAction", () => {
233233
{
234234
issueComments: [
235235
"Initial comment",
236-
"Initial comment\nWorkspace will be available here: https://example.com/hugo/workspace-name",
237-
"✅ Workspace started: https://example.com/hugo/workspace-name\nView [Github Actions logs](https://github.com/workflow-run).",
236+
"Initial comment\nWorkspace will be available at: https://example.com/hugo/workspace-name",
237+
"✅ Coder workspace started! You can view the action logs [here](https://github.com/workflow-run).\nWorkspace is available at: https://example.com/hugo/workspace-name",
238238
],
239239
workspaceStarted: true,
240240
startWorkspace: {
@@ -257,8 +257,8 @@ describe("StartWorkspaceAction", () => {
257257
{
258258
issueComments: [
259259
"Initial comment",
260-
"Initial comment\nWorkspace will be available here: https://example.com/hugo-coder/workspace-name",
261-
"✅ Workspace started: https://example.com/hugo-coder/workspace-name\nView [Github Actions logs](https://github.com/workflow-run).",
260+
"Initial comment\nWorkspace will be available at: https://example.com/hugo-coder/workspace-name",
261+
"✅ Coder workspace started! You can view the action logs [here](https://github.com/workflow-run).\nWorkspace is available at: https://example.com/hugo-coder/workspace-name",
262262
],
263263
workspaceStarted: true,
264264
startWorkspace: {

src/action.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export class StartWorkspaceAction {
187187
commentId: this.input.githubStatusCommentId,
188188
});
189189
commentBody =
190-
commentBody + `\nWorkspace will be available here: ${workspaceUrl}`;
190+
commentBody + `\nWorkspace will be available at: ${workspaceUrl}`;
191191

192192
await this.githubUpdateIssueComment({
193193
owner: this.input.githubRepoOwner,
@@ -206,7 +206,7 @@ export class StartWorkspaceAction {
206206
owner: this.input.githubRepoOwner,
207207
repo: this.input.githubRepoName,
208208
commentId: this.input.githubStatusCommentId,
209-
comment: `✅ Workspace started: ${workspaceUrl}\nView [Github Actions logs](${this.input.githubWorkflowRunUrl}).`,
209+
comment: `✅ Coder workspace started! You can view the action logs [here](${this.input.githubWorkflowRunUrl}).\nWorkspace is available at: ${workspaceUrl}`,
210210
});
211211
}
212212
}

0 commit comments

Comments
 (0)