406 Commits

Author SHA1 Message Date
Justin
8c673c3b17 fix: Forgot to await for the response #426 2019-09-10 11:18:19 -04:00
Justin
1bddfb0b18 Fixed old function references 2019-09-08 12:03:03 -04:00
Justin
05eb2a0050 Fixing prefix to be GITLAB_[option] for env vars 2019-09-08 10:35:27 -04:00
Justin
a5904bb1b9 Adding env var support for config 2019-09-08 10:34:29 -04:00
Justin
94a40629d3 Error in token assignment 2019-08-30 18:06:27 -04:00
Justin
6f90f4c67d feat: Adding support for CLI
closes: #146
2019-08-30 17:50:16 -04:00
Justin
91cfbf2737 fix: Switching type import to hopefully fix #417 2019-08-30 11:31:29 -04:00
Justin
4e21f31109 Merge branch '426-handle-null-response' 2019-08-29 11:03:21 -04:00
Justin Dalrymple
d24122142b
Merge pull request #431 from jdalrymple/429-project-import-fix
fix: Adding path argument to the Project Imports API
2019-08-28 15:22:31 -04:00
Justin
c697463d01 Incorrect variable reference 2019-08-28 12:05:58 -04:00
Justin
c8deaa2822 fix: Handling empty text responses 2019-08-28 11:03:15 -04:00
Justin
47e1ff47af feat: Add support for the Packages API #430 2019-08-28 10:53:45 -04:00
Justin
97a7c59223 fix: Adding path argument to the Project Imports API
fix: Adding path argument to the Project Imports API

Also removed the metadata optional property as it isnt used by the GitLab API.

BREAKING CHANGE: Added the path argument to the function header.
2019-08-28 10:42:47 -04:00
Justin
7d6ac3ff4d Remove the .then in favour of await 2019-08-27 17:10:38 -04:00
Justin
8bbab73e0f fix: Adding proper support for the buffer responses 2019-08-27 17:07:08 -04:00
Kimmo Sääskilahti
f66f50c2de
Add type exports.
- Add type exports.
- Add types to bundle unit tests.
2019-08-27 13:10:19 +03:00
Justin
8e5dfc00cd chore: Major linting fixes 2019-08-22 11:52:28 -04:00
Trent Albright
85c3329937 fix: incorrect url path for mr unapprove 2019-08-16 23:26:52 -04:00
Justin Dalrymple
45e8544128
Merge pull request #413 from jdalrymple/410-fork-relationships
feat: Adding fork relationship support
2019-08-13 12:29:39 -04:00
Justin
ac670cc51c feat: Add Gitlab Blame endpoint to the RespositoryFiles API
See https://docs.gitlab.com/ee/api/repository_files.html#get-file-blame-from-repository for docs

closes: #409
2019-08-13 10:52:13 -04:00
Justin
76cb783967 feat: Adding fork relationship support
Implemented https://docs.gitlab.com/ce/api/projects.html#fork-relationship. ForkedFromId can be supplied as a optional argument.

closes: #410
2019-08-13 10:45:02 -04:00
Keaton Burleson
c47564b8b7 fix: Removing randomstring dependency to improve support for Angular 8
closes: #407
2019-08-09 12:29:31 -04:00
Justin Dalrymple
7bcddc3473
Merge pull request #406 from jdalrymple/400-add-merge-base
feat: Adding Merge Base endpoint for the Repositories API
2019-08-06 11:28:45 -04:00
Justin Dalrymple
56cae15b40
Merge pull request #405 from jdalrymple/404-remove-deprecated-session-api
fix: Removing deprecated Session endpoint (since GitLab 10.2.0)
2019-08-06 11:08:38 -04:00
Justin
040fc786c9 feat: Adding Merge Base endpoint for the Repositories API
closes: #400
2019-08-06 10:44:27 -04:00
Justin
a907c7ce83 fix: Adding missing TS type import 'FormData'
closes: #401
2019-08-06 10:37:49 -04:00
Justin
fe720d8a21 fix: Removing deprecated Session endpoint (since GitLab 10.2.0)
closes: #404
2019-08-06 10:23:45 -04:00
Justin Dalrymple
f59d51d15d
Merge pull request #387 from jdalrymple/385-pagination-tests
Extending pagination tests to ensure proper functionality
2019-07-15 10:15:18 -04:00
Justin
d46efc55a4 Remove console logs 2019-07-15 08:47:02 -04:00
Justin
84f619ff33 Numbers should be ints not strings 2019-07-12 12:31:13 -04:00
Justin
856a4a6a89 Linting and removing direct exposure of version option as it conflicted with the version function in the MergeRequest API 2019-07-12 11:43:13 -04:00
Justin
d9b6f16d2e Using a literal instead of a string 2019-07-12 11:00:55 -04:00
Justin
356466f684 feat: Adding support for branchName key seen in the Gitlab API v3 2019-07-12 10:49:58 -04:00
Justin
199e32d34e refactor: Adding required labelName and colour option to the create method
BREAKING CHANGE: Labels require a colour and a name to be created. Now the create method takes a second and third argument: 'labelName' and 'color'
2019-07-11 17:18:28 -04:00
Justin
fe395904e7 fix: Accept any variables that begin with uppercase letters and include an underscore #254
This updated regex isn't foolproof. If the user decides to use lowercase variables, this will not work. Would beed to change the internal logic to allow for the skipping of the camelization.

closes: #254
2019-07-11 16:06:11 -04:00
Justin
4d758e415f test: Improved unit tests for pagination checks 2019-07-11 16:02:43 -04:00
Justin
aa33061f68 refactor: Standardizing the upload argument header
This was done to improve consistency between the two functions used to upload files to gitlab.

BREAKING CHANGE: path argument is no longer required/available. Now, it follows a similar function header to Project.upload with an optional metadata argument
Missing dependency
dede
2019-07-04 15:01:40 -04:00
Justin
184253e728 fix: Fixing project upload #355
closes: #355
2019-07-04 14:53:16 -04:00
Justin
f7425a72e2 fix: PushRules were missing from the ProjectBundle export and the README. #373
BREAKING CHANGE: PushRule export was renamed to PushRules to match the plurality of the export names
2019-07-02 13:48:52 -04:00
Justin
f9a47c7beb fix: Revert support for the rejectUnauthorized option until issues in #377 are sorted. 2019-07-01 12:30:39 -04:00
Justin
f58b489194 style: Linting 2019-06-28 15:07:11 -04:00
Justin
b23dd29b5b feat: Adding missing endpoints for deploy keys #373
BREAKING CHANGE: all method now takes an optional object since projectId is no longer required. If no projectId is passed, the all method returns all deploy keys across all projects of the GitLab instance
2019-06-28 15:04:12 -04:00
Justin
861f89ea22 fix: Missing headers when posting json data 2019-06-28 14:26:20 -04:00
Justin
17bed59e52 refactor: Conditionally add the https new Agent 2019-06-28 10:33:07 -04:00
Justin
71dde54d02 chore: Updating dependancies affecting the build success 2019-06-27 15:10:43 -04:00
Justin
67aa49cde3 test: Fixing some linting in the tests 2019-06-27 14:13:02 -04:00
Justin
b1fa90bffc style: Fixing linting problems 2019-06-27 13:13:49 -04:00
Justin
00068c918e feat: Adding support for Group Issues
closes: #306
2019-06-26 11:17:24 -04:00
Justin Dalrymple
8ec97e34e4
Merge branch 'master' into 355-project-upload 2019-06-16 22:44:26 -04:00
Justin
a135841043 fix: Handle body types properly if not JSON ie formData
fixes: #355
2019-06-15 18:23:25 -04:00