Skip to content

Commit 4241960

Browse files
Merge pull request #394 from woocommerce/release/add-pr-list-tooling
Add script to generate PR list
2 parents fa73e4e + 9fa7e89 commit 4241960

File tree

6 files changed

+151
-0
lines changed

6 files changed

+151
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,6 @@ fastlane/report.xml
7474
fastlane/Preview.html
7575
fastlane/screenshots
7676
fastlane/test_output
77+
fastlane/README.md
7778

7879
\.DS_Store

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ source 'https://rubygems.org' do
44
gem 'xcpretty-travis-formatter'
55
gem 'danger'
66
gem 'danger-swiftlint'
7+
gem 'dotenv'
78
end
9+
10+
11+
gem "fastlane"
12+
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
13+
eval_gemfile(plugins_path) if File.exist?(plugins_path)

Gemfile.lock

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
GIT
2+
remote: https://github.com/wordpress-mobile/release-toolkit
3+
revision: a569711c6bdd4026f1c3e929f743a42189bfba0c
4+
tag: 0.1.1
5+
specs:
6+
fastlane-plugin-wpmreleasetoolkit (0.1.1)
7+
18
GEM
29
remote: https://rubygems.org/
310
specs:
@@ -10,6 +17,7 @@ GEM
1017
addressable (2.5.2)
1118
public_suffix (>= 2.0.2, < 4.0)
1219
atomos (0.1.2)
20+
babosa (1.0.2)
1321
claide (1.0.2)
1422
claide-plugins (0.9.2)
1523
cork
@@ -48,7 +56,10 @@ GEM
4856
nap (>= 0.8, < 2.0)
4957
netrc (~> 0.11)
5058
cocoapods-try (1.1.0)
59+
colored (1.2)
5160
colored2 (3.1.2)
61+
commander-fastlane (4.4.6)
62+
highline (~> 1.7.2)
5263
concurrent-ruby (1.0.5)
5364
cork (0.3.0)
5465
colored2 (~> 3.1)
@@ -68,42 +79,147 @@ GEM
6879
danger
6980
rake (> 10)
7081
thor (~> 0.19)
82+
declarative (0.0.10)
83+
declarative-option (0.1.0)
84+
domain_name (0.5.20180417)
85+
unf (>= 0.0.5, < 1.0.0)
86+
dotenv (2.5.0)
87+
emoji_regex (0.1.1)
7188
escape (0.0.4)
89+
excon (0.62.0)
7290
faraday (0.15.2)
7391
multipart-post (>= 1.2, < 3)
92+
faraday-cookie_jar (0.0.6)
93+
faraday (>= 0.7.4)
94+
http-cookie (~> 1.0.0)
7495
faraday-http-cache (1.3.1)
7596
faraday (~> 0.8)
97+
faraday_middleware (0.12.2)
98+
faraday (>= 0.7.4, < 1.0)
99+
fastimage (2.1.4)
100+
fastlane (2.97.0)
101+
CFPropertyList (>= 2.3, < 4.0.0)
102+
addressable (>= 2.3, < 3.0.0)
103+
babosa (>= 1.0.2, < 2.0.0)
104+
bundler (>= 1.12.0, < 2.0.0)
105+
colored
106+
commander-fastlane (>= 4.4.6, < 5.0.0)
107+
dotenv (>= 2.1.1, < 3.0.0)
108+
emoji_regex (~> 0.1)
109+
excon (>= 0.45.0, < 1.0.0)
110+
faraday (~> 0.9)
111+
faraday-cookie_jar (~> 0.0.6)
112+
faraday_middleware (~> 0.9)
113+
fastimage (>= 2.1.0, < 3.0.0)
114+
gh_inspector (>= 1.1.2, < 2.0.0)
115+
google-api-client (>= 0.21.2, < 0.22.0)
116+
highline (>= 1.7.2, < 2.0.0)
117+
json (< 3.0.0)
118+
mini_magick (~> 4.5.1)
119+
multi_json
120+
multi_xml (~> 0.5)
121+
multipart-post (~> 2.0.0)
122+
plist (>= 3.1.0, < 4.0.0)
123+
public_suffix (~> 2.0.0)
124+
rubyzip (>= 1.2.1, < 2.0.0)
125+
security (= 0.1.3)
126+
simctl (~> 1.6.3)
127+
slack-notifier (>= 2.0.0, < 3.0.0)
128+
terminal-notifier (>= 1.6.2, < 2.0.0)
129+
terminal-table (>= 1.4.5, < 2.0.0)
130+
tty-screen (>= 0.6.3, < 1.0.0)
131+
tty-spinner (>= 0.8.0, < 1.0.0)
132+
word_wrap (~> 1.0.0)
133+
xcodeproj (>= 1.5.7, < 2.0.0)
134+
xcpretty (>= 0.2.4, < 1.0.0)
135+
xcpretty-travis-formatter (>= 0.0.3)
76136
fourflusher (2.0.1)
77137
fuzzy_match (2.0.4)
78138
gh_inspector (1.1.3)
79139
git (1.4.0)
140+
google-api-client (0.21.2)
141+
addressable (~> 2.5, >= 2.5.1)
142+
googleauth (>= 0.5, < 0.7.0)
143+
httpclient (>= 2.8.1, < 3.0)
144+
mime-types (~> 3.0)
145+
representable (~> 3.0)
146+
retriable (>= 2.0, < 4.0)
147+
googleauth (0.6.7)
148+
faraday (~> 0.12)
149+
jwt (>= 1.4, < 3.0)
150+
memoist (~> 0.16)
151+
multi_json (~> 1.11)
152+
os (>= 0.9, < 2.0)
153+
signet (~> 0.7)
154+
highline (1.7.10)
155+
http-cookie (1.0.3)
156+
domain_name (~> 0.5)
157+
httpclient (2.8.3)
80158
i18n (0.9.5)
81159
concurrent-ruby (~> 1.0)
160+
json (2.1.0)
161+
jwt (2.1.0)
82162
kramdown (1.17.0)
163+
memoist (0.16.0)
164+
mime-types (3.2.2)
165+
mime-types-data (~> 3.2015)
166+
mime-types-data (3.2018.0812)
167+
mini_magick (4.5.1)
83168
minitest (5.11.3)
84169
molinillo (0.6.5)
170+
multi_json (1.13.1)
171+
multi_xml (0.6.0)
85172
multipart-post (2.0.0)
86173
nanaimo (0.2.5)
87174
nap (1.1.0)
175+
naturally (2.2.0)
88176
netrc (0.11.0)
89177
no_proxy_fix (0.1.2)
90178
octokit (4.9.0)
91179
sawyer (~> 0.8.0, >= 0.5.3)
92180
open4 (1.3.4)
181+
os (1.0.0)
182+
plist (3.4.0)
93183
public_suffix (2.0.5)
94184
rake (12.0.0)
185+
representable (3.0.4)
186+
declarative (< 0.1.0)
187+
declarative-option (< 0.2.0)
188+
uber (< 0.2.0)
189+
retriable (3.1.2)
95190
rouge (1.11.1)
96191
ruby-macho (1.1.0)
192+
rubyzip (1.2.2)
97193
sawyer (0.8.1)
98194
addressable (>= 2.3.5, < 2.6)
99195
faraday (~> 0.8, < 1.0)
196+
security (0.1.3)
197+
signet (0.11.0)
198+
addressable (~> 2.3)
199+
faraday (~> 0.9)
200+
jwt (>= 1.5, < 3.0)
201+
multi_json (~> 1.10)
202+
simctl (1.6.5)
203+
CFPropertyList
204+
naturally
205+
slack-notifier (2.3.2)
206+
terminal-notifier (1.8.0)
100207
terminal-table (1.8.0)
101208
unicode-display_width (~> 1.1, >= 1.1.1)
102209
thor (0.20.0)
103210
thread_safe (0.3.6)
211+
tty-cursor (0.6.0)
212+
tty-screen (0.6.5)
213+
tty-spinner (0.8.0)
214+
tty-cursor (>= 0.5.0)
104215
tzinfo (1.2.5)
105216
thread_safe (~> 0.1)
217+
uber (0.1.0)
218+
unf (0.1.4)
219+
unf_ext
220+
unf_ext (0.0.7.5)
106221
unicode-display_width (1.4.0)
222+
word_wrap (1.0.0)
107223
xcodeproj (1.5.9)
108224
CFPropertyList (>= 2.3.3, < 4.0)
109225
atomos (~> 0.1.2)
@@ -122,6 +238,9 @@ DEPENDENCIES
122238
cocoapods (~> 1.5.2)!
123239
danger!
124240
danger-swiftlint!
241+
dotenv!
242+
fastlane
243+
fastlane-plugin-wpmreleasetoolkit!
125244
rake!
126245
xcpretty-travis-formatter!
127246

fastlane/Fastfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
default_platform(:ios)
2+
fastlane_require 'dotenv'
3+
4+
platform :ios do
5+
########################################################################
6+
# Environment
7+
########################################################################
8+
Dotenv.load('~/.wcios-env.default')
9+
ENV[GHHELPER_REPO="woocommerce/woocommerce-iOS"]
10+
11+
########################################################################
12+
# Helper Lanes
13+
########################################################################
14+
desc "Get a list of pull request from `start_tag` to the current state"
15+
lane :get_pullrequests_list do | options |
16+
get_prs_list(repository:GHHELPER_REPO, start_tag:"#{options[:start_tag]}", report_path:"#{File.expand_path('~')}/wcios_prs_list.txt")
17+
end
18+
19+
end

fastlane/Pluginfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Autogenerated by fastlane
2+
#
3+
# Ensure this file is checked in to source control!
4+
5+
gem 'fastlane-plugin-wpmreleasetoolkit', git: 'https://github.com/wordpress-mobile/release-toolkit', :tag => '0.1.1'

fastlane/env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GHHELPER_ACCESS=<GitHub access token>

0 commit comments

Comments
 (0)