Skip to content
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

delete-on-pr-close #617

Merged
merged 8 commits into from
Jan 26, 2025
Merged

delete-on-pr-close #617

merged 8 commits into from
Jan 26, 2025

Conversation

justin808
Copy link
Member

@justin808 justin808 commented Jan 26, 2025

This change is Reviewable

Summary by CodeRabbit

  • Workflow Updates
    • Enhanced GitHub Actions workflows for pull request and issue management
    • Improved deployment and review app processes
    • Added better error handling and concurrency controls
    • Updated comment generation with detailed command options
    • Streamlined status tracking and messaging for deployment processes

Copy link

coderabbitai bot commented Jan 26, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This pull request enhances GitHub Actions workflows for managing pull requests, deployments, and review apps. The changes span four workflow files, introducing updates such as refined comment generation, improved handling of review app deletions, streamlined deployment processes, and enhanced help command functionality. Key modifications include new triggers for workflows, adjustments to environment variable handling, and the implementation of concurrency controls to prevent duplicate runs.

Changes

File Change Summary
.github/workflows/add-comment-on-pr-creation.yml - Updated workflow and job names
- Added permissions for pull request write access
- Expanded comment body with detailed instructions
- Updated pull request number referencing method
.github/workflows/delete-review-app.yml - Added trigger for closed pull requests
- Updated environment variables with fallback mechanism
- Removed debug job
- Enhanced deletion process comments
.github/workflows/deploy-to-control-plane.yml - Renamed deployment job
- Added initial status comment creation
- Streamlined deployment status updates
- Removed deletion-related steps
.github/workflows/help-command.yml - Added concurrency control
- Removed debug job
- Implemented error handling for help comment creation

Possibly related PRs

  • Improvements to deployments #615: Improvements to deployments - This PR includes changes to the deployment process, which may relate to the updates in the main PR regarding the comment body that outlines commands for deploying changes and managing review environments.

Poem

🐰 In workflows bright, we hop and play,
With comments clear, we pave the way!
Deployments swift, and help commands,
A rabbit's cheer for code that stands!
Hooray for changes, let’s celebrate,
In the land of GitHub, we innovate! 🚀


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e83b55c and 68d9ecd.

📒 Files selected for processing (4)
  • .github/workflows/add-comment-on-pr-creation.yml (1 hunks)
  • .github/workflows/delete-review-app.yml (4 hunks)
  • .github/workflows/deploy-to-control-plane.yml (3 hunks)
  • .github/workflows/help-command.yml (2 hunks)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

Hi 👋 To deploy a review app, please comment /deploy-review-app

@justin808
Copy link
Member Author

/deploy-review-app

Copy link

github-actions bot commented Jan 26, 2025

Building Docker image for PR #617, commit 7e409cb

View Build Logs

Control Plane Console for Review App with PR #617

@justin808
Copy link
Member Author

/deploy-review-app

@justin808
Copy link
Member Author

/help

Copy link

📚 Available Commands

/deploy

Deploys your PR branch to a review environment on Control Plane.

  • Creates a new review app if one doesn't exist
  • Updates the existing review app if it already exists
  • Provides a unique URL to preview your changes
  • Shows build and deployment progress in real-time

Required Environment Variables:

  • CPLN_TOKEN: Control Plane authentication token
  • CPLN_ORG: Control Plane organization name

Optional Configuration:

  • WAIT_TIMEOUT: Deployment timeout in seconds (default: 900)
    • Must be a positive integer
    • Can be set in GitHub Actions variables
    • Applies to both deployment and workload readiness checks

/delete-review-app

Deletes the review app associated with this PR.

  • Removes all resources from Control Plane
  • Helpful for cleaning up when you're done testing
  • Can be re-deployed later using /deploy

Required Environment Variables:

  • CPLN_TOKEN: Control Plane authentication token
  • CPLN_ORG: Control Plane organization name

/help

Shows this help message explaining available commands and configuration.


Note: These commands only work in pull request comments.

Environment Setup:

  1. Set required secrets in your repository settings:
    • CPLN_TOKEN
    • CPLN_ORG
  2. Optional: Configure WAIT_TIMEOUT in GitHub Actions variables to customize deployment timeout

Copy link

Available Commands

/deploy

Deploys your PR branch to a review environment on Control Plane.

  • Creates a new review app if one doesn't exist
  • Updates the existing review app if it already exists
  • Provides a unique URL to preview your changes
  • Shows build and deployment progress in real-time

