Skip to content

botの実装をした#35

Open
hachimitsu-pichi wants to merge 9 commits into
mainfrom
feat/bot
Open

botの実装をした#35
hachimitsu-pichi wants to merge 9 commits into
mainfrom
feat/bot

Conversation

@hachimitsu-pichi

Copy link
Copy Markdown
Contributor

No description provided.

@ramdos0207 ramdos0207 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!2点コメントを付けたので、確認して欲しいです:pray:

Comment thread internal/service/bot/bot.go Outdated
}

// NotifyTicketCreated : チケット作成通知
func (s *Service) NotifyTicketCreated(ctx context.Context, _ string, title string, creatorID string) error {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

勘違いだったら申し訳ないのですが、これどこからも呼ばれていない気がします(チケットが作成されてもこの関数が呼ばれない)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ノート作成通知、レビュー作成通知もそれぞれどこからも呼ばれていない(ノート・レビューが作成されてもメッセージが飛ばない)ので修正して欲しいです!

Comment thread internal/service/bot/bot.go Outdated
func (s *Service) SendDeadlineReminder(ctx context.Context, ticketTitle string, daysOverdue int, assigneeID string) error {
msg := fmt.Sprintf("【期限超過リマインド】\n案件「%s」の期限から %d日 が経過しました。\n対応状況を確認してください。", ticketTitle, daysOverdue)

if err := s.PostDirectMessage(ctx, assigneeID, msg); err != nil {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

実は担当者(など)はUUID(2e0c6679-166f-455a-b8b0-35cdfd257256など)ではなく@で始まるID(ramdosなど)が入るので、このままだと多分動きません...

@ramdos0207 ramdos0207 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3点コメント付けたので、確認して欲しいです!
(その上でコンフリクトを解消してテストを通しておいて欲しいです)

dueStr = ticket.Due.Time.Format("2006/01/02")
}

message := fmt.Sprintf(`## 新しいチケット(ID: %d)が作成されました

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

必ずしもこのPRで直さなくても大丈夫(リリース後の修正で問題ない)のですが、BOTからの通知文面に統一感がない(見出しレベルや、タイトルの太字強調の有無などがまちまちである)のが気になります...!

Comment thread internal/handler/tickets.go Outdated
}
}()

fmt.Println("============ BOT DEBUG START ============")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

デバッグ出力は消しておいて欲しいです!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants