Class GithubApi
java.lang.Object
org.modelingvalue.gradle.mvgplugin.GithubApi
-
Field Details
-
API
- See Also:
-
OWNER
- See Also:
-
JSON_FORMAT
- See Also:
-
DISPATCH_ENTRYPOINT
- See Also:
-
REF_IN_JSON_FORMAT
- See Also:
-
-
Constructor Details
-
GithubApi
public GithubApi()
-
-
Method Details
-
triggerWorkflow
public static String triggerWorkflow(String repo, String workflowFilename, String branch, Consumer<String> errorHandler) throws IOException mimics the following curl call:curl -v \ 'https://api.github.com/repos/ModelingValueGroup/immutable-collections/actions/workflows/build.yaml/dispatches' \ -H "Authorization: token" \ -H "Accept: application/vnd.github.v3+json" \ -X POST \ -d '{"ref":"develop"}' - Throws:
IOException
-