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

Feat/get latest GitHub release #705

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

abougouffa
Copy link
Contributor

This PR adds a function to get the latest release from Github. The current dap-utils-get-github-extension requires an explicit version number, I've changed it to be optional (backward compatible), and when the version is set to nil, it gets the latest version.

TODO: Make use of the new feature to get the latest version of extensions.

@abougouffa abougouffa force-pushed the feat/get-latest-github-release branch from d2e84d8 to c1f3f7e Compare January 6, 2023 21:28
Copy link
Member

@jcs090218 jcs090218 left a comment

Choose a reason for hiding this comment

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

LGTM.

(dest (or path
(f-join dap-utils-extension-path "github" (concat owner "." repo)))))
(dap-utils--get-extension url dest)))

(defun dap-utils-get-github-extension-latest-version (owner repo)
Copy link
Member

Choose a reason for hiding this comment

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

Will recommend to add documentation for all functions.

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.

None yet

2 participants