Skip to content

Commit

Permalink
feat: support dev channel
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
  • Loading branch information
alexey-igrychev committed Sep 13, 2023
1 parent 5eece9c commit fd33299
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions client/pkg/trdl/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package trdl
import "time"

const (
ChannelDev = "dev"
ChannelAlpha = "alpha"
ChannelBeta = "beta"
ChannelEA = "ea"
Expand All @@ -21,6 +22,7 @@ const (
)

var Channels = []string{
ChannelDev,
ChannelAlpha,
ChannelBeta,
ChannelEA,
Expand Down
4 changes: 2 additions & 2 deletions server/path_publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func ValidatePublishConfig(ctx context.Context, publisher publisher.Interface, p
}

switch channel.Name {
case "alpha", "beta", "ea", "stable", "rock-solid":
case "dev", "alpha", "beta", "ea", "stable", "rock-solid":
default:
return NewErrIncorrectChannelName(channel.Name)
}
Expand Down Expand Up @@ -303,7 +303,7 @@ func ValidatePublishConfig(ctx context.Context, publisher publisher.Interface, p
}

func NewErrIncorrectChannelName(chnl string) error {
return fmt.Errorf(`got incorrect channel name %q: expected "alpha", "beta", "ea", "stable" or "rock-solid"`, chnl)
return fmt.Errorf(`got incorrect channel name %q: expected "dev", "alpha", "beta", "ea", "stable" or "rock-solid"`, chnl)
}

func cloneGitRepositoryBranch(url, gitBranch, username, password string) (*git.Repository, error) {
Expand Down

0 comments on commit fd33299

Please sign in to comment.