refactor(#751): GitHubIssueTask delegates to GitHubAbilities::createIssue()#753
Merged
chubes4 merged 2 commits intoExtra-Chill:mainfrom Mar 9, 2026
Conversation
…filter, support github_pat Settings update ability now tracks which input keys were actually processed. Unknown keys are reported as unhandled_keys in the response instead of being silently ignored. Extensions can hook into the datamachine_update_settings filter to handle their own keys. - Add github_pat and github_default_repo to core settings handler + schema - Add datamachine_update_settings filter for extension-owned keys - CLI set command now errors when a key was not recognized - Add 5 tests covering new behavior
…es::createIssue() Centralize GitHub issue creation in GitHubAbilities instead of having the task make its own raw API calls. This ensures consistent auth, error handling, and testability. - Add GitHubAbilities::createIssue() static method - GitHubIssueTask::execute() now calls GitHubAbilities::createIssue() - Remove duplicate API logic from task (30 lines → 15 lines) - Supports same params: repo, title, body, labels, assignees
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Centralize GitHub issue creation in
GitHubAbilitiesinstead of having the task make its own raw API calls. This ensures consistent auth, error handling, and testability.Changes
GitHubAbilities::createIssue()— new static method that handles POST to GitHub API with full param support (repo, title, body, labels, assignees)GitHubIssueTask::execute()— now delegates toGitHubAbilities::createIssue()instead of duplicating API logicBenefits
GitHubAbilities::createIssue()instead of HTTP)GitHubAbilitiesRelated to #751 (extensible settings for
github_pat)