xrefcheck/danger/premerge-checks.rb
martoon d259a3c7e2
[Chore] Add danger checks
Problem: it would be helpful to have checks for common rules on styling
commits and stuff, to avoid checking those manually every time.

Solution: add Danger checks, mostly the same we had in Morley.
2022-12-20 04:55:54 +03:00

17 lines
395 B
Ruby

# SPDX-FileCopyrightText: 2022 Oxhead Alpha
# SPDX-License-Identifier: LicenseRef-MIT-OA
# Checks that are fine to fail during development, but must be fixed before merging.
require_relative 'helpers'
# Fixup commits
if git.commits.any? &:fixup?
fail "Some fixup commits are still there."
end
# Work-in-progress commits
if git.commits.any? &:wip?
fail "WIP commits are still there."
end