DEFAULT_QUERY_LIMITS is defined in ai/mcp/server/github-workflow/services/queries/issueQueries.mjs and ai/mcp/server/github-workflow/services/queries/pullRequestQueries.mjs. These constants merely re-map values from ai/mcp/server/github-workflow/config.mjs to query variable names, creating unnecessary indirection.
The config.mjs file should be the single source of truth used directly by the services constructing the queries.
Tasks:
- Remove
DEFAULT_QUERY_LIMITS from ai/mcp/server/github-workflow/services/queries/issueQueries.mjs.
- Update
ai/mcp/server/github-workflow/services/IssueService.mjs and ai/mcp/server/github-workflow/services/sync/IssueSyncer.mjs to assign query variables (e.g., maxLabels, maxAssignees) directly from aiConfig.issueSync.
- Remove
DEFAULT_QUERY_LIMITS from ai/mcp/server/github-workflow/services/queries/pullRequestQueries.mjs.
- Update
ai/mcp/server/github-workflow/services/PullRequestService.mjs to assign query variables directly from aiConfig.pullRequest (or aiConfig.issueSync where applicable).
DEFAULT_QUERY_LIMITSis defined inai/mcp/server/github-workflow/services/queries/issueQueries.mjsandai/mcp/server/github-workflow/services/queries/pullRequestQueries.mjs. These constants merely re-map values fromai/mcp/server/github-workflow/config.mjsto query variable names, creating unnecessary indirection.The
config.mjsfile should be the single source of truth used directly by the services constructing the queries.Tasks:
DEFAULT_QUERY_LIMITSfromai/mcp/server/github-workflow/services/queries/issueQueries.mjs.ai/mcp/server/github-workflow/services/IssueService.mjsandai/mcp/server/github-workflow/services/sync/IssueSyncer.mjsto assign query variables (e.g.,maxLabels,maxAssignees) directly fromaiConfig.issueSync.DEFAULT_QUERY_LIMITSfromai/mcp/server/github-workflow/services/queries/pullRequestQueries.mjs.ai/mcp/server/github-workflow/services/PullRequestService.mjsto assign query variables directly fromaiConfig.pullRequest(oraiConfig.issueSyncwhere applicable).