Interface VcsBranchConfigurator

    • Method Detail

      • populateContextForCreate

        void populateContextForCreate​(@NotNull
                                      @NotNull Map<String,​Object> context)
      • generateConfigMap

        @Deprecated
        @NotNull
        default @NotNull Map<String,​String> generateConfigMap​(@NotNull
                                                                    @NotNull ActionParametersMap actionParametersMap,
                                                                    @Nullable
                                                                    @Nullable VcsBranchDefinition previousBranchDefinition)
        Deprecated.
        since 5.15 use {@link #generateConfigMap(ActionParametersMap, VcsBranchDefinition, Map
        Parameters:
        actionParametersMap -
        previousBranchDefinition -
      • generateConfigMap

        @NotNull
        default @NotNull Map<String,​String> generateConfigMap​(@NotNull
                                                                    @NotNull ActionParametersMap actionParametersMap,
                                                                    @Nullable
                                                                    @Nullable VcsBranchDefinition previousBranchDefinition,
                                                                    @NotNull
                                                                    @NotNull Map<String,​String> locationConfiguration)
        Parameters:
        actionParametersMap -
        previousBranchDefinition -
        locationConfiguration - - actual server configuration that can be checked when generating branch configuration
        Since:
        5.15
      • getVcsBranchFromConfig

        @NotNull
        @NotNull VcsBranch getVcsBranchFromConfig​(@NotNull
                                                  @NotNull Map<String,​String> configMap)
        Return branch name according to provided config.
        Parameters:
        configMap -
      • setVcsBranchInConfig

        @NotNull
        @NotNull Map<String,​String> setVcsBranchInConfig​(@NotNull
                                                               @NotNull Map<String,​String> configMap,
                                                               @NotNull
                                                               @NotNull VcsBranch vcsBranch)
        Modify config map by setting branch to provided one.
        Parameters:
        configMap -
        vcsBranch -
      • createVcsBranchFromName

        @NotNull
        @NotNull VcsBranch createVcsBranchFromName​(@NotNull
                                                   @NotNull String name)
        Create new vcs branch instance with given name
        Parameters:
        name -
        Returns:
      • createVcsBranchFromNameForForkWorkflow

        @NotNull
        default @NotNull VcsBranch createVcsBranchFromNameForForkWorkflow​(@NotNull
                                                                          @NotNull String branchName,
                                                                          @NotNull
                                                                          @NotNull String pullRequestKey)
        Create new vcs branch instance with given branch name and pull requests key.
        Parameters:
        branchName -
        pullRequestKey -
        Returns: