Skip to content

feat: enhance webhook event data with task references and project names#3

Merged
pikann merged 1 commit into
masterfrom
feature/enhance-webhook-event-data
Jun 28, 2026
Merged

feat: enhance webhook event data with task references and project names#3
pikann merged 1 commit into
masterfrom
feature/enhance-webhook-event-data

Conversation

@pikann

@pikann pikann commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Webhook delivery text lines previously only named the task (e.g. task "Fix login bug"), with no way to tell which project an event belonged to without cross-referencing project_id. This adds:

  • Task aliastaskRef now prepends the task's human-readable alias ({task_id_prefix}-{task_number}, e.g. ABC-123) when the project has a prefix configured: task ABC-123 "Fix login bug". Falls back to the previous task "Fix login bug" format otherwise. task.created now goes through taskRef too, instead of building its own text from the activity content.
  • Project namedeliver() resolves the project name once per delivery and prefixes the whole summary line with it ([Website Redesign] ...), and adds it to the structured data payload as project_name. Applies to every event, including webhook.test.

Example delivery text before/after:

- Alice updated task "Fix login bug" — title: A → B
+ [Website Redesign] Alice updated task ABC-123 "Fix login bug" — title: A → B

Test plan

  • go test ./... — added TestTaskRefAndProjectNameInSummaryText, covering both the alias-present and no-prefix-fallback cases
  • GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared — builds clean
  • gofmt / go vet — clean

@pikann pikann merged commit 38d5c6f into master Jun 28, 2026
3 checks passed
@pikann pikann deleted the feature/enhance-webhook-event-data branch June 28, 2026 06:53
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.

1 participant