/delete-review-app

Deletes the review app associated with this PR.

  • Removes all resources from Control Plane
  • Helpful for cleaning up when you're done testing
  • Can be re-deployed later using /deploy

/help

Shows this help message explaining available commands.


Note: These commands only work in pull request comments.

@justin808
Copy link
Member Author

/help

Copy link

📚 Available Commands

/deploy

Deploys your PR branch to a review environment on Control Plane.

  • Creates a new review app if one doesn't exist
  • Updates the existing review app if it already exists
  • Provides a unique URL to preview your changes
  • Shows build and deployment progress in real-time

Required Environment Variables:

  • CPLN_TOKEN: Control Plane authentication token
  • CPLN_ORG: Control Plane organization name

Optional Configuration:

  • WAIT_TIMEOUT: Deployment timeout in seconds (default: 900)
    • Must be a positive integer
    • Can be set in GitHub Actions variables
    • Applies to both deployment and workload readiness checks

/delete-review-app

Deletes the review app associated with this PR.

  • Removes all resources from Control Plane
  • Helpful for cleaning up when you're done testing
  • Can be re-deployed later using /deploy

Required Environment Variables:

  • CPLN_TOKEN: Control Plane authentication token
  • CPLN_ORG: Control Plane organization name

/help

Shows this help message explaining available commands and configuration.


Note: These commands only work in pull request comments.

Environment Setup:

  1. Set required secrets in your repository settings:
    • CPLN_TOKEN
    • CPLN_ORG
  2. Optional: Configure WAIT_TIMEOUT in GitHub Actions variables to customize deployment timeout

Copy link

Available Commands

/deploy

Deploys your PR branch to a review environment on Control Plane.

  • Creates a new review app if one doesn't exist
  • Updates the existing review app if it already exists
  • Provides a unique URL to preview your changes
  • Shows build and deployment progress in real-time

/delete-review-app

Deletes the review app associated with this PR.

  • Removes all resources from Control Plane
  • Helpful for cleaning up when you're done testing
  • Can be re-deployed later using /deploy

/help

Shows this help message explaining available commands.


Note: These commands only work in pull request comments.

@justin808
Copy link
Member Author

/deploy-review-app

@justin808
Copy link
Member Author

/help

Copy link

📚 Available Commands

/deploy

Deploys your PR branch to a review environment on Control Plane.

  • Creates a new review app if one doesn't exist
  • Updates the existing review app if it already exists
  • Provides a unique URL to preview your changes
  • Shows build and deployment progress in real-time

Required Environment Variables:

  • CPLN_TOKEN: Control Plane authentication token
  • CPLN_ORG: Control Plane organization name

Optional Configuration:

  • WAIT_TIMEOUT: Deployment timeout in seconds (default: 900)
    • Must be a positive integer
    • Can be set in GitHub Actions variables
    • Applies to both deployment and workload readiness checks

/delete-review-app

Deletes the review app associated with this PR.

  • Removes all resources from Control Plane
  • Helpful for cleaning up when you're done testing
  • Can be re-deployed later using /deploy

Required Environment Variables:

  • CPLN_TOKEN: Control Plane authentication token
  • CPLN_ORG: Control Plane organization name

/help

Shows this help message explaining available commands and configuration.


Note: These commands only work in pull request comments.

Environment Setup:

  1. Set required secrets in your repository settings:
    • CPLN_TOKEN
    • CPLN_ORG
  2. Optional: Configure WAIT_TIMEOUT in GitHub Actions variables to customize deployment timeout

Copy link

Available Commands

/deploy

Deploys your PR branch to a review environment on Control Plane.

  • Creates a new review app if one doesn't exist
  • Updates the existing review app if it already exists
  • Provides a unique URL to preview your changes
  • Shows build and deployment progress in real-time

/delete-review-app

Deletes the review app associated with this PR.

  • Removes all resources from Control Plane
  • Helpful for cleaning up when you're done testing
  • Can be re-deployed later using /deploy

/help

Shows this help message explaining available commands.


Note: These commands only work in pull request comments.

@justin808
Copy link
Member Author

/help

Copy link

Available Commands

/deploy

Deploys your PR branch to a review environment on Control Plane.

  • Creates a new review app if one doesn't exist
  • Updates the existing review app if it already exists
  • Provides a unique URL to preview your changes
  • Shows build and deployment progress in real-time

/delete-review-app

