Repository navigation
feat(notify): show the source task in Telegram alerts - #68
chevyphillip wants to merge 2 commits into
Conversation
An alert said what was found but not which run found it, so two findings
with the same title in one engagement were indistinguishable. The task
name and the finding id now appear on their own line in both the single
push and the digest.
The source line goes through one helper, telegramItemMeta, so both
render paths cannot drift apart. Labels follow the existing localized
wording ("자산", "개요", "상세 보기") rather than introducing a second
vocabulary.
A task name is a label, not evidence: it is capped at 60 runes and
HTML-escaped, since it can come from user input. A missing task row or a
zero id renders no line at all instead of an empty label.
NotificationTaskName is best effort by design — a deleted task or an old
snapshot without a task id must not fail the delivery.
Verification: go build ./... and go test ./... pass (16 packages).
|
CI 는 이 포크에서 실행되지 않습니다. 포크에서 Actions 를 활성화했지만 워크플로가 Go 1.27.3 / linux amd64. 이 PR 이 건드리지 않는 것현지화와 무관합니다. 렌더 결과 비교변경 전에는 어느 실행에서 나온 finding 인지 알 수 없었습니다: 변경 후:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c6899ac52e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bd1ad09769
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
요약
텔레그램 알림에 출처 작업(task) 이름과 finding id 를 표시합니다. 지금은 무엇을
찾았는지만 나오고 어느 실행에서 나왔는지가 없어서, 한 engagement 안에서 제목이 같은
두 finding 을 구분할 수 없습니다. 단일 push 와 digest 두 경로 모두에 같은 형태로
표시합니다.
변경 유형
fix)feat)docs)i18n)refactor/chore)관련 이슈
이슈 번호를 모르겠습니다. 해당 이슈가 있으면 알려 주시면 연결하겠습니다.
(자발적 기여 PR 입니다.)
구현
db.NotificationTaskName— task id → 표시 이름. best effort: 행이 없거나(삭제된 task) task id 가 없는 옛 스냅샷이면 빈 이름과 nil 을 반환합니다.
알림 전달이 실패하면 안 되기 때문입니다. task 이름은 증거가 아니라 표시용
필드입니다.
telegramItemMeta— 출처 줄을 한 곳에서만 만들어 단일 push 와 digest 가 서로달라질 수 없게 했습니다.
자산,개요,상세 보기)를 그대로 씁니다. 새 어휘를도입하지 않습니다.
있기 때문입니다.
검증 방법
go build ./...통과,go test ./...통과 (16 packages)추가한 테스트
notify/telegram_meta_test.go가 고정하는 것:a<b>&c→a<b>&c).현지화 체크리스트
현지화 PR 은 아니지만 기존 현지화 규칙을 따랐습니다.
자산/개요/상세 보기재사용.사용 범위 확인
검증은 로컬 테스트와 로컬 HTTP 서버로만 수행했습니다.