mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
18 lines
402 B
JavaScript
18 lines
402 B
JavaScript
const BaseModel = require('../BaseModel');
|
|
const Utils = require('../Utils');
|
|
|
|
class ProjectLabels extends BaseModel {
|
|
constructor(...args) {
|
|
super(...args);
|
|
}
|
|
|
|
all(projectId, options = {}) {
|
|
options.page = options.page || 1;
|
|
options.per_page = options.per_page || 100;
|
|
|
|
return this.get(`projects/${Utils.parse(projectId)}/labels`, options);
|
|
}
|
|
}
|
|
|
|
module.exports = ProjectLabels;
|