Skip to content

Commit

Permalink
Merge pull request #26 from fewieden/feature/merge-requests
Browse files Browse the repository at this point in the history
Expose merge requests
  • Loading branch information
jdalrymple authored Jan 19, 2018
2 parents 0e5a51f + 1784df7 commit f5b312c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/API.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Request from 'request-promise';
import { Groups, Projects, Issues, Runners, Users, Labels } from './Models';
import { Groups, Projects, Issues, Runners, Users, Labels, MergeRequests } from './Models';

function defaultRequest(url, endpoint, { headers, body, qs, formData, resolveWithFullResponse = false }) {
const params = {
Expand Down Expand Up @@ -35,6 +35,7 @@ class API {
this.issues = new Issues(this);
this.users = new Users(this);
this.runners = new Runners(this);
this.mergeRequests = new MergeRequests(this);
}

get(endpoint, options, fullResponse) {
Expand Down
2 changes: 1 addition & 1 deletion src/Models/MergeRequests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BaseModel from './BaseModel';

class MergeRequests extends BaseModel {
all(projectId, options = {}) {
all(options = {}) {
return this.get('merge_requests', options);
}
}
Expand Down

0 comments on commit f5b312c

Please sign in to comment.