-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Add Runloop blueprint CI integration for cn CLI #7985
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
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 issues found across 2 files
Prompt for AI agents (all 4 issues)
Understand the root cause of the following 4 issues and fix them.
<file name=".github/workflows/runloop-blueprint-template.json">
<violation number="1" location=".github/workflows/runloop-blueprint-template.json:4">
Using @latest for a global install is non-deterministic and increases supply-chain risk; pin the CLI to a specific version or vetted range.</violation>
<violation number="2" location=".github/workflows/runloop-blueprint-template.json:5">
Use apt-get in scripts instead of apt to ensure non-interactive, stable behavior.</violation>
</file>
<file name=".github/workflows/stable-release.yml">
<violation number="1" location=".github/workflows/stable-release.yml:242">
Truncates an extra byte from the response body with head -c -4; remove only 3 bytes to strip the appended HTTP code.</violation>
<violation number="2" location=".github/workflows/stable-release.yml:252">
Writes to $GITHUB_OUTPUT in a step without an id; this output cannot be consumed by later steps.</violation>
</file>
React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.
| "name": "cn", | ||
| "system_setup_commands": [ | ||
| "npm i -g @continuedev/cli@latest", | ||
| "sudo apt update", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use apt-get in scripts instead of apt to ensure non-interactive, stable behavior.
Prompt for AI agents
Address the following comment on .github/workflows/runloop-blueprint-template.json at line 5:
<comment>Use apt-get in scripts instead of apt to ensure non-interactive, stable behavior.</comment>
<file context>
@@ -0,0 +1,21 @@
+ "name": "cn",
+ "system_setup_commands": [
+ "npm i -g @continuedev/cli@latest",
+ "sudo apt update",
+ "sudo apt install -y ripgrep"
+ ],
</file context>
| { | ||
| "name": "cn", | ||
| "system_setup_commands": [ | ||
| "npm i -g @continuedev/cli@latest", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using @latest for a global install is non-deterministic and increases supply-chain risk; pin the CLI to a specific version or vetted range.
Prompt for AI agents
Address the following comment on .github/workflows/runloop-blueprint-template.json at line 4:
<comment>Using @latest for a global install is non-deterministic and increases supply-chain risk; pin the CLI to a specific version or vetted range.</comment>
<file context>
@@ -0,0 +1,21 @@
+{
+ "name": "cn",
+ "system_setup_commands": [
+ "npm i -g @continuedev/cli@latest",
+ "sudo apt update",
+ "sudo apt install -y ripgrep"
</file context>
| blueprint_id=$(echo "$response_body" | jq -r '.id // empty') | ||
| if [[ -n "$blueprint_id" ]]; then | ||
| echo "Blueprint ID: $blueprint_id" | ||
| echo "blueprint_id=$blueprint_id" >> $GITHUB_OUTPUT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Writes to $GITHUB_OUTPUT in a step without an id; this output cannot be consumed by later steps.
Prompt for AI agents
Address the following comment on .github/workflows/stable-release.yml at line 252:
<comment>Writes to $GITHUB_OUTPUT in a step without an id; this output cannot be consumed by later steps.</comment>
<file context>
@@ -220,3 +220,40 @@ jobs:
+ blueprint_id=$(echo "$response_body" | jq -r '.id // empty')
+ if [[ -n "$blueprint_id" ]]; then
+ echo "Blueprint ID: $blueprint_id"
+ echo "blueprint_id=$blueprint_id" >> $GITHUB_OUTPUT
+ fi
+ else
</file context>
| -s) | ||
| http_code=$(echo "$response" | tail -c 4) | ||
| response_body=$(echo "$response" | head -c -4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Truncates an extra byte from the response body with head -c -4; remove only 3 bytes to strip the appended HTTP code.
Prompt for AI agents
Address the following comment on .github/workflows/stable-release.yml at line 242:
<comment>Truncates an extra byte from the response body with head -c -4; remove only 3 bytes to strip the appended HTTP code.</comment>
<file context>
@@ -220,3 +220,40 @@ jobs:
+ -s)
+
+ http_code=$(echo "$response" | tail -c 4)
+ response_body=$(echo "$response" | head -c -4)
+
+ if [[ "$http_code" == "200" ]] || [[ "$http_code" == "201" ]]; then
</file context>
|
🎉 This PR is included in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.22.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.21.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary by cubic
Publishes a public Runloop blueprint for the cn CLI during the stable-release workflow, enabling automated environment provisioning after each stable release.
New Features
Migration