Skip to content

Commit

Permalink
Actually allow assignees for public
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Oct 7, 2023
1 parent 43c2fca commit 5dfce21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CosyComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1317,12 +1317,12 @@ protected function getPrParams($branch_name, $body, $title, $default_branch, Con
// Log a message so it's possible to understand why.
if (!empty($assignees)) {
if ($this->isPrivate) {
$assignees = [];
$this->log('Assignees on private projects are only allowed on the agency and enterprise plan. Configuration was detected for assignees, but will be ignored');
} else {
$this->log('Assignees on private projects are only allowed on the agency and enterprise plan. This project was detected to be public, so assignees will still apply even though a sufficient plan is not active');
}
}
$assignees = [];
}
return [
'base' => $default_branch,
Expand Down

0 comments on commit 5dfce21

Please sign in to comment.