diff --git a/README.md b/README.md index 845aadfd5..7dea94e05 100644 --- a/README.md +++ b/README.md @@ -64,13 +64,17 @@ MIT Changelog ========= +[1.0.6](https://github.com/jdalrymple/node-gitlab-api/commit/03a22b46a62d7b68937575b0b74b6fd3496f7cbf) (2017-06-23) +------------------ +- Fixing bug within the Labels API; Missing required argument. + [1.0.5](https://github.com/jdalrymple/node-gitlab-api/commit/03a22b46a62d7b68937575b0b74b6fd3496f7cbf) (2017-06-23) ------------------ - Fixing bug within the delete API calls. It was missing query parameters [1.0.4](https://github.com/jdalrymple/node-gitlab-api/commit/9d9ef2615c6dd778a3fb1c6140d5ce009c421bb1) (2017-06-23) ------------------ -- Adding more to the labels API +- Adding more to the Labels API - Cleaned up the Issues class [1.0.3](https://github.com/jdalrymple/node-gitlab-api/commit/fe5a5fbb8d01fb670b7c7b14ce2c5b7f30d71fe5) (2017-06-23) diff --git a/package.json b/package.json index ea9e23f4c..5ebfed723 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-gitlab-api", - "version": "1.0.5", + "version": "1.0.6", "description": "Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.", "main": "src/index.js", "directories": {}, diff --git a/src/Models/Labels.js b/src/Models/Labels.js index 20ae0f64b..560799af1 100644 --- a/src/Models/Labels.js +++ b/src/Models/Labels.js @@ -6,7 +6,7 @@ class Labels extends BaseModel { super(...args); } - all(options = {}) { + all(projectId, options = {}) { options.page = options.page || 1; options.per_page = options.per_page || 100;