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
warn("PR is classed as Work in Progress.")ifgithub.pr_title.include?"[WIP]"
6
+
7
+
# ensure that the PR have an assignee
8
+
warn"This PR does not have any assignees yet."unlessgithub.pr_json["assignee"]
9
+
10
+
# Warn when there is a big PR
11
+
warn("Big PR")ifgit.lines_of_code > 500
12
+
13
+
# ensure there is a summary for a PR
14
+
fail"Please provide a summary in the Pull Request description."ifgithub.pr_body.length < 5
15
+
16
+
# Changelog entries are required for changes to library files.
17
+
fail("Please include a CHANGELOG entry. \nYou 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")
18
+
19
+
# Don't accept PR on master for now
20
+
fail"Please re-submit this PR to stable, you're trying to merge the PR on master."ifgithub.branch_for_base == "master"
21
+
22
+
# If these are all empty something has gone wrong, better to raise it in a comment
fail("It seems like new tests files were added to the library. 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`.")
36
+
message"Please after you run the command in your terminal remove the `testCase(IOSafetyTests.__allTests__IOSafetyTests),` from the function `public func __allTests() -> [XCTestCaseEntry]` in the bottom of the file."
0 commit comments