Skip to content

Comments

feat: flag for mission control comments#27

Merged
vigneshrajsb merged 1 commit intomainfrom
control-comment-flag
Jul 21, 2025
Merged

feat: flag for mission control comments#27
vigneshrajsb merged 1 commit intomainfrom
control-comment-flag

Conversation

@vigneshrajsb
Copy link
Contributor

What

Adds a flag to control default comment from Lifecycle - defaultControlComments

By default set to true, will create the mission control comment in the pull request. When set to false, stops posting mission control comments to the PR

Useful when testing new versions of Lifecycle in parallel with other tools

@vigneshrajsb vigneshrajsb requested a review from a team as a code owner July 21, 2025 18:33
@vigneshrajsb vigneshrajsb requested a review from Copilot July 21, 2025 18:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a configurable feature flag defaultControlComments to control whether mission control comments are posted to pull requests. This flag provides flexibility for testing scenarios where parallel tools are being used alongside Lifecycle.

  • New boolean configuration field defaultControlComments (defaults to true) added to control mission control comment behavior
  • Conditional logic implemented in the activity stream service to check the flag before posting comments
  • Comprehensive test coverage added for the new feature

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/server/services/types/globalConfig.ts Added defaultControlComments boolean field to LabelsConfig type
src/server/services/globalConfig.ts Set default value of true for defaultControlComments in labels configuration
src/server/services/activityStream.ts Implemented conditional logic to check flag before updating mission control comments
src/server/lib/utils.ts Added isControlCommentsEnabled utility function with error handling
src/server/services/tests/globalConfig.test.ts Updated test expectations to include new configuration field
src/server/lib/tests/utils.test.ts Added comprehensive test coverage for isControlCommentsEnabled function
src/server/db/migrations/001_seed.ts Updated database seed to include defaultControlComments: true in default configuration

@vigneshrajsb vigneshrajsb merged commit d7d61f7 into main Jul 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants