1 Star 0 Fork 0

Amethy/EZSwiftExtensions

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dangerfile 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
Lucas Farah 提交于 2017-09-01 01:29 +08:00 . Not showing multiple file error bug (#450)
#Ensure changelog entry
unless github.pr_body.include? "- [x] Trivial change (doesn't require changelog)"
if (git.modified_files.grep(/^Sources\//).count > 0) || (github.pr_body.include? "- [x] New Extension")
if git.modified_files.grep(/^CHANGELOG.md/).count == 0
fail("Making non-trivial change requires changelog entry! Please, set trivial change or add entry to changelog.")
end
end
end
# Contributors should write up some reasoning about the PR, rather than just leave a title
if github.pr_body.length < 5
fail "Please provide a summary in the Pull Request description"
end
# Ensure a clean commits history
if git.commits.any? { |c| c.message =~ /^Merge branch '#{github.branch_for_base}'/ }
fail('Please rebase to get rid of the merge commits in this PR')
end
# Restrict changing only one extension per PR
if (git.modified_files.grep(/^Sources\//).count > 1) && (github.pr_body.include? "- [ ] Changed more than one extension, but all changes are related")
fail("Please, modify only one extension per pull request.")
end
# Restrict changing only one test per PR
if git.modified_files.grep(/^EZSwiftExtensionsTests\//).count > 1
fail("Please, modify only one extension per pull request.")
end
xcode_summary.report 'xcodebuild-ios.json'
xcode_summary.report 'xcodebuild-tvos.json'
xcode_summary.report 'xcodebuild-macos.json'
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/amethy/EZSwiftExtensions.git
git@gitee.com:amethy/EZSwiftExtensions.git
amethy
EZSwiftExtensions
EZSwiftExtensions
master

搜索帮助