You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add jobs to run Danger as part of the CI
* Add the `Dangerfile` with some basics rules for the project
* Add the `Gemfile` to manage the Ruby dependencies
warn("PR is classed as Work in Progress.")ifgithub.pr_title.include?"[WIP]"
6
+
7
+
# Warn when there is a big PR
8
+
warn("Big PR")ifgit.lines_of_code > 500
9
+
10
+
# ensure there is a summary for a PR
11
+
fail"Please provide a summary in the Pull Request description."ifgithub.pr_body.length < 5
12
+
13
+
# Changelog entries are required for changes to library files.
14
+
fail("Please include a CHANGELOG entry. You can find it at [CHANGELOG.md](https://github.com/httpswift/swifter/blob/stable/CHANGELOG.md).")unlessgit.modified_files.include?("CHANGELOG.md") || git.added_files.include?("CHANGELOG.md")
15
+
16
+
# Don't accept PR on master for now
17
+
fail"Please re-submit this PR to stable, you're trying to merge the PR on master."ifgithub.branch_for_base == "master"
18
+
19
+
# If these are all empty something has gone wrong, better to raise it in a comment
warn("It seems like you've added new tests to the library. If that's the case, please update the [XCTestManifests.swift](https://github.com/httpswift/swifter/blob/stable/XCode/Tests/XCTestManifests.swift) file running in your terminal the command `swift test --generate-linuxmain`.")
33
+
34
+
# This is a temporary warning to remove the entry for the failed test until we solve the issue in Linux
35
+
warn("If you ran the command `swift test --generate-linuxmain` in your terminal, please remove the line `testCase(IOSafetyTests.__allTests__IOSafetyTests),` from `public func __allTests() -> [XCTestCaseEntry]` in the bottom of the file. For more reference see [#366](https://github.com/httpswift/swifter/issues/366).")
0 commit comments