-
-
Notifications
You must be signed in to change notification settings - Fork 789
feat: create and edit environment required approvals #9621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
@@ -198,7 +198,7 @@ export interface IEnvironment { | |||
projectCount?: number; | |||
apiTokenCount?: number; | |||
enabledToggleCount?: number; | |||
requiredApprovals?: number; | |||
requiredApprovals?: number | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have to distinguish null and undefined. undefined means skip this field in update and keep the previous value, null means reset this field to null in update
<StyledRequiredApprovals> | ||
Required approvals | ||
</StyledRequiredApprovals> | ||
<GeneralSelect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copied from the table with change request settings
marginBottom: theme.spacing(0.5), | ||
})); | ||
|
||
const useApprovalOptions = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copied from change requests table
About the changes
Can create and edit environment with required change request approvals

Details:
Important files
Discussion points