Skip to content

Commit

Permalink
Add workingDirectory to inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Gordon committed Oct 19, 2021
1 parent 62e09fc commit 1576b81
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion __tests__/api_client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ describe('ApiClient', () => {
jobToken: 'xxx',
credentialsToken: 'yyy',
dependabotApiUrl: 'https://localhost',
dependabotApiDockerUrl: 'https://localhost'
dependabotApiDockerUrl: 'https://localhost',
workingDirectory: 'nyi'
})
beforeEach(jest.clearAllMocks)

Expand Down
3 changes: 2 additions & 1 deletion __tests__/updater-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ describe('Updater', () => {
'job-token',
'cred-token',
dependabotApiUrl,
dependabotApiDockerUrl
dependabotApiDockerUrl,
'nyi-workingDirectory'
)

const client = axios.create({baseURL: dependabotApiUrl})
Expand Down
3 changes: 2 additions & 1 deletion src/api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export class JobParameters {
readonly jobToken: string,
readonly credentialsToken: string,
readonly dependabotApiUrl: string,
readonly dependabotApiDockerUrl: string
readonly dependabotApiDockerUrl: string,
readonly workingDirectory: string
) {}
}

Expand Down
3 changes: 2 additions & 1 deletion src/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function fromWorkflowInputs(ctx: Context): JobParameters {
evt.inputs.jobToken as string,
evt.inputs.credentialsToken as string,
evt.inputs.dependabotApiUrl as string,
dependabotApiDockerUrl as string
dependabotApiDockerUrl as string,
evt.inputs.workingDirectory as string
)
}

0 comments on commit 1576b81

Please sign in to comment.