-
Notifications
You must be signed in to change notification settings - Fork 64
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
Adding initial support for project deploys #454
Conversation
32696af
to
653ae48
Compare
*/ | ||
function getFileMapperApiQueryFromMode(mode) { | ||
function getFileMapperQueryValues({ mode, options = {} }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
logger.error(`Deploy error: ${deployResp.error.message}`); | ||
} | ||
|
||
logger.success( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we show the success message here even if there is an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few questions, but this lgtm 👍
Description and Context
https://git.hubteam.com/HubSpot/hubspot-cli-issues/issues/285
This PR adds the command
hs project deploy <projectFolderPath>
and adds a--staging
flag to thehs fetch
command that will add the paramenvironmentId=2
to the request (default is1
).Note
--staging
assets in the project folder, there will be an error output for every file that is live in the project folder. I spoke to @liamrharwood and he let me know there is a known BE issue dealing with fetching a folder as opposed to a file from thecontent/filemapper/v1/download/${folderPath}
endpoint. Hopefully this will no longer occur when that bug is fixed, as it looks like we are passing theenvironmentId: 2
properly to that endpoint when fetching.Who to Notify
@liamrharwood