mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
Fix Issue #101: Show functions (in Users, Projects and Commits) not support the options
This commit is contained in:
parent
ea36fe4c1f
commit
2fdeb5fe99
@ -57,10 +57,10 @@ class Commits extends BaseService {
|
||||
return RequestHelper.get(this, `projects/${pId}/repository/commits/${sha}/refs`);
|
||||
}
|
||||
|
||||
show(projectId, sha) {
|
||||
show(projectId, sha, options) {
|
||||
const pId = encodeURIComponent(projectId);
|
||||
|
||||
return RequestHelper.get(this, `projects/${pId}/repository/commits/${sha}`);
|
||||
return RequestHelper.get(this, `projects/${pId}/repository/commits/${sha}`, options);
|
||||
}
|
||||
|
||||
status(projectId, sha, options) {
|
||||
|
||||
@ -58,10 +58,10 @@ class Projects extends BaseService {
|
||||
return RequestHelper.post(this, `projects/${pId}/share`, { groupId, groupAccess, ...options });
|
||||
}
|
||||
|
||||
show(projectId) {
|
||||
show(projectId, options) {
|
||||
const pId = encodeURIComponent(projectId);
|
||||
|
||||
return RequestHelper.get(this, `projects/${pId}`);
|
||||
return RequestHelper.get(this, `projects/${pId}`, options);
|
||||
}
|
||||
|
||||
star(projectId) {
|
||||
|
||||
@ -45,10 +45,10 @@ class Users extends BaseService {
|
||||
});
|
||||
}
|
||||
|
||||
show(userId) {
|
||||
show(userId, options) {
|
||||
const uId = encodeURIComponent(userId);
|
||||
|
||||
return RequestHelper.get(this, `users/${uId}`);
|
||||
return RequestHelper.get(this, `users/${uId}`, options);
|
||||
}
|
||||
|
||||
remove(userId) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user