FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
danger-cpp-example/Dangerfile at master · PCMSolver/danger-cpp-example · GitHub
PCMSolver
danger-cpp-example
Repository navigation
Code
Issues
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
danger-cpp-example
/
Dangerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (19 loc) · 950 Bytes
Breadcrumbs
danger-cpp-example
/
Dangerfile
Copy path
File metadata and controls
25 lines (19 loc) · 950 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Adapted from https://github.com/capistrano/danger/blob/master/Dangerfile
# Q: What is a Dangerfile, anyway? A: See http://danger.systems/
# ------------------------------------------------------------------------------
# Additional pull request data
# ------------------------------------------------------------------------------
pr_number
=
github
.
pr_json
[
"number"
]
pr_url
=
github
.
pr_json
[
"_links"
]
[
"html"
]
[
"href"
]
# Sometimes its a README fix, or something like that - which isn't relevant for
# including in a CHANGELOG for example
declared_trivial
=
github
.
pr_title
.
include?
"#trivial"
# Just to let people know
warn
(
"PR is classed as Work in Progress"
)
if
github
.
pr_title
.
include?
"[WIP]"
# 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
commit_lint
.
check
lgtm
.
check_lgtm
the_coding_love
.
random
Back
|
FazBrowse Home
|
New Git URL