Skip to content

Commit 9ebc3bd

Browse files
calin-lupas_dsamcapscalin-lupas_dsamcaps
authored andcommitted
Update pull request creation condition with feature flag
Replaced the static check for `_gitHubOptions.UseInventoryWithPullRequest` with an asynchronous feature flag check using `_featureManager.IsEnabledAsync("UseInventoryWithPullRequest")`. This enhancement allows for more dynamic control over the pull request creation process based on feature management settings.
1 parent b0009cc commit 9ebc3bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DevExcelerateApi/Services/DevExIssuesEventProcessorService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private async Task ValidateIssue(IssuesEvent issuesEvent)
154154
}
155155
else if ((issuesEvent?.Issue?.Labels?.Any(i => i.Name.IsIssueValidated())).GetValueOrDefault())
156156
{
157-
if (_gitHubOptions.UseInventoryWithPullRequest)
157+
if (await _featureManager.IsEnabledAsync("UseInventoryWithPullRequest"))
158158
{
159159
// IF validated, create a pull request
160160
await _teamService.ValidateCreateTeam(issuesEvent!, createPullRequest: true);

0 commit comments

Comments
 (0)