feat: Implement project release API endpoints#393
Open
chiragchadha1 wants to merge 4 commits intomainfrom
Open
feat: Implement project release API endpoints#393chiragchadha1 wants to merge 4 commits intomainfrom
chiragchadha1 wants to merge 4 commits intomainfrom
Conversation
camden11
reviewed
Apr 3, 2026
| buildId: number; | ||
| createdAt: string; | ||
| components?: Array<{ | ||
| buildType: ValueOf<typeof SUBBUILD_TYPES>; |
Contributor
There was a problem hiding this comment.
I think it's possible the SUBBUILD_TYPES const is outdated - see joe's comment here:
https://github.com/HubSpotEngineering/hubspot-cli-private/pull/588#discussion_r3033942007
Probably doesn't matter a ton, but if it's not urgent to merge this, we might want to figure out accurate typing before we move forward with this. I made an issue to audit our project types
https://linear.app/hubspot/issue/DPGDXFE-1218/audit-project-types-in-ppl-ldl-and-the-cli
Contributor
Author
There was a problem hiding this comment.
Yeah this can definitely wait. I'll mark that issue as blocking this PR / issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description and Context
Related to DPGDXFE-1041
Adds API functions and types for the new project release endpoints on
DFSBuildPipeline'sProjectResource. These are needed by the CLI'shs project releasecommand family (DPGDXFE-1041, DPGDXFE-1042, DPGDXFE-1043).Three new API functions:
createRelease(accountId, projectName, buildId)—POST /projects/{name}/releaseslistReleases(accountId, projectName, params?)—GET /projects/{name}/releasesgetReleaseInfo(accountId, projectName, releaseTag)—GET /projects/{name}/releases/{tag}Two new types in
types/Project.ts:Release— release object with tag, buildId, createdAt, and optional componentsFetchListReleasesResponse— standardCollectionResponsewith paging cursorThe release API is still being actively developed by the backend team and may change. This gets the foundation in place so the CLI can start building against it.
Screenshots
TODO
Who to Notify
@brandenrodgers @camden11 @joe-yeager