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

Update 1-click install script to use /tags endpoint instead of /release #8689

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yadavshubham01
Copy link
Contributor

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Modified the 1-click install script to use GitHub's /tags endpoint instead of /releases/latest for more accurate version detection, particularly for sub-version releases.

  • Updated API endpoint in /packages/twenty-docker/scripts/1-click.sh to fetch latest tag using curl -s https://api.github.com/repos/twentyhq/twenty/tags
  • Added parsing logic with grep and head to extract the most recent tag version
  • Maintains compatibility with version-specific install script locations (v0.32.4 and newer)

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

@@ -1,4 +1,4 @@
pull_version=${VERSION:-$(curl -s https://api.github.com/repos/twentyhq/twenty/releases/latest | grep '"tag_name":' | cut -d '"' -f 4)}
pull_version=${VERSION:-$(curl -s https://api.github.com/repos/twentyhq/twenty/tags | grep '"name":' | head -n 1 | cut -d '"' -f 4)}
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Consider adding error handling if the curl command fails or returns no tags

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