core.check-event-merge
- description
- Merge rule of a project commit: a commit that merges another branch (merged_commit_hash) must merge a commit of the same project. See docs/branch.md
- type
Fn(commit: @core.project-commit, state: @core.event-check-state) -> List<@core.event-rejection>
- expression
fn(commit$0, state$1) =>
match $0.merged_commit_hash {
#none(_) =>
[],
#some(merged$2) =>
match $1.merged_in_project {
true =>
[],
false =>
[#merged_commit_not_in_project<@core.event-rejection>]
}
}- visibility
- public
core.check-event-merge (project definy, branch compiled-tests, snapshot i6TqClmqVS9FK8rKOvJ43l6Tevx8pvYJ5-zaQqNwemc)
id: xm4gBjedjMIXjt2psg9IaT0cM6ZwJ8wqu3VFcEBpyIg
content hash: vCbs1Ds1ZeGrL2L-61_M5M0UwegV91al3yzJZU7Mk6o