saddler-reporter-github 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +6 -0
- data/README.md +19 -2
- data/bin/conventional-changelog +17 -0
- data/lib/saddler/reporter/github/client.rb +2 -0
- data/lib/saddler/reporter/github/version.rb +1 -1
- data/saddler-reporter-github.gemspec +12 -1
- metadata +4 -4
- data/.tachikoma.yml +0 -1
- data/.travis.yml +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d21d59d7dbb4932a38fae5d5fe98d343872b2d62
|
|
4
|
+
data.tar.gz: 8b0ef6284a246a11b7a3ebc9eaabb2348f4ab22e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab74c0ef9a04a7bd18369b19ad8075a1b4baa75b393af31195d3b828362e9de0fd8aa741145d99fb07d434190c746a10e3eb9e3472b55bf459a506b6fdd7fb19
|
|
7
|
+
data.tar.gz: 1aa6cd733e1afd7971f794fd4e5a917b0aa574a5c8e5c8d547b633fe0fbb7b87e21ade42dd73d6a06e0fbe9ec067786a7ba9219229793a83879c1d8c5ab66524
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
This provides saddler reporters for GitHub.
|
|
9
9
|
|
|
10
|
-
* CommitComment
|
|
11
|
-
* CommitReviewComment
|
|
12
10
|
* PullRequestComment
|
|
13
11
|
* PullRequestReviewComment
|
|
12
|
+
* CommitComment(under construction)
|
|
13
|
+
* CommitReviewComment(under construction)
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
@@ -22,6 +22,23 @@ $ saddler report \
|
|
|
22
22
|
|
|
23
23
|
like this.
|
|
24
24
|
|
|
25
|
+
## Requirement
|
|
26
|
+
|
|
27
|
+
Set `GITHUB_ACCESS_TOKEN=__your_access_token__` to your environment variable.
|
|
28
|
+
|
|
29
|
+
### TravisCI
|
|
30
|
+
|
|
31
|
+
[Travis CI: Encryption keys](http://docs.travis-ci.com/user/encryption-keys/)
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
$ gem install travis
|
|
35
|
+
$ travis encrypt -r <owner_name>/<repos_name> "GITHUB_ACCESS_TOKEN=<github_token>"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### CircleCI
|
|
39
|
+
|
|
40
|
+
[Environment variables - CircleCI](https://circleci.com/docs/environment-variables)
|
|
41
|
+
|
|
25
42
|
## Installation
|
|
26
43
|
|
|
27
44
|
Add this line to your application's Gemfile:
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
var fs = require('fs');
|
|
4
|
+
var execSync = require('child_process').execSync;
|
|
5
|
+
var conventionalChangelog = require('conventional-changelog');
|
|
6
|
+
|
|
7
|
+
var version = "" + execSync('ruby -e \'require "./lib/saddler/reporter/github/version"; print Saddler::Reporter::Github::VERSION\'');
|
|
8
|
+
|
|
9
|
+
conventionalChangelog({
|
|
10
|
+
repository: 'https://github.com/packsaddle/ruby-saddler-reporter-github',
|
|
11
|
+
version: version
|
|
12
|
+
}, function(err, log) {
|
|
13
|
+
fs.writeFile('CHANGELOG.md', log, function(err){
|
|
14
|
+
console.log(err);
|
|
15
|
+
});
|
|
16
|
+
console.log('Here is your changelog!', log);
|
|
17
|
+
});
|
|
@@ -14,7 +14,18 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.homepage = 'https://github.com/packsaddle/ruby-saddler-reporter-github'
|
|
15
15
|
spec.license = 'MIT'
|
|
16
16
|
|
|
17
|
-
spec.files =
|
|
17
|
+
spec.files = \
|
|
18
|
+
`git ls-files -z`
|
|
19
|
+
.split("\x0")
|
|
20
|
+
.reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
21
|
+
.reject do |f|
|
|
22
|
+
[
|
|
23
|
+
'.travis.yml',
|
|
24
|
+
'circle.yml',
|
|
25
|
+
'.tachikoma.yml',
|
|
26
|
+
'package.json'
|
|
27
|
+
].include?(f)
|
|
28
|
+
end
|
|
18
29
|
spec.bindir = 'exe'
|
|
19
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
20
31
|
spec.require_paths = ['lib']
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: saddler-reporter-github
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sanemat
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: octokit
|
|
@@ -117,14 +117,14 @@ extra_rdoc_files: []
|
|
|
117
117
|
files:
|
|
118
118
|
- ".gitignore"
|
|
119
119
|
- ".rubocop.yml"
|
|
120
|
-
-
|
|
121
|
-
- ".travis.yml"
|
|
120
|
+
- CHANGELOG.md
|
|
122
121
|
- CODE_OF_CONDUCT.md
|
|
123
122
|
- Gemfile
|
|
124
123
|
- LICENSE.txt
|
|
125
124
|
- README.md
|
|
126
125
|
- Rakefile
|
|
127
126
|
- bin/console
|
|
127
|
+
- bin/conventional-changelog
|
|
128
128
|
- bin/setup
|
|
129
129
|
- lib/saddler/reporter/github.rb
|
|
130
130
|
- lib/saddler/reporter/github/client.rb
|
data/.tachikoma.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
strategy: 'none'
|