Interface GitHubCreateOperation
- All Known Implementing Classes:
GitHubCreateController
public interface GitHubCreateOperation
Defines the signature for creating an application in Github repository.
- Since:
- 2.2
- Author:
- Pavol Gressa
-
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.http.HttpResponse<GitHubCreateDTO>
createApp
(@NonNull ApplicationType type, @Pattern(regexp="[\\w\\d-_\\.]+") String name, @Nullable List<String> features, @Nullable BuildTool buildTool, @Nullable TestFramework testFramework, @Nullable Language lang, @Nullable JdkVersion javaVersion, @NonNull String code, @NonNull String state, @Nullable String userAgent, @NonNull RequestInfo requestInfo) Creates and push application to GitHub repository.
-
Method Details
-
createApp
io.micronaut.http.HttpResponse<GitHubCreateDTO> createApp(@NonNull @NonNull ApplicationType type, @Pattern(regexp="[\\w\\d-_\\.]+") @Pattern(regexp="[\\w\\d-_\\.]+") String name, @Nullable @Nullable List<String> features, @Nullable @Nullable BuildTool buildTool, @Nullable @Nullable TestFramework testFramework, @Nullable @Nullable Language lang, @Nullable @Nullable JdkVersion javaVersion, @NonNull @NonNull String code, @NonNull @NonNull String state, @Nullable @Header("User-Agent") @Nullable String userAgent, @NonNull @NonNull RequestInfo requestInfo) Creates and push application to GitHub repository.- Parameters:
type
- The application typename
- The name of the application and GitHub repositoryfeatures
- The featuresbuildTool
- The build tooltestFramework
- The test frameworklang
- The langjavaVersion
- The java versioncode
- The github code- Returns:
- An information about newly created GitHub repository
-