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: add Project.latestRelease to track latest release #1048

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

aofei
Copy link
Member

@aofei aofei commented Oct 29, 2024

Fixes #1037
Fixes #1033

@@ -404,19 +404,11 @@ export class Project extends Disposable {
}

/** Load from cloud */
async loadFromCloud(owner: string, name: string, signal?: AbortSignal) {
const { metadata, files } = await cloudHelper.load(owner, name, signal)
async loadFromCloud(owner: string, name: string, preferReleasedContent: boolean = false, signal?: AbortSignal) {
Copy link
Member Author

Choose a reason for hiding this comment

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

尝试了一下把 latestRelease 的概念写进来,但发现会让事情变复杂,所以还是保留了目前这种 load 时指明 prefer released content 的做法

@qiniu-ci
Copy link

This PR has been deployed to the preview environment. You can explore it using the preview URL.

Warning

Please note that deployments in the preview environment are temporary and will be automatically cleaned up after a certain period. Make sure to explore it before it is removed. For any questions, contact the Go+ Builder team.

@nighca nighca merged commit 41c7b96 into goplus:dev Oct 29, 2024
7 checks passed
@aofei aofei deleted the latest-release branch October 29, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants