1373 Commits

Author SHA1 Message Date
Justin Dalrymple
e068e6a0e2 fix(gitbeaker-core): 🐛 ResourceTemplate.show was using the wrong http method 2020-02-02 16:53:54 +01:00
Justin Dalrymple
6c748eceb4 fix(gitbeaker-core): 🐛 Notification Settings API special PUT requests
The Notification Settings API requires the HTTP arguments to be sent in a query parameter instead of a body parameter for the PUT request.
2020-02-02 16:53:54 +01:00
Justin Dalrymple
2e9e58013b refactor(gitbeaker-core): 💡 Updated the License API
Updated the spelling of License and standardized internal functions to be more consistent.

BREAKING CHANGE: 🧨 Changed the spelling of the License API from Licence to License. Additionally the license.create method has been replaced with license.add and has a required first parameter that is the license. The license.all method now returns all licenses and no longer the license
for the current user. This is now done by license.show.
2020-02-02 16:53:54 +01:00
Justin Dalrymple
4a3906ad35 refactor(gitbeaker-core): 💡 Updated the function header for Group.create
Group creation now takes three parameters since the path property was required but not included in the non-optional parameters.

BREAKING CHANGE: 🧨 Group.create takes an additional argument
2020-02-02 16:53:54 +01:00
Justin Dalrymple
6851800ca8 feat(gitbeaker-cli): 🎸 Added support for GITBEAKER_[Property] env variable
This also includes a gb prefix for command line arguments. See README for example usage.
2020-02-02 16:53:54 +01:00
Justin Dalrymple
d9cd4c9a91 refactor: 💡 Migrated to a monorepo structure
Gitbeaker has been split up into 5 subpackages: gitbeaker-core, gitbeaker-node, gitbeaker-cli, gitbeaker-browser and gitbeaker-requester-utils.

gitbeaker-[node,cli,browser] are enviroment
specific sub packages. For example, if you want to use gitbeaker in a NodeJS environment, use gitbeaker-node. gitbeaker-core is where all the
base logic exists, and gitbeaker-requester-utils is a collection of utility functions for making custom requester libraries.

BREAKING CHANGE: 🧨 This migration requires users to import specific subpackages. For NodeJS
usage, that would be @gitbeaker/node.
2020-02-02 16:53:54 +01:00
Justin Dalrymple
a66d708c8f ci: Moved from Travis CI to GitLab-CI 2020-02-02 16:53:54 +01:00
Justin Dalrymple
e16962e7f6 chore: 🤖 Switching from npm to yarn, and updating global deps 2020-02-02 16:53:54 +01:00
Justin Dalrymple
cd619d678a docs: ✏️ Cleaning up style of changelog and updating license 2020-02-01 10:26:45 +01:00
Justin Dalrymple
1fcbbcfef0 chore: 🤖 Adding lerna config and updating semantic release 2020-02-01 10:25:58 +01:00
Justin Dalrymple
ca9b66f096 chore: 🤖 Updating jest configuration
Included types for jest-extended and exceptions for es module tests
2020-02-01 10:25:04 +01:00
Justin Dalrymple
ff9e7878ec chore: 🤖 Updating global tsconfig and removing tsconfig.elint 2020-02-01 10:22:43 +01:00
Justin Dalrymple
28007124a9 chore: 🤖 Updating gitignore to ignore yarn logs 2020-02-01 10:20:35 +01:00
Justin Dalrymple
f5f92ccb62 chore: 🤖 Updating eslint configuration
Removed confusing configuration in the linting process
2020-02-01 09:14:56 +01:00
Justin Dalrymple
d88f87652a docs: ✏️ Updating README to match new functionality 2020-02-01 09:13:23 +01:00
Justin Dalrymple
3116b365aa chore: 🤖 Fixing codecov configuration
Needed to remove the '.' prefix from the config file name
2020-02-01 09:11:44 +01:00
semantic-release-bot
d807eed238 chore(release): 14.2.2 [skip ci]
## [14.2.2](https://github.com/jdalrymple/node-gitlab/compare/14.2.1...14.2.2) (2020-01-30)

### Bug Fixes

* Incorrect request method in MergeRequests.approvalState() method ([#586](https://github.com/jdalrymple/node-gitlab/issues/586)) ([cb5f822](cb5f8228ca))
14.2.2
2020-01-30 12:36:49 +00:00
Dmitry Emets
cb5f8228ca
fix: Incorrect request method in MergeRequests.approvalState() method (#586) 2020-01-30 13:24:32 +01:00
semantic-release-bot
4750d320a0 chore(release): 14.2.1 [skip ci]
## [14.2.1](https://github.com/jdalrymple/node-gitlab/compare/14.2.0...14.2.1) (2020-01-20)

### Bug Fixes

* added file extension for dummy file name in project import ([#561](https://github.com/jdalrymple/node-gitlab/issues/561)) ([f45cb68](f45cb68498)), closes [/gitlab.com/gitlab-org/gitlab-foss/issues/50944#note_101737263](https://github.com//gitlab.com/gitlab-org/gitlab-foss/issues/50944/issues/note_101737263)
14.2.1
2020-01-20 18:21:15 +00:00
Sirko Schindler
f45cb68498 fix: added file extension for dummy file name in project import (#561)
According to the workaround mentioned in https://gitlab.com/gitlab-org/gitlab-foss/issues/50944#note_101737263
2020-01-20 19:09:26 +01:00
semantic-release-bot
c5975aa270 chore(release): 14.2.0 [skip ci]
# [14.2.0](https://github.com/jdalrymple/node-gitlab/compare/14.1.1...14.2.0) (2020-01-17)

### Features

* Adding support for merge_requests in the Deployments API ([911078b](911078bba3)), closes [#554](https://github.com/jdalrymple/node-gitlab/issues/554)
14.2.0
2020-01-17 16:11:48 +00:00
Alexander Schramm
911078bba3 feat: Adding support for merge_requests in the Deployments API
fix: Fixing incorrect Deployments.show HTTP method #554
2020-01-17 16:59:58 +01:00
David Regla
297878e982 docs(typings): Typings update (#525)
- Updates ProjectSchema / GroupSchema interfaces to include all fields returned by GitLab API v4
- Adds some new Interfaces: CommitSchema, RunnerSchema, UserSchema, UserDetailSchema, EnvironmentSchema, ArtifactSchema, JobSchema, PipelineSchema.
2020-01-12 23:05:30 +01:00
semantic-release-bot
f2b192b8fe chore(release): 14.1.1 [skip ci]
## [14.1.1](https://github.com/jdalrymple/node-gitlab/compare/14.1.0...14.1.1) (2020-01-03)

### Bug Fixes

* resourceDiscussions.editNote add content params, and allowed discussionId to accept a string type ([#524](https://github.com/jdalrymple/node-gitlab/issues/524)) ([22d916a](22d916a05f))
14.1.1
2020-01-03 13:38:14 +00:00
Justin Dalrymple
22d916a05f
fix: resourceDiscussions.editNote add content params, and allowed discussionId to accept a string type (#524)
Co-authored-by: Liu Jia <ldspirit0801@163.com>
2020-01-03 14:26:17 +01:00
semantic-release-bot
9ad767b235 chore(release): 14.1.0 [skip ci]
# [14.1.0](https://github.com/jdalrymple/node-gitlab/compare/14.0.1...14.1.0) (2019-12-30)

### Bug Fixes

* make ResourceMembers.all/show delivery correct options params ([#521](https://github.com/jdalrymple/node-gitlab/issues/521)) ([505b407](505b4072f3)), closes [#518](https://github.com/jdalrymple/node-gitlab/issues/518)

### Features

* Added support for the Vulnerability Findings API ([#517](https://github.com/jdalrymple/node-gitlab/issues/517)) ([497bf94](497bf948d9))
14.1.0
2019-12-30 13:13:57 +00:00
Adam Dehnel
497bf948d9 feat: Added support for the Vulnerability Findings API (#517) 2019-12-30 13:59:50 +01:00
Liu Jia
505b4072f3 fix: make ResourceMembers.all/show delivery correct options params (#521)
* fix: make ResourceMembers.all/show delivery correct options params
* Update src/core/templates/ResourceMembers.ts

Co-Authored-By: Joseph Petersen <josephp90@gmail.com>

fixes: #518
2019-12-30 13:57:58 +01:00
semantic-release-bot
c6f4c51d58 chore(release): 14.0.1 [skip ci]
## [14.0.1](https://github.com/jdalrymple/node-gitlab/compare/14.0.0...14.0.1) (2019-12-23)

### Bug Fixes

* Adding back functionality for rejectUnauthorized http option ([#502](https://github.com/jdalrymple/node-gitlab/issues/502)) ([0f17bed](0f17bedc0b))
14.0.1
2019-12-23 10:43:54 +00:00
Justin
fa7b1d9c31 Fixing version # 2019-12-23 11:30:51 +01:00
Justin Dalrymple
0f17bedc0b
fix: Adding back functionality for rejectUnauthorized http option (#502)
Assigned the correct defaults as defined in https://nodejs.org/api/tls.html#tls_tls_connect_options_callback.

closes: #502
2019-12-22 20:05:05 +01:00
Justin Dalrymple
4f46e1e49e
test: Add test to catch issue brought up by #499 (#516) 2019-12-22 18:49:02 +01:00
semantic-release-bot
7720ea9296 chore(release): 14.0.0 [skip ci]
# [14.0.0](https://github.com/jdalrymple/node-gitlab/compare/13.0.0...14.0.0) (2019-12-21)

### Bug Fixes

* Typing on GPGKey method arguments was missing ([#514](https://github.com/jdalrymple/node-gitlab/issues/514)) ([234c9a7](234c9a75db))
* Typing on Group and Project variable keys was incorrect [#512](https://github.com/jdalrymple/node-gitlab/issues/512) ([#515](https://github.com/jdalrymple/node-gitlab/issues/515)) ([c7afca5](c7afca5231))

### BREAKING CHANGES

* The title property is not required for the add method.
14.0.0
2019-12-21 11:20:28 +00:00
Justin Dalrymple
234c9a75db
fix: Typing on GPGKey method arguments was missing (#514)
BREAKING CHANGE: The title property is not required for the add method.
2019-12-21 12:07:21 +01:00
Justin Dalrymple
c7afca5231
fix: Typing on Group and Project variable keys was incorrect #512 (#515)
closes: #512
2019-12-21 12:03:49 +01:00
dependabot[bot]
481876c186 chore(deps): bump npm from 6.13.1 to 6.13.4 (#510)
Bumps [npm](https://github.com/npm/cli) from 6.13.1 to 6.13.4.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md)
- [Commits](https://github.com/npm/cli/compare/v6.13.1...v6.13.4)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-15 21:24:04 +01:00
semantic-release-bot
99e07ecb6c chore(release): 13.0.0 [skip ci]
# [13.0.0](https://github.com/jdalrymple/node-gitlab/compare/12.1.0...13.0.0) (2019-12-09)

### Features

* Adding ability to get a singular member of a project or group, including inheritedMemebrs ([#508](https://github.com/jdalrymple/node-gitlab/issues/508)) ([807171c](807171c3ff)), closes [#507](https://github.com/jdalrymple/node-gitlab/issues/507)

### BREAKING CHANGES

* Updated the Members.all function to have the inheritedMembers option to be in the optional object.
13.0.0
2019-12-09 10:35:42 +00:00
Justin Dalrymple
807171c3ff
feat: Adding ability to get a singular member of a project or group, including inheritedMemebrs (#508)
BREAKING CHANGE: Updated the Members.all function to have the inheritedMembers option to be in the optional object.

closes: #507
2019-12-09 11:22:50 +01:00
semantic-release-bot
63b11574aa chore(release): 12.1.0 [skip ci]
# [12.1.0](https://github.com/jdalrymple/node-gitlab/compare/12.0.1...12.1.0) (2019-12-05)

### Bug Fixes

* Removing required options object in a few of the API methods ([#505](https://github.com/jdalrymple/node-gitlab/issues/505)) ([b709ef6](b709ef6716))

### Features

* Add Group/File schemas ([#506](https://github.com/jdalrymple/node-gitlab/issues/506)) ([f467816](f467816070))
12.1.0
2019-12-05 14:37:11 +00:00
Simon A. Eugster
f467816070 feat: Add Group/File schemas (#506)
This commit adds more schemas for TypeScript and continues f1fe3763.
2019-12-05 15:24:55 +01:00
Justin Dalrymple
b709ef6716
fix: Removing required options object in a few of the API methods (#505) 2019-12-04 10:30:12 +01:00
semantic-release-bot
55e688c1fb chore(release): 12.0.1 [skip ci]
## [12.0.1](https://github.com/jdalrymple/node-gitlab/compare/12.0.0...12.0.1) (2019-11-27)

### Bug Fixes

* Encode slug value for Wikis API ([#501](https://github.com/jdalrymple/node-gitlab/issues/501)) ([9c56d48](9c56d4819b)), closes [#490](https://github.com/jdalrymple/node-gitlab/issues/490)
12.0.1
2019-11-27 10:04:19 +00:00
Justin Dalrymple
9c56d4819b
fix: Encode slug value for Wikis API (#501)
fixes: #490
2019-11-27 10:51:56 +01:00
Linus Metzler
483006ef31 docs: update default value of version parameter (#500)
The default for `version` was changed in 6558f09522ccb27d4314d99394086301fe5ae85e and is now a number not a string thus the README needed to be updated accordingly.
2019-11-26 10:01:24 +01:00
semantic-release-bot
f1fe37639d chore(release): 12.0.0 [skip ci]
# [12.0.0](https://github.com/jdalrymple/node-gitlab/compare/11.6.0...12.0.0) (2019-11-21)

* Switching version option type ([6558f09](6558f09522))

### Bug Fixes

* Fixing the inability to use environment variables in the cli export ([#463](https://github.com/jdalrymple/node-gitlab/issues/463)) ([79d8c71](79d8c718b0)), closes [#458](https://github.com/jdalrymple/node-gitlab/issues/458)

### BREAKING CHANGES

* Switch the version option to be a number and not a string. For example 4 instead of 'v4'.
12.0.0
2019-11-21 10:13:15 +00:00
Justin
6558f09522 Switching version option type
BREAKING CHANGE: Switch the version option to be a number and not a string. For example 4 instead of 'v4'.
2019-11-21 11:01:48 +01:00
Justin
79d8c718b0 fix: Fixing the inability to use environment variables in the cli export (#463)
chore: Cleaning up the rollup configuration
chore: Updating packages to remove vulnerabilities
docs: Updating usage documentation to improve clarity
test: Adding proper tests for cli functionality
closes:#458
2019-11-21 11:00:18 +01:00
Justin
e2b812a119 chore: Fixing some inconsistencies outlined in #497
BREAKING: Removed duplicate function in the Projects API to update push rules
2019-11-20 21:52:56 +01:00
semantic-release-bot
9025d7be7e chore(release): 11.6.0 [skip ci]
# [11.6.0](https://github.com/jdalrymple/node-gitlab/compare/11.5.1...11.6.0) (2019-11-20)

### Features

* Add Group.projects ([#494](https://github.com/jdalrymple/node-gitlab/issues/494)) ([9def4e7](9def4e7f8e)), closes [#384](https://github.com/jdalrymple/node-gitlab/issues/384)
11.6.0
2019-11-20 15:05:25 +00:00
Simon A. Eugster
9def4e7f8e feat: Add Group.projects (#494)
This commit also introduces a minimal typed response as a first step
towards #384.
2019-11-20 15:53:46 +01:00