Skip to content

Commit

Permalink
Add organization parameters to Phylum object (#1532)
Browse files Browse the repository at this point in the history
This change fixes an oversight from when org support was first added to
the extension API. The new `organization` parameters were added to
`extensions/phylum.d.ts` but not exposed for consumers in
`cli/js/api.js`.

[See commit `f890fea`](f890fea)
or #1490
  • Loading branch information
maxrake authored Nov 6, 2024
1 parent d34ff1e commit c5d1584
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 8 additions & 5 deletions cli/js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ export function analyze(
project,
group,
label,
organization,
) {
return op_analyze(
packages,
project,
group,
label,
organization,
);
}

Expand Down Expand Up @@ -116,20 +118,21 @@ export function getGroups() {
return get_groups();
}

export function getProjects(group) {
return get_projects(group);
export function getProjects(group, organization) {
return get_projects(group, organization);
}

export function createProject(
name,
group,
repository_url,
organization,
) {
return create_project(name, group, repository_url);
return create_project(name, group, repository_url, organization);
}

export function deleteProject(name, group) {
return delete_project(name, group);
export function deleteProject(name, group, organization) {
return delete_project(name, group, organization);
}

export function getPackageDetails(
Expand Down
4 changes: 4 additions & 0 deletions extensions/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased

### Fixed

- Add missing `organization` parameters to global `Phylum` object endpoints

## 7.1.1 - 2024-10-09

### Changed
Expand Down

0 comments on commit c5d1584

Please sign in to comment.