23 Commits

Author SHA1 Message Date
Justin Dalrymple
893dd5cb46
Removing char type possibility (#1467) 2021-01-23 19:58:05 -05:00
Justin Dalrymple
565bd15449
Removed circular references (#1387)
- Updated requester structure
- Removed duplicate pipeline jobs function
2020-12-18 14:23:49 -05:00
Justin Dalrymple
7684756a24
Export the APIMap through a compile-time replacement (#1352) 2020-12-06 18:43:28 +01:00
Justin Dalrymple
55a2261f4b
RejectUnauthorized being set incorrectly for the NodeJS release (#1252) 2020-10-20 12:38:38 +02:00
Niklas Lochschmidt
d3cd35c5f2
Add approval rule management (#1233)
See: https://docs.gitlab.com/ee/api/merge_request_approvals.html

* Move Approval API into MergeRequestApprovals

Breaking change, see https://github.com/jdalrymple/gitbeaker/pull/1233#issuecomment-709262998
2020-10-15 20:15:58 +02:00
Niklas Lochschmidt
13d43b77b4
Add support for Freeze Periods (#1231)
See https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/api/freeze_periods.md
2020-10-15 13:24:14 +02:00
Justin Dalrymple
77d89d2026
Fix Agent-Type error due to Got update in GotRequester.ts (#1224) 2020-10-12 13:54:11 +02:00
Justin
1f2812ea35 perform retries on a wider range of error codes 2020-10-11 22:21:23 +02:00
Justin
64137764bc Wrapping error messages to avoid JSON.parse non json responses 2020-10-11 21:44:42 +02:00
Sander Cox
08dec2e542
Support Group Runners API (#1182)
* Get all runners for a group
2020-10-05 12:12:45 +02:00
Max Wittig
3f78cc36d4 feat: apply exponental backoff for 429 errors
This was implemented similarly to 1606310a88/gitlab/__init__.py (L549)
Gitlab sadly doesn't send out `Retry-After` headers anymore, so we need this workaround

Fixes #960
2020-09-27 23:39:06 +02:00
Justin
a02d815f95 Restructing the requester utils and update the related typings 2020-09-27 16:48:57 +02:00
Justin
f2eec88379 Linting 2020-09-25 17:54:35 +02:00
xieyu
1e754e0416
Response body needs parse firstly when it's type is json (#1057) 2020-08-11 15:52:27 +02:00
Justin Dalrymple
21faf97301
Fixing support for FormData requests (#1056) 2020-08-09 16:01:33 +02:00
Justin Dalrymple
67c94e0c12
Fixing encoding for requests of archive data (#954) 2020-07-12 10:20:00 +02:00
Justin Dalrymple
6426ce1fb1
Removal of esinterlop to prefer namespace imports over default exports (#893) 2020-06-16 13:37:56 +02:00
Justin Dalrymple
d322f7ca91
Fixing up missing commits from the latest release (#886) 2020-06-14 14:50:47 +02:00
Justin Dalrymple
8b549da700
Remove Gitlab Instance dependency for CLI tests (#883)
* Also added canary build if label is present
2020-06-12 10:11:10 +02:00
Justin Dalrymple
c4522e245a
Adding CLI Integration Tests (#711) 2020-04-23 23:34:22 +02:00
Justin Dalrymple
b89f5460db
Updating agent property based on new changes in Got (#712) 2020-04-22 21:12:27 +02:00
Justin
3e49ab98cc chore: ✏️ Updating release configuration and commit linting 2020-03-22 15:09:25 +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