mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 04:50:24 +00:00
🚨 Version bumps are now tracked as git tags, not source changes
This commit is contained in:
parent
c372dbc9fd
commit
30f466734e
1 changed files with 2 additions and 8 deletions
10
Dangerfile
10
Dangerfile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue