Skip to content

Commit

Permalink
udpated octokit/rest api calls to 16.24.3
Browse files Browse the repository at this point in the history
  • Loading branch information
BloggerBust-bot committed Apr 19, 2019
1 parent 5069eb7 commit bb1a1a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/GitHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class GitHub extends GitService {
return Promise.reject(errorHandler('GITHUB_FILE_ALREADY_EXISTS', {err}))
}
}
} catch (err) {} // eslint-disable-line no-empty
} catch (err) { console.error(err) }

return Promise.reject(errorHandler('GITHUB_WRITING_FILE', {err}))
})
Expand All @@ -93,7 +93,7 @@ class GitHub extends GitService {
}

createBranch (branch, sha) {
return this.api.gitdata.createReference({
return this.api.gitdata.createRef({
owner: this.username,
repo: this.repository,
ref: `refs/heads/${branch}`,
Expand All @@ -103,7 +103,7 @@ class GitHub extends GitService {
}

deleteBranch (branch) {
return this.api.gitdata.deleteReference({
return this.api.gitdata.deleteRef({
owner: this.username,
repo: this.repository,
ref: `heads/${branch}`
Expand Down
4 changes: 2 additions & 2 deletions test/unit/controllers/handlePR.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('HandlePR controller', () => {
_ => ({
authenticate: jest.fn(),
gitdata: {
deleteReference: mockDeleteReference
deleteRef: mockDeleteReference
},
pullRequests: {
get: mockPullRequestsGet
Expand Down Expand Up @@ -191,7 +191,7 @@ describe('HandlePR controller', () => {
_ => ({
authenticate: jest.fn(),
gitdata: {
deleteReference: mockDeleteReference
deleteRef: mockDeleteReference
},
pullRequests: {
get: mockPullRequestsGet
Expand Down
2 changes: 1 addition & 1 deletion test/unit/lib/GitHub.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ describe('GitHub interface', () => {
_ => ({
authenticate: jest.fn(),
gitdata: {
createReference: mockCreateReference
createRef: mockCreateReference
},
repos: {
createFile: () => Promise.resolve({
Expand Down

0 comments on commit bb1a1a8

Please sign in to comment.