This repository has been archived by the owner on Jan 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.md.hbs
57 lines (39 loc) · 1.56 KB
/
README.md.hbs
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# wearereasonablepeople Peril Settings
Settings and danger rules for the [wearereasonablepeople organization](https://github.com/wearereasonablepeople).
**WARN**: Update [`README.hbs`]() instead of this file, it is generated with `npm run readme`
# Rules
This is the list of current rules in this repository:
<dl>
{{#functions}}
<dt>
<a href="org/{{meta.filename}}#{{meta.lineno}}"><strong>{{name}}</strong></a>
</dt>
<dd>
{{!-- Don't escape the description so it can include raw markdown/html --}}
{{{description}}}
</dd>
{{/functions}}
</dl>
# Danger
[Danger JS][] runs a set of rules against PRs to enforce conventions around code review.
In order to run the rules on your machine against an existing PR, do the following:
1. Go to your [github settings](https://github.com/settings/tokens) and generate a token with `repo` access
2. Add it to the `DANGER_GITHUB_API_TOKEN` env var:
```bash
export DANGER_GITHUB_API_TOKEN='your-token-here'
```
3. `npx danger pr {https://github.com/wearereasonablepeople/{repo}/pull/{pr number}`
# Peril
[Peril][] is the hosted version of Danger and our preferred way of running org-wide checks.
Peril allows for some interesting things:
- Centralization of danger rules
- Single point of management for the github bot's token.
- Repo to to put RFCs
# Updating Danger JS rules
See the [contribution guide](./CONTRIBUTING.md#updating-rules)
# Links
- [Peril][]
- [Danger JS][]
- [Peril for Orgs](https://github.com/danger/peril/blob/master/docs/setup_for_org.md)
[Peril]: https://github.com/danger/peril
[Danger JS]: http://danger.systems/js/