🚨 Version bumps are now tracked as git tags, not source changes

This commit is contained in:
Chris Araman 2021-05-09 11:27:22 -07:00
parent c372dbc9fd
commit 30f466734e

View file

@ -11,18 +11,12 @@
has_app_changes = !git.modified_files.grep(/Sources/).empty? has_app_changes = !git.modified_files.grep(/Sources/).empty?
has_test_changes = !git.modified_files.grep(/Tests/).empty? has_test_changes = !git.modified_files.grep(/Tests/).empty?
is_version_bump = git.modified_files.sort == [ # if has_app_changes && !has_test_changes
"Package.swift",
"MasKit/Package.swift"
].sort
message(":bookmark: Version bump!") if is_version_bump
# if has_app_changes && !has_test_changes && !is_version_bump
# warn("Tests were not updated", sticky: false) # warn("Tests were not updated", sticky: false)
# end # end
# Thanks other people! # Thanks other people!
message(":tada:") if is_version_bump && github.pr_author != "phatblat" message(":tada:") if github.pr_author != "phatblat"
# Mainly to encourage writing up some reasoning about the PR, rather than just leaving a title # Mainly to encourage writing up some reasoning about the PR, rather than just leaving a title
if github.pr_body.length < 5 if github.pr_body.length < 5