Loading
feat(project): add OnlyAllowMergeIfAllStatusChecksPassed to Project response
Description
only_allow_merge_if_all_status_checks_passed could already be set through CreateProjectOptions and EditProjectOptions, but the Project struct did not have the field. The setting was therefore missing from responses such as GetProject.
Changes
projects.go: addOnlyAllowMergeIfAllStatusChecksPassed bool(json:"only_allow_merge_if_all_status_checks_passed") toProject. It sits next toOnlyAllowMergeIfAllDiscussionsAreResolved.projects_test.go: extendTestGetProjectByIDso the mock response includes the field and the test asserts it is parsed.