-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1241 from MichMich/develop
Release 2.3.0
- Loading branch information
Showing
65 changed files
with
6,693 additions
and
847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { danger, fail, warn } from "danger" | ||
|
||
// Check if the CHANGELOG.md file has been edited | ||
// Fail the build and post a comment reminding submitters to do so if it wasn't changed | ||
if (!danger.git.modified_files.includes("CHANGELOG.md")) { | ||
warn("Please include an updated `CHANGELOG.md` file.<br>This way we can keep track of all the contributions.") | ||
} | ||
|
||
// Check if the PR request is send to the master branch. | ||
// This should only be done by MichMich. | ||
if (danger.github.pr.base.ref === "master" && danger.github.pr.user.login !== "MichMich") { | ||
// Check if the PR body or title includes the text: #accepted. | ||
// If not, the PR will fail. | ||
if ((danger.github.pr.body + danger.github.pr.title).includes("#accepted")) { | ||
fail("Please send all your pull requests to the `develop` branch.<br>Pull requests on the `master` branch will not be accepted.") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.