Skip to content

feat(server): Jira project map + trigger comment reactions - #196

Merged
patroza merged 1 commit into
fork/changesfrom
fix/jira-project-map-and-reactions
Jul 30, 2026
Merged

feat(server): Jira project map + trigger comment reactions#196
patroza merged 1 commit into
fork/changesfrom
fix/jira-project-map-and-reactions

Conversation

@omegent-app

@omegent-app omegent-app Bot commented Jul 30, 2026

Copy link
Copy Markdown

Summary

  • Map Jira project keys (e.g. SA) to T3 projects via T3CODE_JIRA_PROJECT_MAP for join-or-create auto-create when an issue is unlinked.
  • Map values (and T3CODE_JIRA_DEFAULT_PROJECT_ID) accept T3 project id, title, workspace basename, or absolute workspace root (/var/lib/t3/src/...) so ops can keep Discord-style paths.
  • Pick order: project map → default project → sole shell project.
  • Best-effort 👀 reaction on the triggering Jira comment when a delivery is accepted; remove it when the delivery finishes (like Discord/GitHub eyes). Fail-soft when the site has no public reaction API.
  • Docs + unit tests for parse/resolve helpers.

Ops config example

T3CODE_JIRA_PROJECT_MAP=SA:scanner,CFG:/var/lib/t3/src/macs/configurator
# optional fallback:
# T3CODE_JIRA_DEFAULT_PROJECT_ID=/var/lib/t3/src/macs/scanner
# optional; default 1f440 (👀); empty disables:
# T3CODE_JIRA_ACK_EMOJI_ID=

Test plan

  • vp test run apps/server/src/jira/JiraWebhook.test.ts
  • vp check
  • full monorepo typecheck
  • Deploy with T3CODE_JIRA_PROJECT_MAP=SA:scanner (or full path)
  • Mention bot on an unlinked SA-* issue → thread auto-creates on scanner project
  • Confirm 👀 appears on trigger comment (when site supports it) and clears when done

Allow T3CODE_JIRA_PROJECT_MAP (and DEFAULT_PROJECT_ID) to resolve via
project id, title, workspace basename, or absolute workspace root so
auto-create can pick SA→scanner without a single-project host. Best-effort
👀 reaction on the trigger comment, cleared when the delivery finishes.
@patroza
patroza merged commit 4ddba9a into fork/changes Jul 30, 2026
10 checks passed
patroza pushed a commit that referenced this pull request Jul 30, 2026
…196)

Allow T3CODE_JIRA_PROJECT_MAP (and DEFAULT_PROJECT_ID) to resolve via
project id, title, workspace basename, or absolute workspace root so
auto-create can pick SA→scanner without a single-project host. Best-effort
👀 reaction on the trigger comment, cleared when the delivery finishes.

Co-authored-by: omegent-app[bot] <306514130+omegent-app[bot]@users.noreply.github.com>
patroza pushed a commit that referenced this pull request Jul 30, 2026
…196)

Allow T3CODE_JIRA_PROJECT_MAP (and DEFAULT_PROJECT_ID) to resolve via
project id, title, workspace basename, or absolute workspace root so
auto-create can pick SA→scanner without a single-project host. Best-effort
👀 reaction on the trigger comment, cleared when the delivery finishes.

Co-authored-by: omegent-app[bot] <306514130+omegent-app[bot]@users.noreply.github.com>
patroza pushed a commit that referenced this pull request Jul 31, 2026
…196)

Allow T3CODE_JIRA_PROJECT_MAP (and DEFAULT_PROJECT_ID) to resolve via
project id, title, workspace basename, or absolute workspace root so
auto-create can pick SA→scanner without a single-project host. Best-effort
👀 reaction on the trigger comment, cleared when the delivery finishes.

Co-authored-by: omegent-app[bot] <306514130+omegent-app[bot]@users.noreply.github.com>
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