Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: support initial commit branch and protected default branch (#173)
- Loading branch information
1 parent
d7aa282
commit a475ac7
Showing
6 changed files
with
43 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
package projects | ||
|
||
type ConvertToVcs struct { | ||
CommitMessage string | ||
VersionControlSettings GitPersistenceSettings | ||
CommitMessage string `json:"CommitMessage"` | ||
VersionControlSettings GitPersistenceSettings `json:"VersionControlSettings"` | ||
InitialCommitBranchName string `json:"InitialCommitBranchName"` | ||
} | ||
|
||
func NewConvertToVcs(commitMessage string, gitPersistenceSettings GitPersistenceSettings) *ConvertToVcs { | ||
func NewConvertToVcs(commitMessage string, initialCommitBranchName string, gitPersistenceSettings GitPersistenceSettings) *ConvertToVcs { | ||
return &ConvertToVcs{ | ||
CommitMessage: commitMessage, | ||
VersionControlSettings: gitPersistenceSettings, | ||
CommitMessage: commitMessage, | ||
VersionControlSettings: gitPersistenceSettings, | ||
InitialCommitBranchName: initialCommitBranchName, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters