github_to_trello 0.0.1 → 0.1.0
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/README.md +33 -14
- data/github_to_trello-0.0.1.gem +0 -0
- data/github_to_trello.gemspec +1 -1
- data/github_to_trello.sh +17 -0
- data/lib/github_to_trello/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e528de9a7db2c2af22f6acf465537a6544537bd
|
4
|
+
data.tar.gz: 021d708220d4c174e51d6990d8afd0120dd6016e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c5bad6b82be125718570e03d48ca07816cbacbc0d454e37ab3cb3345f52e7ecef597083b37a1f682543f2c4203e091a580c54d362ba21ce701d6468abc4b0ae
|
7
|
+
data.tar.gz: bcae15f004db55b3a68d7ce4e33216e0e28466b3cf8d83d895928affbb7c506a00fe04037e72dccebf18ed9ceef720cb02191433a728a835da200fac30d893a7
|
data/README.md
CHANGED
@@ -1,23 +1,24 @@
|
|
1
|
-
# USAGE
|
2
|
-
|
3
|
-
After completing the [setup](#setup), run `ruby github_to_trello.rb`
|
4
|
-
|
5
1
|
## Overview
|
6
|
-
|
7
|
-
Creates a list with the repo name of the specified trello board.
|
8
|
-
For each issue, create/update a trello card on that list.
|
2
|
+
Creates/updates trello cards for all open issues in specified github repo.
|
9
3
|
|
10
|
-
Running
|
11
|
-
- Creates a list for
|
4
|
+
Running this script/using this gem:
|
5
|
+
- Creates a list for specified repo (if a list for that repo is not already present)
|
12
6
|
- Adds or updates cards for all open issues or PRs in that repo
|
13
7
|
- Adds or updates color labels to cards based on date last updated
|
14
8
|
|
15
|
-
##
|
16
|
-
Running this script requires:
|
9
|
+
## Prerequisites
|
17
10
|
|
18
11
|
1. A trello account with access to the board you are populating with github issues.
|
12
|
+
2. A public key and token giving access to that trello account
|
13
|
+
- `PUBLIC_KEY` - Log into trello and visit https://trello.com/app-key
|
14
|
+
- `TOKEN` - Go to
|
15
|
+
https://trello.com/1/connect?key=...&name=MyApp&response_type=token&scope=read,write
|
16
|
+
(substituting the public key for ... a unique name for MyApp)
|
17
|
+
|
18
|
+
|
19
|
+
## USAGE 1: (running as a standalone script)
|
19
20
|
|
20
|
-
|
21
|
+
1. Create a .env file with with the following variables
|
21
22
|
defined:
|
22
23
|
- `BOARD_ID` - The ID of the trello board to add the cards to
|
23
24
|
- `REPOS` - The name(s) of the github repos to pull issues from
|
@@ -27,6 +28,24 @@ Running this script requires:
|
|
27
28
|
https://trello.com/1/connect?key=...&name=MyApp&response_type=token&scope=read,write
|
28
29
|
(substituting the public key for ... a unique name for MyApp)
|
29
30
|
|
31
|
+
2. Run `ruby github_to_trello.rb`
|
32
|
+
|
33
|
+
## USAGE 2: (gem)
|
34
|
+
|
35
|
+
`gem install github_to_trello`
|
36
|
+
|
37
|
+
```
|
38
|
+
require 'github_to_trello'
|
39
|
+
|
40
|
+
public_key = "your_public_key"
|
41
|
+
token = "your_token"
|
42
|
+
board_id "your_trello_board_id"
|
43
|
+
repo_name = "your_name/your_repo"
|
44
|
+
|
45
|
+
GithubToTrello.new(public_key, token, board_id, repo_name).update
|
46
|
+
```
|
47
|
+
|
48
|
+
|
30
49
|
Sites used for reference
|
31
|
-
http://www.sitepoint.com/customizing-trello-ruby/
|
32
|
-
https://github.com/jeremytregunna/ruby-trello/blob/master/lib/trello/card.rb
|
50
|
+
- http://www.sitepoint.com/customizing-trello-ruby/
|
51
|
+
- https://github.com/jeremytregunna/ruby-trello/blob/master/lib/trello/card.rb
|
Binary file
|
data/github_to_trello.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["chrissie.deist@gmail.com"]
|
11
11
|
spec.description = %q{A gem for converting github issues into trello cards}
|
12
12
|
spec.summary = %q{Pulls github issues from specified repos and automatically creates/populates trello lists with the repo names on a specified board.}
|
13
|
-
spec.homepage = "
|
13
|
+
spec.homepage = "https://github.com/chrissiedeist/github_to_trello"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
data/github_to_trello.sh
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'github_to_trello'
|
3
|
+
|
4
|
+
Dotenv.load
|
5
|
+
|
6
|
+
if __FILE__ == $PROGRAM_NAME
|
7
|
+
public_key = ENV["PUBLIC_KEY"]
|
8
|
+
token = ENV["TOKEN"]
|
9
|
+
board_id = ENV["BOARD_ID"]
|
10
|
+
repos = ENV["REPOS"].split(",")
|
11
|
+
|
12
|
+
repos.each do |repo|
|
13
|
+
puts "Updating repo: #{repo}"
|
14
|
+
GithubToTrello.new(public_key, token, board_id, repo).update
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_to_trello
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chrissie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -50,14 +50,16 @@ files:
|
|
50
50
|
- LICENSE.txt
|
51
51
|
- README.md
|
52
52
|
- Rakefile
|
53
|
+
- github_to_trello-0.0.1.gem
|
53
54
|
- github_to_trello.gemspec
|
55
|
+
- github_to_trello.sh
|
54
56
|
- lib/github_to_trello.rb
|
55
57
|
- lib/github_to_trello/github_gateway.rb
|
56
58
|
- lib/github_to_trello/trello_gateway.rb
|
57
59
|
- lib/github_to_trello/version.rb
|
58
60
|
- spec/github_gateway_spec.rb
|
59
61
|
- spec/trello_gateway_spec.rb
|
60
|
-
homepage:
|
62
|
+
homepage: https://github.com/chrissiedeist/github_to_trello
|
61
63
|
licenses:
|
62
64
|
- MIT
|
63
65
|
metadata: {}
|
@@ -77,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
79
|
version: '0'
|
78
80
|
requirements: []
|
79
81
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.
|
82
|
+
rubygems_version: 2.0.14
|
81
83
|
signing_key:
|
82
84
|
specification_version: 4
|
83
85
|
summary: Pulls github issues from specified repos and automatically creates/populates
|
@@ -85,4 +87,3 @@ summary: Pulls github issues from specified repos and automatically creates/popu
|
|
85
87
|
test_files:
|
86
88
|
- spec/github_gateway_spec.rb
|
87
89
|
- spec/trello_gateway_spec.rb
|
88
|
-
has_rdoc:
|