Merge pull request #1158 from shuheiktgw/fix_getWorkflowJob

Remove a trailing slash from getWorkflowJob
This commit is contained in:
Liam Newman
2021-05-28 00:54:58 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -3073,7 +3073,7 @@ public class GHRepository extends GHObject {
*/
public GHWorkflowJob getWorkflowJob(long id) throws IOException {
return root.createRequest()
.withUrlPath(getApiTailUrl("/actions/jobs/"), String.valueOf(id))
.withUrlPath(getApiTailUrl("/actions/jobs"), String.valueOf(id))
.fetch(GHWorkflowJob.class)
.wrapUp(this);
}

View File

@@ -2,7 +2,7 @@
"id": "3e411914-13ab-4047-9b13-8394a37a3f62",
"name": "repos_hub4j-test-org_ghworkflowruntest_actions_jobs__2270858630",
"request": {
"url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/jobs//2270858630",
"url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/jobs/2270858630",
"method": "GET",
"headers": {
"Accept": {