You've already forked go-semantic-release
feat: Added Gitea Provider
This commit is contained in:
@@ -29,19 +29,19 @@ type ChangelogConfig struct {
|
||||
NPM ChangelogNPM `yaml:"npm,omitempty"`
|
||||
}
|
||||
|
||||
//ChangelogDocker type struct
|
||||
// ChangelogDocker type struct
|
||||
type ChangelogDocker struct {
|
||||
Latest bool `yaml:"latest"`
|
||||
Repository string `yaml:"repository"`
|
||||
}
|
||||
|
||||
//ChangelogNPM type struct
|
||||
// ChangelogNPM type struct
|
||||
type ChangelogNPM struct {
|
||||
Repository string `yaml:"repository"`
|
||||
PackageName string `yaml:"name"`
|
||||
}
|
||||
|
||||
//Asset type struct
|
||||
// Asset type struct
|
||||
type Asset struct {
|
||||
Path string `yaml:"path"`
|
||||
Rename string `yaml:"rename,omitempty"`
|
||||
@@ -58,6 +58,15 @@ type GitHubProvider struct {
|
||||
TagPrefix *string `yaml:"tagPrefix,omitempty"`
|
||||
}
|
||||
|
||||
// GiteaProvider struct
|
||||
type GiteaProvider struct {
|
||||
Repo string `yaml:"repo"`
|
||||
User string `yaml:"user"`
|
||||
URL string `yaml:"url,omitempty"`
|
||||
AccessToken string
|
||||
TagPrefix *string `yaml:"tagPrefix,omitempty"`
|
||||
}
|
||||
|
||||
// GitLabProvider struct
|
||||
type GitLabProvider struct {
|
||||
Repo string `yaml:"repo"`
|
||||
@@ -104,6 +113,7 @@ type ReleaseConfig struct {
|
||||
Analyzer AnalyzerConfig `yaml:"analyzer"`
|
||||
Changelog ChangelogConfig `yaml:"changelog,omitempty"`
|
||||
Release string `yaml:"release,omitempty"`
|
||||
GiteaProvider GiteaProvider `yaml:"gitea,omitempty"`
|
||||
GitHubProvider GitHubProvider `yaml:"github,omitempty"`
|
||||
GitLabProvider GitLabProvider `yaml:"gitlab,omitempty"`
|
||||
GitProvider GitProvider `yaml:"git,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user