summaryrefslogtreecommitdiff
path: root/herculeswrapper/herc-map-wrapper-config.example
diff options
context:
space:
mode:
Diffstat (limited to 'herculeswrapper/herc-map-wrapper-config.example')
-rw-r--r--herculeswrapper/herc-map-wrapper-config.example2
1 files changed, 1 insertions, 1 deletions
diff --git a/herculeswrapper/herc-map-wrapper-config.example b/herculeswrapper/herc-map-wrapper-config.example
index b3afd8d..00bfe8b 100644
--- a/herculeswrapper/herc-map-wrapper-config.example
+++ b/herculeswrapper/herc-map-wrapper-config.example
@@ -24,7 +24,7 @@ python -c '
oauth = "01234567890123456789"
import requests
-issues = requests.get("https://gitlab.com/api/v3/projects/%d/merge_requests" % '$1', params={"state": "opened"}, headers={"PRIVATE-TOKEN": "%s" % oauth, "Accept": "application/vnd.gitlab.v3+json"})
+issues = requests.get("https://gitlab.com/api/v4/projects/%d/merge_requests" % '$1', params={"state": "opened"}, headers={"PRIVATE-TOKEN": "%s" % oauth, "Accept": "application/vnd.gitlab.v4+json"})
issues.raise_for_status()
for issue in issues.json():
if "test" in issue["labels"]: