|
1 |
| -name: Show Help for Commands |
| 1 | +name: Show Detailed Help |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | issue_comment:
|
|
27 | 27 | with:
|
28 | 28 | script: |
|
29 | 29 | try {
|
30 |
| - console.log('Creating help message...'); |
| 30 | + console.log('Creating detailed help message...'); |
31 | 31 | const helpMessage = [
|
32 |
| - '## 📚 Available Commands', |
| 32 | + '# 📚 Detailed Review App Commands Guide', |
| 33 | + '', |
| 34 | + 'This is a detailed guide to using review app commands. For a quick reference, see the message posted when your PR was created.', |
| 35 | + '', |
| 36 | + '## Available Commands', |
33 | 37 | '',
|
34 | 38 | '### `/deploy-review-app`',
|
35 | 39 | 'Deploys your PR branch to a review environment on Control Plane.',
|
@@ -59,16 +63,30 @@ jobs:
|
59 | 63 | '- `CPLN_ORG`: Control Plane organization name',
|
60 | 64 | '',
|
61 | 65 | '### `/help`',
|
62 |
| - 'Shows this help message explaining available commands and configuration.', |
| 66 | + 'Shows this detailed help message.', |
63 | 67 | '',
|
64 | 68 | '---',
|
65 |
| - '**Note:** These commands only work in pull request comments.', |
| 69 | + '## Environment Setup', |
66 | 70 | '',
|
67 |
| - '**Environment Setup:**', |
68 | 71 | '1. Set required secrets in your repository settings:',
|
69 | 72 | ' - `CPLN_TOKEN`',
|
70 | 73 | ' - `CPLN_ORG`',
|
71 |
| - '2. Optional: Configure `WAIT_TIMEOUT` in GitHub Actions variables to customize deployment timeout' |
| 74 | + '', |
| 75 | + '2. Optional: Configure `WAIT_TIMEOUT` in GitHub Actions variables to customize deployment timeout', |
| 76 | + '', |
| 77 | + '## Control Plane Integration', |
| 78 | + '', |
| 79 | + 'Review apps are deployed to Control Plane with the following configuration:', |
| 80 | + '- App Name Format: `qa-react-webpack-rails-tutorial-pr-{PR_NUMBER}`', |
| 81 | + '- Console URL: `https://console.cpln.io/console/org/{CPLN_ORG}/gvc/{APP_NAME}/-info`', |
| 82 | + '', |
| 83 | + '## Automatic Cleanup', |
| 84 | + '', |
| 85 | + 'Review apps are automatically deleted when:', |
| 86 | + '- The PR is closed (merged or not merged)', |
| 87 | + '- The PR is stale (via nightly cleanup job)', |
| 88 | + '', |
| 89 | + 'For more information, see the [React on Rails Tutorial documentation](https://github.com/shakacode/react-on-rails/tree/master/react-webpack-rails-tutorial)' |
72 | 90 | ].join('\n');
|
73 | 91 |
|
74 | 92 | console.log('Issue number:', github.context.payload.issue.number);
|
|
0 commit comments