enable_automation_rule
Activate a disabled automation rule in GitHub Projects to resume automated workflows for task management and sprint planning.
Instructions
Enable a disabled automation rule
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleId | Yes |
Implementation Reference
- Core handler implementation that enables an automation rule by calling the repository's enable method after verifying the rule exists.async enableAutomationRule(data: { ruleId: string }): Promise<{ id: string; name: string; enabled: boolean; }> { try { const rule = await this.automationRepo.findById(data.ruleId); if (!rule) { throw new ResourceNotFoundError(ResourceType.RELATIONSHIP, data.ruleId); } const updated = await this.automationRepo.enable(data.ruleId); return { id: updated.id, name: updated.name, enabled: updated.enabled }; } catch (error) { throw this.mapErrorToMCPError(error); } }
- Tool definition including input schema (expects 'ruleId' string), description, and example usage.export const enableAutomationRuleTool: ToolDefinition<EnableAutomationRuleArgs> = { name: "enable_automation_rule", description: "Enable a disabled automation rule", schema: enableAutomationRuleSchema as unknown as ToolSchema<EnableAutomationRuleArgs>, examples: [ { name: "Enable rule", description: "Re-enable a disabled automation rule", args: { ruleId: "AR_kwDOLhQ7gc4AOEbH" } } ] };
- src/infrastructure/tools/ToolRegistry.ts:284-284 (registration)Registers the enableAutomationRuleTool in the central ToolRegistry during initialization.this.registerTool(enableAutomationRuleTool);
- src/index.ts:481-482 (handler)MCP request handler dispatch that routes 'call_tool' requests for 'enable_automation_rule' to the ProjectManagementService.case "enable_automation_rule": return await this.service.enableAutomationRule(args);