diff --git a/.github/workflows/debug-workflow.yml b/.github/workflows/debug-workflow.yml deleted file mode 100644 index 4ee0071a..00000000 --- a/.github/workflows/debug-workflow.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Debug Workflow Information - -on: - workflow_call: - inputs: - debug_enabled: - required: false - type: boolean - default: false - description: 'Enable debug logging (defaults to false)' - -jobs: - debug-info: - runs-on: ubuntu-latest - if: inputs.debug_enabled || vars.DEBUG_WORKFLOW == 'true' - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Log Branch Info - run: | - echo "Branch for this run:" - if [ "${{ github.event_name }}" == "pull_request" ]; then - echo "Pull Request Source Branch: ${{ github.head_ref }}" - else - echo "Branch: ${{ github.ref_name }}" - fi - - - name: Debug GitHub Context - run: | - echo "Event name: ${{ github.event_name }}" - echo "Event path: ${{ github.event_path }}" - echo "Repository: ${{ github.repository }}" - echo "Full GitHub context:" - echo '${{ toJson(github) }}' \ No newline at end of file diff --git a/.github/workflows/deploy-to-control-plane-review-app.yml b/.github/workflows/deploy-to-control-plane-review-app.yml index 8388bfc1..a4f51642 100644 --- a/.github/workflows/deploy-to-control-plane-review-app.yml +++ b/.github/workflows/deploy-to-control-plane-review-app.yml @@ -27,11 +27,6 @@ env: PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number || github.event.inputs.pr_number }} jobs: - debug: - uses: ./.github/workflows/debug-workflow.yml - with: - debug_enabled: false - deploy: if: | (github.event_name == 'pull_request') || @@ -371,3 +366,40 @@ 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}`); + } diff --git a/.github/workflows/review-app-help.yml b/.github/workflows/review-app-help.yml deleted file mode 100644 index d5eed23c..00000000 --- a/.github/workflows/review-app-help.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Show Quick Help on PR Creation - -on: - pull_request: - types: [opened] - -permissions: - issues: write - pull-requests: write - -jobs: - debug: - uses: ./.github/workflows/debug-workflow.yml - with: - debug_enabled: false # Will still run if vars.DEBUG_WORKFLOW is true - - show-quick-help: - if: github.event_name == 'pull_request' - 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}`); - } diff --git a/client/app/bundles/comments/components/Footer/Footer.jsx b/client/app/bundles/comments/components/Footer/Footer.jsx index 405d457e..2cb65281 100644 --- a/client/app/bundles/comments/components/Footer/Footer.jsx +++ b/client/app/bundles/comments/components/Footer/Footer.jsx @@ -12,7 +12,7 @@ export default class Footer extends BaseComponent { Example of styling using image-url and Open Sans Light custom font - +
Rails On Maui on X (Twitter)