Skip to content

Commit

Permalink
Fix revision props (#6)
Browse files Browse the repository at this point in the history
* don't add github information underneath actions.  Should be top level

* compile to js

* remove lingering deploy_and_test files
  • Loading branch information
gcooney authored Aug 7, 2019
1 parent 9ce8d7a commit efbfa62
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 21 deletions.
5 changes: 0 additions & 5 deletions deploy-and-test/.prettierignore

This file was deleted.

10 changes: 0 additions & 10 deletions deploy-and-test/.prettierrc

This file was deleted.

6 changes: 3 additions & 3 deletions lib/mablApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ class mablApiClient {
: null;
uri ? (planOverrides.uri = uri) : null;
requestBody.plan_overrides = planOverrides;
revision ? (requestBody.revision = revision) : null;
event_time ? (requestBody.event_time = event_time) : null;
properties ? (requestBody.properties = properties) : null;
let actions = {};
rebaselineImages ? (actions.rebaseline_images = rebaselineImages) : null;
setStaticBaseline
? (actions.set_static_baseline = setStaticBaseline)
: null;
revision ? (actions.revision = revision) : null;
event_time ? (actions.event_time = event_time) : null;
properties ? (actions.properties = properties) : null;
requestBody.actions = actions;
return requestBody;
}
Expand Down
8 changes: 5 additions & 3 deletions src/mablApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,16 @@ export class mablApiClient {
uri ? (planOverrides.uri = uri) : null;
requestBody.plan_overrides = planOverrides;

revision ? (requestBody.revision = revision) : null;
event_time ? (requestBody.event_time = event_time) : null;
properties ? (requestBody.properties = properties) : null;


let actions: any = {};
rebaselineImages ? (actions.rebaseline_images = rebaselineImages) : null;
setStaticBaseline
? (actions.set_static_baseline = setStaticBaseline)
: null;
revision ? (actions.revision = revision) : null;
event_time ? (actions.event_time = event_time) : null;
properties ? (actions.properties = properties) : null;
requestBody.actions = actions;
return requestBody;
}
Expand Down

0 comments on commit efbfa62

Please sign in to comment.