From fe57befc4c917d20289f0e73bf4133417533b60e Mon Sep 17 00:00:00 2001 From: gumi Date: Thu, 5 Jul 2018 16:44:23 -0400 Subject: what a surprisingly seamless transition this is --- herculeswrapper/herc-map-wrapper-config.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]: -- cgit v1.2.3-70-g09d2