Skip to content

Commit

Permalink
modify message
Browse files Browse the repository at this point in the history
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
  • Loading branch information
t-kikuc committed Nov 5, 2024
1 parent 456119c commit 723393b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/app/piped/eventwatcher/eventwatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const (
numToMakeOutdated = 10
)

var errNoChanges = errors.New("no changes to commit")
var errNoChanges = errors.New("nothing to commit")

type Watcher interface {
Run(context.Context) error
Expand Down Expand Up @@ -407,7 +407,7 @@ func (w *watcher) execute(ctx context.Context, repo git.Repo, repoID string, eve
Status: model.EventStatus_EVENT_SUCCESS,
}
if errors.Is(err, errNoChanges) {
handledEvent.StatusDescription = "No changes to commit"
handledEvent.StatusDescription = "Nothing to commit"
gitNoChangeEvents = append(gitNoChangeEvents, handledEvent)
} else {
handledEvent.StatusDescription = fmt.Sprintf("Successfully updated %d files in the %q repository", len(handler.Config.Replacements), repoID)
Expand Down

0 comments on commit 723393b

Please sign in to comment.