Deletes the review app associated with this PR.

  • Removes all resources from Control Plane
  • Helpful for cleaning up when you're done testing
  • Can be re-deployed later using /deploy

/help

Shows this help message explaining available commands.


Note: These commands only work in pull request comments.

Copy link

📚 Available Commands

/deploy

Deploys your PR branch to a review environment on Control Plane.

  • Creates a new review app if one doesn't exist
  • Updates the existing review app if it already exists
  • Provides a unique URL to preview your changes
  • Shows build and deployment progress in real-time

Required Environment Variables:

  • CPLN_TOKEN: Control Plane authentication token
  • CPLN_ORG: Control Plane organization name

Optional Configuration:

  • WAIT_TIMEOUT: Deployment timeout in seconds (default: 900)
    • Must be a positive integer
    • Can be set in GitHub Actions variables
    • Applies to both deployment and workload readiness checks

/delete-review-app

Deletes the review app associated with this PR.

  • Removes all resources from Control Plane
  • Helpful for cleaning up when you're done testing
  • Can be re-deployed later using /deploy

Required Environment Variables:

  • CPLN_TOKEN: Control Plane authentication token
  • CPLN_ORG: Control Plane organization name

/help

Shows this help message explaining available commands and configuration.


Note: These commands only work in pull request comments.

Environment Setup:

  1. Set required secrets in your repository settings:
    • CPLN_TOKEN
    • CPLN_ORG
  2. Optional: Configure WAIT_TIMEOUT in GitHub Actions variables to customize deployment timeout

Copy link

🚀 Starting deployment...

Copy link

github-actions bot commented Jan 26, 2025

❌ Review app deployment failed

Control Plane Console

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (4)
.github/workflows/add-comment-on-pr-creation.yml (1)

13-30: Add error handling for comment creation.

While the implementation is good, it's missing error handling for the comment creation process.

 - name: Add comment
   uses: actions/github-script@v7
   with:
     script: |
+      try {
         await github.rest.issues.createComment({
           owner: context.repo.owner,
           repo: context.repo.repo,
           issue_number: context.payload.pull_request.number,
           body: [
             "Hi 👋 Here are the commands available for this PR:",
             "",
             "- `/deploy`: Deploy your changes to a review environment",
             "- `/delete-review-app`: Clean up the review environment when you're done",
             "- `/help`: Show detailed information about all commands",
             "",
             "Use `/help` to see full documentation, including configuration options."
           ].join("\n")
         });
+      } catch (error) {
+        core.setFailed(`Failed to create initial comment: ${error.message}`);
+      }
.github/workflows/delete-review-app.yml (2)

24-28: Fix trailing spaces in conditions.

Remove trailing spaces in the conditional expression to maintain consistent formatting.

-      (github.event_name == 'issue_comment' && 
-       github.event.issue.pull_request && 
-       github.event.comment.body == '/delete-review-app') ||
-      (github.event_name == 'pull_request' && 
-       github.event.action == 'closed')
+      (github.event_name == 'issue_comment' &&
+       github.event.issue.pull_request &&
+       github.event.comment.body == '/delete-review-app') ||
+      (github.event_name == 'pull_request' &&
+       github.event.action == 'closed')
🧰 Tools
🪛 yamllint (1.35.1)

[error] 24-24: trailing spaces

(trailing-spaces)


[error] 25-25: trailing spaces

(trailing-spaces)


[error] 27-27: trailing spaces

(trailing-spaces)


88-101: Consider adding retry logic for comment updates.

The comment update operation might fail due to GitHub API rate limits or temporary issues. Consider adding retry logic for better reliability.

-            let message;
-            if (success) {
-              message = '✅ Review app for PR #' + prNumber + ' was successfully deleted';
-              if ('${{ github.event_name }}' === 'pull_request') {
-                const merged = '${{ github.event.pull_request.merged }}' === 'true';
-                message += merged ? ' after merge' : ' after PR was closed';
-              }
-            } else {
-              message = [
-                '❌ Review app for PR #' + prNumber + ' failed to be deleted',
-                '',
-                '🎮 [Control Plane Console for Review App with PR #' + prNumber + '](' + cpConsoleUrl + ')'
-              ].join('\n');
-            }
-            
-            await github.rest.issues.updateComment({
+            const updateComment = async (retries = 3) => {
+              let message;
+              if (success) {
+                message = '✅ Review app for PR #' + prNumber + ' was successfully deleted';
+                if ('${{ github.event_name }}' === 'pull_request') {
+                  const merged = '${{ github.event.pull_request.merged }}' === 'true';
+                  message += merged ? ' after merge' : ' after PR was closed';
+                }
+              } else {
+                message = [
+                  '❌ Review app for PR #' + prNumber + ' failed to be deleted',
+                  '',
+                  '🎮 [Control Plane Console for Review App with PR #' + prNumber + '](' + cpConsoleUrl + ')'
+                ].join('\n');
+              }
+              
+              try {
+                await github.rest.issues.updateComment({
+                  owner: context.repo.owner,
+                  repo: context.repo.repo,
+                  comment_id: ${{ fromJSON(steps.init-delete.outputs.result).commentId }},
+                  body: message
+                });
+              } catch (error) {
+                if (retries > 0) {
+                  console.log(`Retrying comment update. Attempts remaining: ${retries-1}`);
+                  await new Promise(resolve => setTimeout(resolve, 1000));
+                  return updateComment(retries - 1);
+                }
+                throw error;
+              }
+            };
+            
+            try {
+              await updateComment();
+            } catch (error) {
+              core.setFailed(`Failed to update comment after retries: ${error.message}`);
+            }
.github/workflows/deploy-to-control-plane.yml (1)

107-136: Add retry mechanism for status updates.

The status update could fail due to GitHub API rate limits. Consider adding a retry mechanism.

       - name: Update Status - Complete
         if: always()
         uses: actions/github-script@v7
         with:
           script: |
             eval(process.env.GET_CONSOLE_LINK);
             
             const isSuccess = '${{ job.status }}' === 'success';
             const railsUrl = '${{ steps.deploy.outputs.rails_url }}';
             
             const successMessage = [
               '✅ Review app deployed successfully!',
               '',
               '🌐 [Rails App](' + railsUrl + ')',
               '',
               getConsoleLink(process.env.PR_NUMBER)
             ].join('\n');
             
             const failureMessage = [
               '❌ Review app deployment failed',
               '',
               getConsoleLink(process.env.PR_NUMBER)
             ].join('\n');
             
-            await github.rest.issues.updateComment({
-              owner: context.repo.owner,
-              repo: context.repo.repo,
-              comment_id: ${{ fromJSON(steps.init-status.outputs.result).commentId }},
-              body: isSuccess ? successMessage : failureMessage
-            });
+            const updateStatus = async (retries = 3) => {
+              try {
+                await github.rest.issues.updateComment({
+                  owner: context.repo.owner,
+                  repo: context.repo.repo,
+                  comment_id: ${{ fromJSON(steps.init-status.outputs.result).commentId }},
+                  body: isSuccess ? successMessage : failureMessage
+                });
+              } catch (error) {
+                if (retries > 0) {
+                  console.log(`Retrying status update. Attempts remaining: ${retries-1}`);
+                  await new Promise(resolve => setTimeout(resolve, 1000));
+                  return updateStatus(retries - 1);
+                }
+                throw error;
+              }
+            };
+            
+            try {
+              await updateStatus();
+            } catch (error) {
+              core.setFailed(`Failed to update status after retries: ${error.message}`);
+            }
🧰 Tools
🪛 actionlint (1.7.4)

111-111: property "rails_url" is not defined in object type {review_app_url: string}

(expression)

🪛 yamllint (1.35.1)

[error] 113-113: trailing spaces

(trailing-spaces)


[error] 116-116: trailing spaces

(trailing-spaces)


[error] 124-124: trailing spaces

(trailing-spaces)


[error] 130-130: trailing spaces

(trailing-spaces)


[error] 136-136: no new line character at the end of file

(new-line-at-end-of-file)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5a01718 and e83b55c.

📒 Files selected for processing (4)
  • .github/workflows/add-comment-on-pr-creation.yml (1 hunks)
  • .github/workflows/delete-review-app.yml (5 hunks)
  • .github/workflows/deploy-to-control-plane.yml (2 hunks)
  • .github/workflows/help-command.yml (3 hunks)
🧰 Additional context used
🪛 yamllint (1.35.1)
.github/workflows/help-command.yml

[error] 93-93: trailing spaces

(trailing-spaces)


[error] 97-97: trailing spaces

(trailing-spaces)


[error] 104-104: trailing spaces

(trailing-spaces)

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

[error] 24-24: trailing spaces

(trailing-spaces)


[error] 25-25: trailing spaces

(trailing-spaces)


[error] 27-27: trailing spaces

(trailing-spaces)


[error] 61-61: trailing spaces

(trailing-spaces)

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

[error] 84-84: trailing spaces

(trailing-spaces)


[error] 113-113: trailing spaces

(trailing-spaces)


[error] 116-116: trailing spaces

(trailing-spaces)


[error] 124-124: trailing spaces

(trailing-spaces)


[error] 130-130: trailing spaces

(trailing-spaces)

🪛 actionlint (1.7.4)
.github/workflows/deploy-to-control-plane.yml

111-111: property "rails_url" is not defined in object type {review_app_url: string}

(expression)

🔇 Additional comments (1)
.github/workflows/help-command.yml (1)

7-11: Great addition of concurrency control!

The concurrency configuration effectively prevents duplicate help command executions and cancels in-progress runs. This is a good practice for GitHub Actions workflows.

Comment on lines 43 to 47
PR_URL=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
"${{ github.event.issue.pull_request.url }}")
HEAD_REF=$(echo "$PR_URL" | jq -r .head.ref)
echo "ref=$HEAD_REF" >> "$GITHUB_OUTPUT"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Add timeout and validation for PR API call.

The curl command should include a timeout to prevent hanging, and the response should be validated.

-          PR_URL=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-                       -H "Accept: application/vnd.github.v3+json" \
-                       "${{ github.event.issue.pull_request.url }}")
-          HEAD_REF=$(echo "$PR_URL" | jq -r .head.ref)
-          echo "ref=$HEAD_REF" >> "$GITHUB_OUTPUT"
+          PR_URL=$(curl --max-time 10 -s -f -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
+                       -H "Accept: application/vnd.github.v3+json" \
+                       "${{ github.event.issue.pull_request.url }}")
+          if [ $? -ne 0 ]; then
+            echo "Failed to fetch PR details"
+            exit 1
+          fi
+          HEAD_REF=$(echo "$PR_URL" | jq -r .head.ref)
+          if [ -z "$HEAD_REF" ]; then
+            echo "Failed to extract HEAD ref from PR"
+            exit 1
+          fi
+          echo "ref=$HEAD_REF" >> "$GITHUB_OUTPUT"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
PR_URL=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
"${{ github.event.issue.pull_request.url }}")
HEAD_REF=$(echo "$PR_URL" | jq -r .head.ref)
echo "ref=$HEAD_REF" >> "$GITHUB_OUTPUT"
PR_URL=$(curl --max-time 10 -s -f -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
"${{ github.event.issue.pull_request.url }}")
if [ $? -ne 0 ]; then
echo "Failed to fetch PR details"
exit 1
fi
HEAD_REF=$(echo "$PR_URL" | jq -r .head.ref)
if [ -z "$HEAD_REF" ]; then
echo "Failed to extract HEAD ref from PR"
exit 1
fi
echo "ref=$HEAD_REF" >> "$GITHUB_OUTPUT"

