feat(FN-4378): complete Step 7 — document github issue delete actions
Fusion-Task-Id: FN-4378 Fusion-Task-Lineage: d3867ba8-f852-41e3-9db0-584c0ffc23b1
This commit is contained in:
5
.changeset/fn-4378-github-issue-delete-prompt.md
Normal file
5
.changeset/fn-4378-github-issue-delete-prompt.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@runfusion/fusion": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Prompt users for GitHub tracking issue handling when deleting a task, with explicit options to close, delete, or leave the linked issue unchanged. Also adds `githubIssueAction` plumbing through the API/store and gh-CLI-backed issue deletion support.
|
||||||
@@ -534,7 +534,7 @@ When Fusion creates a tracking issue, it uses:
|
|||||||
|
|
||||||
When tracked tasks later move to `in-progress` or `done`, Fusion also posts a short lifecycle comment on the linked tracking issue. The `in-progress` comment stays plain-text and capped, while the `done` comment can include the merge commit SHA/subject, task branch, PR link, file-change stats, and merge timestamp when those fields are available.
|
When tracked tasks later move to `in-progress` or `done`, Fusion also posts a short lifecycle comment on the linked tracking issue. The `in-progress` comment stays plain-text and capped, while the `done` comment can include the merge commit SHA/subject, task branch, PR link, file-change stats, and merge timestamp when those fields are available.
|
||||||
|
|
||||||
When a tracked task moves into `done`, Fusion closes the linked GitHub issue with `state_reason: completed`; when it leaves `done` for an active column, Fusion reopens the issue with `state_reason: reopened`; and when the Fusion task is permanently deleted, Fusion closes the linked issue with `state_reason: not_planned`.
|
When a tracked task moves into `done`, Fusion closes the linked GitHub issue with `state_reason: completed`; when it leaves `done` for an active column, Fusion reopens the issue with `state_reason: reopened`; and when the Fusion task is permanently deleted from the dashboard, Fusion now prompts for issue handling (`close`, `delete`, or `leave`). If no explicit choice is provided by API callers, Fusion preserves the legacy default and closes the linked issue with `state_reason: not_planned`.
|
||||||
|
|
||||||
GitHub authentication/settings are configured in [Settings Reference](./settings-reference.md) via `githubAuthMode` (`gh-cli` or `token`) and `githubAuthToken`.
|
GitHub authentication/settings are configured in [Settings Reference](./settings-reference.md) via `githubAuthMode` (`gh-cli` or `token`) and `githubAuthToken`.
|
||||||
|
|
||||||
|
|||||||
@@ -1153,3 +1153,12 @@ import { InsightsView } from "./components/InsightsView";
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## GitHub tracking issue handling on task delete
|
||||||
|
|
||||||
|
When deleting a task that has an active linked GitHub tracking issue, the dashboard prompts for one of three actions:
|
||||||
|
- **Close issue** (default behavior for API callers that do not pass an explicit action)
|
||||||
|
- **Delete issue** (requires gh CLI authentication)
|
||||||
|
- **Leave issue unchanged**
|
||||||
|
|
||||||
|
This choice is sent as `githubIssueAction` through the delete-task API and propagated to the tracking-state service.
|
||||||
|
|||||||
Reference in New Issue
Block a user