Skip to content

Commit

Permalink
Merge pull request #248 from suzuki-shunsuke/fix/check-command-for-patch
Browse files Browse the repository at this point in the history
fix: check metadata's Command in patch
  • Loading branch information
suzuki-shunsuke authored Apr 14, 2022
2 parents b9b0cd9 + 84103eb commit 405a807
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/notifier/github/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ func (g *NotifyService) getPatchedComment(logE *logrus.Entry, comments []*IssueC
logE.Debug("Program isn't tfcmt")
continue
}
if data.Command != "plan" {
logE.Debug("Command isn't plan")
continue
}
if data.Target != target {
logE.Debug("target is different")
continue
Expand All @@ -170,6 +174,7 @@ func (g *NotifyService) getPatchedComment(logE *logrus.Entry, comments []*IssueC
type Metadata struct {
Target string
Program string
Command string
}

func getEmbeddedComment(cfg *Config, ciName string, isPlan bool) (string, error) {
Expand Down

0 comments on commit 405a807

Please sign in to comment.