geet 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/geet +9 -2
- data/geet.gemspec +1 -1
- data/lib/geet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 857d9ed2126121c3309d1addf10d30f26a9186877ee28ee0ef883e1db8459c33
|
4
|
+
data.tar.gz: 806bc568c64c30b6113a5c0d1551451766f0343d3e1b9a38555cc7862d983668
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ad7e819ddb0eabebd82a175ad1b6acb7a84a5c6d6c99fad3c60adf12b5276c000d607fb6d64267dbaeeac5df61b9f2b02da4d3b1032ec3b4d3ad03755eddaa8
|
7
|
+
data.tar.gz: c8672aa57e299310a0e3b15ef5d558fe3048c86ef90bc708d51795dba007bbb2e28bc7804f4f08fe014cff621327529cf34a30b2fa86aadcf03b853db9672020
|
data/bin/geet
CHANGED
@@ -71,6 +71,8 @@ class GeetLauncher
|
|
71
71
|
options = default_to_manual_selection(options, :labels, :milestone, :reviewers)
|
72
72
|
|
73
73
|
Services::CreatePr.new(repository).execute(title, description, **options)
|
74
|
+
|
75
|
+
File.delete(SUMMARY_BACKUP)
|
74
76
|
when PR_LIST_COMMAND
|
75
77
|
Services::ListPrs.new(repository).execute
|
76
78
|
when PR_MERGE_COMMAND
|
@@ -94,10 +96,15 @@ class GeetLauncher
|
|
94
96
|
git = Utils::GitClient.new
|
95
97
|
pr_commits = git.cherry(base: base)
|
96
98
|
|
99
|
+
cancel_pr_help = "In order to cancel the PR creation, delete the description above.\n"
|
100
|
+
|
97
101
|
summary =
|
98
|
-
if
|
102
|
+
if File.exists?(SUMMARY_BACKUP)
|
103
|
+
prepopulated_summary = IO.read(SUMMARY_BACKUP)
|
104
|
+
|
105
|
+
Commandline::Editor.new.edit_content(content: prepopulated_summary, help: SUMMARY_TEMPLATE + cancel_pr_help)
|
106
|
+
elsif pr_commits.size == 1
|
99
107
|
prepopulated_summary = git.show_description('HEAD')
|
100
|
-
cancel_pr_help = "In order to cancel the PR creation, delete the description above.\n"
|
101
108
|
|
102
109
|
Commandline::Editor.new.edit_content(content: prepopulated_summary, help: SUMMARY_TEMPLATE + cancel_pr_help)
|
103
110
|
else
|
data/geet.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.platform = Gem::Platform::RUBY
|
11
11
|
s.required_ruby_version = '>= 2.3.0'
|
12
12
|
s.authors = ['Saverio Miroddi']
|
13
|
-
s.date = '2022-
|
13
|
+
s.date = '2022-06-19'
|
14
14
|
s.email = ['saverio.pub2@gmail.com']
|
15
15
|
s.homepage = 'https://github.com/saveriomiroddi/geet'
|
16
16
|
s.summary = 'Commandline interface for performing SCM host operations, eg. create a PR on GitHub'
|
data/lib/geet/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saverio Miroddi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simple_scripting
|