File tree Expand file tree Collapse file tree 2 files changed +46
-4
lines changed Expand file tree Collapse file tree 2 files changed +46
-4
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,13 @@ jobs:
55
55
script : |
56
56
core.exportVariable('GET_CONSOLE_LINK', `
57
57
function getConsoleLink(prNumber) {
58
- return ' [Control Plane Console for Review App with PR #' + prNumber + ' ](' +
59
- 'https://console.cpln.io/org/' + process.env.CPLN_ORG + '/workloads /' + process.env.APP_NAME + ')';
58
+ return '🎮 [Control Plane Console](' +
59
+ 'https://console.cpln.io/console/ org/' + process.env.CPLN_ORG + '/gvc /' + process.env.APP_NAME + '/-info )';
60
60
}
61
61
`);
62
62
63
- - name : Initialize Workflow
64
- id : init -workflow
63
+ - name : Setup Workflow URL
64
+ id : setup -workflow-url
65
65
uses : actions/github-script@v7
66
66
with :
67
67
script : |
Original file line number Diff line number Diff line change
1
+ name : Review App Help
2
+
3
+ on :
4
+ pull_request :
5
+ types : [opened]
6
+ issue_comment :
7
+ types : [created]
8
+
9
+ permissions :
10
+ pull-requests : write
11
+ issues : write
12
+
13
+ jobs :
14
+ Post-Help-Message :
15
+ if : |
16
+ (github.event_name == 'pull_request') ||
17
+ (github.event_name == 'issue_comment' &&
18
+ github.event.issue.pull_request &&
19
+ github.event.comment.body == '/show-help')
20
+ runs-on : ubuntu-latest
21
+
22
+ steps :
23
+ - name : Post Help Message
24
+ uses : actions/github-script@v7
25
+ with :
26
+ script : |
27
+ const helpMessage = [
28
+ '## Review App Commands',
29
+ '',
30
+ '- `/deploy-review-app` - Deploy a review app for this PR',
31
+ '- `/delete-review-app` - Delete the review app for this PR',
32
+ '- `/show-help` - Show this help message',
33
+ '',
34
+ 'The review app will be automatically deleted when the PR is closed or merged.'
35
+ ].join('\n');
36
+
37
+ await github.rest.issues.createComment({
38
+ owner: context.repo.owner,
39
+ repo: context.repo.repo,
40
+ issue_number: context.issue.number || context.payload.pull_request.number,
41
+ body: helpMessage
42
+ });
You can’t perform that action at this time.
0 commit comments