heroku-review-apps-manager 0.10.0 → 0.11.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 +1 -1
- data/lib/heroku/review/apps/manager/cli.rb +6 -4
- data/lib/heroku/review/apps/manager/version.rb +1 -1
- data/renovate.json5 +14 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b0fab9f465e1cacdd0733054dfb91df90c7b050f52ef4c54f47dcbbe601c350
|
|
4
|
+
data.tar.gz: 926e72b757df7ed86a18c4dc70f8d4fb048fd1aadaa173b80be62c200cae3e34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a8bf0e9d171ef42ac49fd4bed4aac7df94613780071653a5238fd247420482f123d688515aba3b5a11ca8f3520f98dcc9b7e8d2a556e03dad749c9c53afb052
|
|
7
|
+
data.tar.gz: 367181667c008f17a847359769a8f6a4d398ca71f71fc4f5717daccfb4cff3888a7d050e1502baabcb3da3d683b9477fb7bbc6d0fbec186418764d6a31faa06e
|
data/README.md
CHANGED
|
@@ -45,7 +45,7 @@ Your GitHub personal access token (required for creating review apps). You can c
|
|
|
45
45
|
|
|
46
46
|
This tool requires the following repository permissions:
|
|
47
47
|
|
|
48
|
-
- [Contents: Read
|
|
48
|
+
- [Contents: Read-only](https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens?apiVersion=2022-11-28#repository-permissions-for-contents)
|
|
49
49
|
- [Pull requests: Read-only](https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens?apiVersion=2022-11-28#repository-permissions-for-pull-requests)
|
|
50
50
|
|
|
51
51
|
```bash
|
|
@@ -166,25 +166,27 @@ module Heroku
|
|
|
166
166
|
pipeline = platform_api.pipeline.info(pipeline_name)
|
|
167
167
|
pipeline_id = pipeline["id"]
|
|
168
168
|
|
|
169
|
-
github_archive_link = octokit.archive_link(repository, ref: branch)
|
|
170
|
-
|
|
171
169
|
pull_requests = octokit.pull_requests(
|
|
172
170
|
repository,
|
|
173
|
-
state: "
|
|
171
|
+
state: "open",
|
|
174
172
|
head: "#{org}:#{branch}"
|
|
175
173
|
)
|
|
176
174
|
pull_request = pull_requests.first
|
|
177
175
|
|
|
176
|
+
say_error "Pull Request does not exist.", Thor::Shell::Color::YELLOW and return if pull_request.nil?
|
|
177
|
+
|
|
178
178
|
apps = platform_api.review_app.list(pipeline_id)
|
|
179
179
|
app = apps.filter { |app| app["branch"] == branch }.first
|
|
180
180
|
|
|
181
181
|
say_error "Review app already exists.", Thor::Shell::Color::YELLOW and return unless app.nil?
|
|
182
182
|
|
|
183
|
+
github_archive_link = octokit.archive_link(repository, ref: branch)
|
|
184
|
+
|
|
183
185
|
begin
|
|
184
186
|
review_app = platform_api.review_app.create(
|
|
185
187
|
branch: branch,
|
|
186
188
|
pipeline: pipeline_id,
|
|
187
|
-
source_blob: { url: github_archive_link, version:
|
|
189
|
+
source_blob: { url: github_archive_link, version: pull_request[:head][:sha] },
|
|
188
190
|
pr_number: pull_request[:number]
|
|
189
191
|
)
|
|
190
192
|
rescue Excon::Error::Conflict
|
data/renovate.json5
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
extends: ["config:best-practices"],
|
|
3
|
+
minimumReleaseAge: "7 days",
|
|
4
|
+
automerge: true,
|
|
5
|
+
platformAutomerge: true,
|
|
6
|
+
configMigration: true,
|
|
7
|
+
lockFileMaintenance: {
|
|
8
|
+
enabled: true,
|
|
9
|
+
},
|
|
10
|
+
major: {
|
|
11
|
+
automerge: false,
|
|
12
|
+
},
|
|
13
|
+
dependencyDashboard: true,
|
|
14
|
+
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: heroku-review-apps-manager
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kakudooo
|
|
@@ -156,6 +156,7 @@ files:
|
|
|
156
156
|
- lib/heroku/review/apps/manager.rb
|
|
157
157
|
- lib/heroku/review/apps/manager/cli.rb
|
|
158
158
|
- lib/heroku/review/apps/manager/version.rb
|
|
159
|
+
- renovate.json5
|
|
159
160
|
- sig/heroku/review/apps/manager.rbs
|
|
160
161
|
homepage: https://github.com/kakudou3/heroku-review-apps-manager
|
|
161
162
|
licenses:
|
|
@@ -178,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
178
179
|
- !ruby/object:Gem::Version
|
|
179
180
|
version: '0'
|
|
180
181
|
requirements: []
|
|
181
|
-
rubygems_version: 4.0.
|
|
182
|
+
rubygems_version: 4.0.13
|
|
182
183
|
specification_version: 4
|
|
183
184
|
summary: A CLI tool to manage Heroku Review Apps
|
|
184
185
|
test_files: []
|