mirror of
https://github.com/mas-cli/mas
synced 2024-11-26 05:20:18 +00:00
🚚 Update paths in Dangerfile
This commit is contained in:
parent
7f0d69585f
commit
72678b6dea
1 changed files with 4 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
||||||
# Sometimes it's a README fix, or something like that - which isn't relevant for
|
# Sometimes it's a README fix, or something like that - which isn't relevant for
|
||||||
# including in a project's CHANGELOG for example
|
# including in a project's CHANGELOG for example
|
||||||
has_app_changes = !git.modified_files.grep(/mas-cli/).empty?
|
has_app_changes = !git.modified_files.grep(/App/).empty?
|
||||||
# has_test_changes = !git.modified_files.grep(/Tests/).empty?
|
# has_test_changes = !git.modified_files.grep(/AppTests/).empty?
|
||||||
|
|
||||||
is_version_bump = git.modified_files.sort == ["CHANGELOG.md", "mas-cli/mas-cli-Info.plist"].sort
|
is_version_bump = git.modified_files.sort == ["CHANGELOG.md", "App/mas-cli-Info.plist"].sort
|
||||||
message(":bookmark: Version bump!") if is_version_bump
|
message(":bookmark: Version bump!") if is_version_bump
|
||||||
|
|
||||||
# if has_app_changes && !has_test_changes && !is_version_bump
|
# if has_app_changes && !has_test_changes && !is_version_bump
|
||||||
|
@ -24,7 +24,7 @@ message("This PR might seem trivial, but every contribution counts. :kissing_hea
|
||||||
|
|
||||||
# Keep the CHANGELOG up-to-date
|
# Keep the CHANGELOG up-to-date
|
||||||
if !git.modified_files.include?("CHANGELOG.md") && !declared_trivial
|
if !git.modified_files.include?("CHANGELOG.md") && !declared_trivial
|
||||||
fail(":book: Please include a CHANGELOG entry. \nYou can find it at [CHANGELOG.md](https://github.com/mas-cli/mas/blob/master/CHANGELOG.md).", sticky: false)
|
fail(":memo: Please include a CHANGELOG entry. \nYou can find it at [CHANGELOG.md](https://github.com/mas-cli/mas/blob/master/CHANGELOG.md).", sticky: false)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Make it more obvious that a PR is a work in progress and shouldn't be merged yet
|
# Make it more obvious that a PR is a work in progress and shouldn't be merged yet
|
||||||
|
|
Loading…
Reference in a new issue