Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

chore: fix comment on PR (#954)

Myles Scolnick257e08578480
diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.yml
index 276784b28b..13e93c0be7 100644
--- a/.github/workflows/dev-release.yml
+++ b/.github/workflows/dev-release.yml
@@ -95,15 +95,19 @@ jobs:
script: |
try {
const pullRequest = await github.rest.search.issuesAndPullRequests({
- q: context.sha
+ q: `sha:${context.sha} is:pr is:merged`
});
- await github.rest.issues.createComment({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: pullRequest.data.items[0].number,
- body: '🚀 Development release published. You may be able to view the changes at https://marimo.app?v=${{ env.MARIMO_VERSION }}'
- });
+ if (pullRequest.data.items.length > 0) {
+ await github.rest.issues.createComment({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ issue_number: pullRequest.data.items[0].number,
+ body: `🚀 Development release published. You may be able to view the changes at https://marimo.app?v=${process.env.MARIMO_VERSION}`
+ });
+ } else {
+ console.log("No merged PR found for this SHA.");
+ }
} catch (err) {
console.error(err);
}