Skip to content

Utilize client to create and finalize artifact - #1487

Merged
bethanyj28 merged 10 commits into
mainfrom
bethanyj28/add-artifact-api-logic
Aug 10, 2023
Merged

bethanyj28 merged 10 commits into
mainfrom
bethanyj28/add-artifact-api-logic

Conversation

@bethanyj28

Copy link
Copy Markdown
Contributor

Building on #1486, this leverages the client to create and finalize artifacts within the uploadArtifact function. Additionally, this adds logic to fetch the IDs needed to submit a create and finalize request.

return JSON.parse(body)
} catch (error) {
throw new Error(error.message)
throw new Error(`Failed to ${method}: ${error.message}`)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This will end up looking like Failed to CreateArtifact: <error message> or Failed to FinalizeArtifact: <error message>

@bethanyj28
bethanyj28 marked this pull request as ready for review August 9, 2023 20:28
@bethanyj28
bethanyj28 requested a review from a team as a code owner August 9, 2023 20:28

@konradpabjan konradpabjan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀

@bethanyj28
bethanyj28 merged commit ab78839 into main Aug 10, 2023
@bethanyj28
bethanyj28 deleted the bethanyj28/add-artifact-api-logic branch August 10, 2023 14:19
Derrick-MUGISHA pushed a commit to Derrick-MUGISHA/toolkit that referenced this pull request Oct 12, 2026
…api-logic

Utilize client to create and finalize artifact
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.

2 participants