Skip to content

Commit 1edccea

Browse files
committed
update comments
1 parent 4c7e7ec commit 1edccea

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Source hash: bede50fef0a5393efa961715144c209f04f8e036b989dec2839d865fbab7b3df
1+
// Source hash: 5596981e2578d0a4c35b0f29825341a305a25343c9cfc836afbf57676ddddfc2
22
import { createRequire } from "node:module";
33
var __create = Object.create;
44
var __getProtoOf = Object.getPrototypeOf;
@@ -30580,6 +30580,7 @@ class StartWorkspaceAction {
3058030580
commentId: this.input.githubStatusCommentId
3058130581
});
3058230582
commentBody = commentBody + `
30583+
3058330584
Workspace will be available at: ${workspaceUrl}`;
3058430585
await this.githubUpdateIssueComment({
3058530586
owner: this.input.githubRepoOwner,
@@ -30598,6 +30599,7 @@ Workspace will be available at: ${workspaceUrl}`;
3059830599
repo: this.input.githubRepoName,
3059930600
commentId: this.input.githubStatusCommentId,
3060030601
comment: `✅ Coder workspace started! You can view the action logs [here](${this.input.githubWorkflowRunUrl}).
30602+
3060130603
Workspace is available at: ${workspaceUrl}`
3060230604
});
3060330605
}

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 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",
236+
"Initial comment\n\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).\n\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 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",
260+
"Initial comment\n\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).\n\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 at: ${workspaceUrl}`;
190+
commentBody + `\n\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: `✅ Coder workspace started! You can view the action logs [here](${this.input.githubWorkflowRunUrl}).\nWorkspace is available at: ${workspaceUrl}`,
209+
comment: `✅ Coder workspace started! You can view the action logs [here](${this.input.githubWorkflowRunUrl}).\n\nWorkspace is available at: ${workspaceUrl}`,
210210
});
211211
}
212212
}

0 commit comments

Comments
 (0)