Skip to content

Another PR to test Github Actions Workflows #642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 1 addition & 38 deletions .github/workflows/deploy-to-control-plane-review-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ run-name: Deploy PR Review App - PR #${{ github.event.pull_request.number || git
# Controls when the workflow will run
on:
pull_request:
types: [opened, synchronize, reopened]
types: [synchronize, reopened]
issue_comment:
types: [created]
workflow_dispatch:
Expand Down Expand Up @@ -366,40 +366,3 @@ jobs:
comment_id: ${{ steps.create-comment.outputs.comment-id }},
body: isSuccess ? successMessage : failureMessage
});

- name: Show Quick Reference
if: github.event_name == 'pull_request' && github.event.action == 'opened'
uses: actions/github-script@v7
with:
script: |
try {
console.log('Creating quick reference message...');
const helpMessage = [
'# 🚀 Quick Review App Commands',
'',
'Welcome! Here are the commands you can use in this PR:',
'',
'### `/deploy-review-app`',
'Deploy your PR branch for testing',
'',
'### `/delete-review-app`',
'Remove the review app when done',
'',
'### `/help`',
'Show detailed instructions, environment setup, and configuration options.',
'',
'---'
].join('\n');

await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: helpMessage
});

console.log('Quick reference posted successfully');
} catch (error) {
console.error('Error posting quick reference:', error);
core.setFailed(`Failed to post quick reference: ${error.message}`);
}
4 changes: 0 additions & 4 deletions .github/workflows/deploy-to-control-plane-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ concurrency:
cancel-in-progress: true

jobs:
debug:
uses: ./.github/workflows/debug-workflow.yml
with:
debug_enabled: false

validate-branch:
runs-on: ubuntu-latest
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/review-app-help.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Show Quick Help on PR Creation

on:
pull_request:
types: [opened]

permissions:
issues: write
pull-requests: write

jobs:
show-quick-help:
runs-on: ubuntu-latest
steps:
- name: Show Quick Reference
uses: actions/github-script@v7
with:
script: |
try {
console.log('Creating quick reference message...');
const helpMessage = [
'# 🚀 Quick Review App Commands',
'',
'Welcome! Here are the commands you can use in this PR:',
'',
'### `/deploy-review-app`',
'Deploy your PR branch for testing',
'',
'### `/delete-review-app`',
'Remove the review app when done',
'',
'### `/help`',
'Show detailed instructions, environment setup, and configuration options.',
'',
'---'
].join('\n');

await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: helpMessage
});

console.log('Quick reference posted successfully');
} catch (error) {
console.error('Error posting quick reference:', error);
core.setFailed(`Failed to post quick reference: ${error.message}`);
}
Loading