Skip to content

Commit bc33174

Browse files
committed
Integrate danger (#9)
* Integrate `danger` * Update `CHANGELOG.md`
1 parent e1a8b64 commit bc33174

5 files changed

Lines changed: 101 additions & 0 deletions

File tree

.github/workflows/danger.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Danger
2+
3+
on:
4+
pull_request:
5+
types: [synchronize, opened, reopened, labeled, unlabeled, edited]
6+
7+
env:
8+
LC_CTYPE: en_US.UTF-8
9+
LANG: en_US.UTF-8
10+
11+
jobs:
12+
run-danger:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: ruby setup
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: 3.1.4
19+
bundler-cache: true
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
- name: Setup gems
23+
run: |
24+
gem install bundler
25+
bundle install --clean --path vendor/bundle
26+
- name: danger
27+
env:
28+
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
29+
run: bundle exec danger --verbose

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
- Integrate `danger`
6+
- Added in Pull Request [#9](https://github.com/space-code/validator/pull/9).
57
- Add an issue template & a pull request template
68
- Added in Pull Request [#8](https://github.com/space-code/validator/pull/8).
79
- Update GitHub Action Configuration

Dangerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
danger.import_dangerfile(github: 'space-code/dangerfile')

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem 'danger'

Gemfile.lock

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.8.6)
5+
public_suffix (>= 2.0.2, < 6.0)
6+
claide (1.1.0)
7+
claide-plugins (0.9.2)
8+
cork
9+
nap
10+
open4 (~> 1.3)
11+
colored2 (3.1.2)
12+
cork (0.3.0)
13+
colored2 (~> 3.1)
14+
danger (9.4.2)
15+
claide (~> 1.0)
16+
claide-plugins (>= 0.9.2)
17+
colored2 (~> 3.1)
18+
cork (~> 0.1)
19+
faraday (>= 0.9.0, < 3.0)
20+
faraday-http-cache (~> 2.0)
21+
git (~> 1.13)
22+
kramdown (~> 2.3)
23+
kramdown-parser-gfm (~> 1.0)
24+
no_proxy_fix
25+
octokit (>= 4.0)
26+
terminal-table (>= 1, < 4)
27+
faraday (2.9.0)
28+
faraday-net_http (>= 2.0, < 3.2)
29+
faraday-http-cache (2.5.0)
30+
faraday (>= 0.8)
31+
faraday-net_http (3.1.0)
32+
net-http
33+
git (1.19.0)
34+
addressable (~> 2.8)
35+
rchardet (~> 1.8)
36+
kramdown (2.4.0)
37+
rexml
38+
kramdown-parser-gfm (1.1.0)
39+
kramdown (~> 2.0)
40+
nap (1.1.0)
41+
net-http (0.4.1)
42+
uri
43+
no_proxy_fix (0.1.2)
44+
octokit (8.0.0)
45+
faraday (>= 1, < 3)
46+
sawyer (~> 0.9)
47+
open4 (1.3.4)
48+
public_suffix (5.0.4)
49+
rchardet (1.8.0)
50+
rexml (3.2.6)
51+
sawyer (0.9.2)
52+
addressable (>= 2.3.5)
53+
faraday (>= 0.17.3, < 3)
54+
terminal-table (3.0.2)
55+
unicode-display_width (>= 1.1.1, < 3)
56+
unicode-display_width (2.5.0)
57+
uri (0.13.0)
58+
59+
PLATFORMS
60+
x86_64-darwin-22
61+
62+
DEPENDENCIES
63+
danger
64+
65+
BUNDLED WITH
66+
2.4.21

0 commit comments

Comments
 (0)