Skip to content

Commit ac97de5

Browse files
authored
Test Review App Workflows (#640)
1 parent 9ed72f0 commit ac97de5

File tree

4 files changed

+38
-98
lines changed

4 files changed

+38
-98
lines changed

.github/workflows/debug-workflow.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/deploy-to-control-plane-review-app.yml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ env:
2727
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number || github.event.inputs.pr_number }}
2828

2929
jobs:
30-
debug:
31-
uses: ./.github/workflows/debug-workflow.yml
32-
with:
33-
debug_enabled: false
34-
3530
deploy:
3631
if: |
3732
(github.event_name == 'pull_request') ||
@@ -371,3 +366,40 @@ jobs:
371366
comment_id: ${{ steps.create-comment.outputs.comment-id }},
372367
body: isSuccess ? successMessage : failureMessage
373368
});
369+
370+
- name: Show Quick Reference
371+
if: github.event_name == 'pull_request' && github.event.action == 'opened'
372+
uses: actions/github-script@v7
373+
with:
374+
script: |
375+
try {
376+
console.log('Creating quick reference message...');
377+
const helpMessage = [
378+
'# 🚀 Quick Review App Commands',
379+
'',
380+
'Welcome! Here are the commands you can use in this PR:',
381+
'',
382+
'### `/deploy-review-app`',
383+
'Deploy your PR branch for testing',
384+
'',
385+
'### `/delete-review-app`',
386+
'Remove the review app when done',
387+
'',
388+
'### `/help`',
389+
'Show detailed instructions, environment setup, and configuration options.',
390+
'',
391+
'---'
392+
].join('\n');
393+
394+
await github.rest.issues.createComment({
395+
owner: context.repo.owner,
396+
repo: context.repo.repo,
397+
issue_number: context.issue.number,
398+
body: helpMessage
399+
});
400+
401+
console.log('Quick reference posted successfully');
402+
} catch (error) {
403+
console.error('Error posting quick reference:', error);
404+
core.setFailed(`Failed to post quick reference: ${error.message}`);
405+
}

.github/workflows/review-app-help.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

client/app/bundles/comments/components/Footer/Footer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default class Footer extends BaseComponent {
1212
Example of styling using image-url and Open Sans Light custom font
1313
</h3>
1414
</a>
15-
<a href="https://twitter.com/railsonmaui" className="flex gap-4 items-center">
15+
<a href="https://x.com/railsonmaui" className="flex gap-4 items-center">
1616
<div className="w-16 h-16 bg-[url('../images/twitter_64.png')]" />
1717
Rails On Maui on X (Twitter)
1818
</a>

0 commit comments

Comments
 (0)