Repository navigation
feat(projects): import a GitHub epic as a project — platform half (abilityai/trinity-enterprise#1163) - #4494
Conversation
…task tools (abilityai/trinity-enterprise#1240)
Checkpoint B (platform). GitHubService.get_issue: one GET to
/repos/{o}/{r}/issues/{n} over a bounded client (5 s, one redirect),
GitHubError carries status, reset and rate_limited; network errors never
carry httpx's text. create_project_task gains refs, update_project_task
gains refs_add/refs_remove, and both now forward only the keys they
declare.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ore and docs (abilityai/trinity-enterprise#1240) Checkpoint C (platform). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…yai/trinity-enterprise#1240) C1: GitHubService.issue_client adds a request hook that raises GitHubError (status None -> the refs read records "unreachable") when a redirect hop's scheme, host or port differs from API_BASE's, before that hop is sent, so the platform token never leaves the API host. I2: the Projects GitHub owners setting says removing an owner stops new reads and titles already read stay as last read. Bumps src/backend/enterprise to 6925b6e (C2 + I1). Tests: test_redirect_to_another_origin_is_refused_before_it_is_sent and test_redirect_changing_scheme_or_port_is_refused[x2] — red with the hook removed, green restored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s 6925b6e, on top of a03a9d3) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…issue's sub-issues (ent#1163)
One paged GET /repos/{o}/{r}/issues/{n}/sub_issues on the bounded issue
client: 100 per page, the next page requested by number only while GitHub
sends rel="next" (no URL from a response is requested), capped at limit.
Non-200s share get_issue's error mapping (status, reset, rate_limited), now
one helper; a network error never carries httpx's text (#4284).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ent#1163)
ProjectImportModal gets one source switch, a radio group: 'From an agent'
(the folder import, unchanged, the default) and 'From a GitHub epic' (one
field for owner/repo#N or the issue link, pre-validated with a named
error and an example, and a note that it is a one-time copy that writes
nothing back to GitHub). A clean import opens the project; one that left
sub-issues out, hit the 100 cap, could not link a task or met nested
sub-issues names them first. Server refusals show inline in their own
words. store.importEpic posts { epic } to /import/epic and refreshes the
list. The projects user guide gains a paragraph.
Mounted vitest spec workspaceProjectsEnt1163.mount.spec.js (10 tests,
all red against the previous modal and store).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tus=200) (ent#1163 review I2) get_issue and list_sub_issues called response.json() bare, so a proxy's HTML page answering 200 surfaced as a ValueError no caller maps, and the import route answered a bare 500. Both now raise GitHubError with status=200, which callers already map to 'unreachable'. Red before the fix: test_a_non_json_200_is_a_github_error_with_status_200 (both parametrizations, JSONDecodeError). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a2 (abilityai/trinity-enterprise#1163) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Validation ReportPR: #4494 — feat(projects): import a GitHub epic as a project — platform half (abilityai/trinity-enterprise#1163)
Execution coverage (§5.4)
Fix mutation (this run): removed the try/except in IssuesCritical: none.
Not run (by design): the full platform, enterprise and vitest suites. The evidence sweep ran them (#issuecomment-6819288316, 32/33/27 green), so I didn't repeat them. ent#1250 is validated separately. Recommendation: APPROVE (conditional on the before-merge sequence above)Validated against base 🤖 Generated with Claude Code |
The base PR trinity#4490 was squash-merged (a080d6c); files only it touched take dev's side. Real conflicts keep both intents: the user doc (dev's project-mode text + the GitHub-epic paragraph and one-way line) and the projects store's export list (importEpic). Enterprise gitlink → 7e33e6b (the ent#1163 branch tip, merged with ent main; contains dev's pin 6b1de6d). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ues to do (ent#1163) Review C2/W1 on the user doc: the import creates a not_started project and open sub-issues import as todo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Validation Report — trinity#4494, round 3 (run chain-ent1236, delta fe81d3c..6a31644)Head Decision: APPROVE (draft; not marked ready, per the rider)
Warnings (update before merge, not code)
Not runNo tests re-run (per rider). No §5.5 or audit-script re-run: the delta is docs plus the gitlink. PR #4494 — APPROVE — merge gate: ✅ |
…0's squash commit c10d8c6 (Abilityai/trinity-enterprise#1163) Mechanical, per the merge-train note on the PR. dev's pin (710c8ae, #4533) and this branch's (7e33e6b, the ent#1250 branch tip) both give way to the commit that landed on enterprise main. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
merge-train 2026-11-14 — pushed to this branch (mechanical): |
Fixes abilityai/trinity-enterprise#1163
What
Platform half of abilityai/trinity-enterprise#1163: a person can import a GitHub epic as a project from the project import dialog. It is a one-time import, never a sync. The enterprise half (read, import, duplicate guard, route) is abilityai/trinity-enterprise#1250.
GitHubService.list_sub_issues(09eb34f55): a GET-only read of an issue's native sub-issues, one level deep.200from an issue read now raisesGitHubError(status=200)(eb2035cee, review I2), so the import answers503 github_unreachableand writes nothing.214e5e4b0): a source switch inProjectImportModal.vue(folder or GitHub epic), store and utils.docs/user-docs/sharing-and-access/workspace-projects.md.7e33e6b, the tip of abilityai/trinity-enterprise#1250.dev(b85f9d1d4); the docs say an imported project begins Not started and open sub-issues arrive to do (6a3164418).Review + security
/cso --diff: nothing at ≥8/10.eb2035cee). I1, I3 and the optional same-key pin are enterprise-side.Tests
test_1163_github_sub_issues.py23 passed (-p no:randomly).workspaceProjectsEnt1163.mount.spec.jscovers the import dialog switch.6a3164418terminal and green on basedev. Validation: round 3 APPROVE (#issuecomment-6854775692).Before merge
main(a squash changes it).status-in-devon ent#1163 by hand after merge (cross-tracker closing keyword).active.docs/user-docs/sharing-and-access/workspace-projects.md(merge order is the operator's call). feat(executions): project attribution seam + project Runs tab (abilityai/trinity-enterprise#1105) #4492 and feat(projects): task shape — subtasks, waits-on, not started, tasks for people #4493 add none beyond the base.🤖 Generated with Claude Code