Skip to content

Commit

Permalink
fix(note-check): skip deleted file
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlJi committed Jul 9, 2024
1 parent e5cfc71 commit f30d677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/linters/doc/note-check/note.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func noteCheckHandler(log *xlog.Logger, a linters.Agent) error {
for _, file := range a.PullRequestChangedFiles {
fileName := file.GetFilename()
// Only check go files
if filepath.Ext(fileName) != ".go" {
if filepath.Ext(fileName) != ".go" || file.GetStatus() == "removed" {
continue
}

Expand Down

0 comments on commit f30d677

Please sign in to comment.