Comment on lines 96 to 105
- name: Deploy Review App
id: deploy
uses: ./.github/actions/deploy-to-control-plane
with:
app_name: ${{ env.APP_NAME }}
org: ${{ env.CPLN_ORG }}
wait_timeout: 900
github_token: ${{ secrets.GITHUB_TOKEN }}
wait_timeout: ${{ vars.WAIT_TIMEOUT || 900 }}
env:
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN }}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

The rails_url output property is indeed missing from the action

The action only defines review_app_url as an output property. If rails_url is needed, it should be added to the outputs section in .github/actions/deploy-to-control-plane/action.yml.

🔗 Analysis chain

Verify rails_url output property.

The static analysis tool indicates that the rails_url property is not defined in the action's outputs.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if the deploy-to-control-plane action defines rails_url output
grep -r "outputs:" .github/actions/deploy-to-control-plane/action.yml

Length of output: 78


Script:

#!/bin/bash
# Check the complete outputs section of the action
grep -A 10 "^outputs:" .github/actions/deploy-to-control-plane/action.yml

Length of output: 323

Copy link

github-actions bot commented Jan 26, 2025

Deploying to Control Plane...

Waiting for deployment to be ready...

View Deploy Logs

Control Plane Console for Review App with PR #617

@justin808
Copy link
Member Author

/help

@justin808
Copy link
Member Author

/help

@justin808
Copy link
Member Author

/deploy-review-app

@justin808 justin808 merged commit 4bf2c03 into master Jan 26, 2025
4 of 5 checks passed
@justin808 justin808 deleted the justin808-testing-2025-01-02 branch January 26, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant