Skip to content

Commit

Permalink
Updating changelog and adding CommitDiscussions support
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Jun 2, 2018
1 parent 82173a2 commit fe0a941
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
------------------
- Seperated out changelog
- Adding ability to view pagination information, [#94](https://github.com/jdalrymple/node-gitlab/issues/94), via the showPagination option
- Adding CommitDiscussions and MergeRequestDiscussions support

[3.4.0](https://github.com/jdalrymple/node-gitlab/tags/3.4.0) (2018-5-24)
------------------
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ Currently there are three Bundles:
```
Branches
Commits
CommitDiscussions
Deployments
DeployKeys
Environments
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const UsersBundle = Bundler(Pick(APIServices, [
export const ProjectsBundle = Bundler(Pick(APIServices, [
'Branches',
'Commits',
'CommitDiscussions',
'DeployKeys',
'Deployments',
'Environments',
Expand Down
9 changes: 9 additions & 0 deletions src/services/CommitDiscussions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { ResourceDiscussions } from '../templates';

class CommitDiscussions extends ResourceDiscussions {
constructor(options) {
super('projects', 'commits', options);
}
}

export default CommitDiscussions;
1 change: 1 addition & 0 deletions src/services/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export { default as UserGPGKeys } from './UserGPGKeys';
// Projects
export { default as Branches } from './Branches';
export { default as Commits } from './Commits';
export { default as CommitDiscussions } from './CommitDiscussions';
export { default as Deployments } from './Deployments';
export { default as DeployKeys } from './DeployKeys';
export { default as Environments } from './Environments';
Expand Down
2 changes: 2 additions & 0 deletions test/tests/bundles/ProjectsBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ test('All the correct service keys are included in the projects bundle', async (
const services = [
'Branches',
'Commits',
'CommitDiscussions',
'DeployKeys',
'Deployments',
'Environments',
Expand All @@ -17,6 +18,7 @@ test('All the correct service keys are included in the projects bundle', async (
'Labels',
'MergeRequests',
'MergeRequestAwardEmojis',
'MergeRequestDiscussions',
'MergeRequestNotes',
'Pipelines',
'PipelineSchedules',
Expand Down

0 comments on commit fe0a941

Please sign in to comment.