Skip to content

feat(PM-810): added get submission artifacts api #375

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

Merged
merged 5 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: get submission artifacts
  • Loading branch information
hentrymartin committed Feb 23, 2025
commit 12783db35c037045cadb617e762279e882591646
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- attach_workspace:
at: .
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: npm publish
- run: npm publish --tag test-release
# dont change anything
workflows:
version: 2
Expand Down
12 changes: 12 additions & 0 deletions src/services/submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ class SubmissionsService {
.then(res => res.result);
}

/**
* Get submission artifacts of challenge
* @param {Object} submissionId
* @return {Promise} Resolves to the api response.
*/
async getSubmissionArtifacts(submissionId) {
const url = `/submissions/${submissionId}/artifacts`;
return this.private.apiV5.get(url)
.then(checkErrorV5)
.then(res => res.result);
}

/**
* Get scan reviews types
* @returns {Promise} Resolves to the api response.
Expand Down