itsTalwar / meerkat

MIT License
1 stars 0 forks source link

Sweep: Add semantic github release for nx packages #4

Open itsTalwar opened 4 months ago

itsTalwar commented 4 months ago

Currently we are doing manual versioning, can we follow do semantic github release ?

Checklist - [X] Create `.github/workflows/semantic-release.yml` ✓ https://github.com/itsTalwar/meerkat/commit/45ef6aeadadfbcad7f0dffdb8ef86a1abc93ab4b [Edit](https://github.com/itsTalwar/meerkat/edit/sweep/add_semantic_github_release_for_nx_packa/.github/workflows/semantic-release.yml) - [X] Running GitHub Actions for `.github/workflows/semantic-release.yml` ✓ [Edit](https://github.com/itsTalwar/meerkat/edit/sweep/add_semantic_github_release_for_nx_packa/.github/workflows/semantic-release.yml) - [X] Modify `tools/scripts/publish.mjs` ✓ https://github.com/itsTalwar/meerkat/commit/a2d637e4d0b1369d3a783c571e6968c3e3cdc4e3 [Edit](https://github.com/itsTalwar/meerkat/edit/sweep/add_semantic_github_release_for_nx_packa/tools/scripts/publish.mjs) - [X] Running GitHub Actions for `tools/scripts/publish.mjs` ✓ [Edit](https://github.com/itsTalwar/meerkat/edit/sweep/add_semantic_github_release_for_nx_packa/tools/scripts/publish.mjs)
sweep-ai[bot] commented 4 months ago

🚀 Here's the PR! #5

See Sweep's progress at the progress dashboard!
💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: 61f1a06356)
Install Sweep Configs: Pull Request

[!TIP] I can email you next time I complete a pull request if you set up your email here!


Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/itsTalwar/meerkat/blob/02a79ade3930c39d8d0256ec66fd2118d966583d/meerkat-core/package.json#L1-L29 https://github.com/itsTalwar/meerkat/blob/02a79ade3930c39d8d0256ec66fd2118d966583d/meerkat-node/package.json#L1-L31 https://github.com/itsTalwar/meerkat/blob/02a79ade3930c39d8d0256ec66fd2118d966583d/meerkat-browser/package.json#L1-L28 https://github.com/itsTalwar/meerkat/blob/02a79ade3930c39d8d0256ec66fd2118d966583d/tools/scripts/publish.mjs#L1-L59

Step 2: ⌨️ Coding

Ran GitHub Actions for 45ef6aeadadfbcad7f0dffdb8ef86a1abc93ab4b:

--- 
+++ 
@@ -22,7 +22,17 @@

 // Executing publish script: node path/to/publish.mjs {name} --version {version} --tag {tag}
 // Default "tag" to "next" so we won't publish the "latest" tag by accident.
-const [, , name, version, tag = 'next'] = process.argv;
+const [, , name, tag = 'next', releaseType] = process.argv;
+
+// Read version from package.json
+let version;
+try {
+  const packageJson = JSON.parse(readFileSync('package.json').toString());
+  version = packageJson.version;
+} catch (error) {
+  console.error('Failed to read version from package.json:', error);
+  process.exit(1);
+}

 // A simple SemVer validation to validate the version
 const validVersion = /^\d+\.\d+\.\d+(-\w+\.\d+)?/;

Ran GitHub Actions for a2d637e4d0b1369d3a783c571e6968c3e3cdc4e3:


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/add_semantic_github_release_for_nx_packa.


🎉 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To recreate the pull request edit the issue title or description. Something wrong? Let us know.

This is an automated message generated by Sweep AI.