geet 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/geet +9 -2
  3. data/geet.gemspec +1 -1
  4. data/lib/geet/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9eaf080841cb2553b6ab9efc64d9c50ff128bcb4955f183cc4a1a5932b687898
4
- data.tar.gz: 7132c22bd53d293a352c7e87e30d81da99643948fe94d1dfd816557de930b2c2
3
+ metadata.gz: 857d9ed2126121c3309d1addf10d30f26a9186877ee28ee0ef883e1db8459c33
4
+ data.tar.gz: 806bc568c64c30b6113a5c0d1551451766f0343d3e1b9a38555cc7862d983668
5
5
  SHA512:
6
- metadata.gz: 81479273b4e67be68a8af7546925eff70612ea4fe5fdeb1d48b906038ebe5d61aefbfddaf895cc249d32f8b7cb2ac08ee1e186438f752473e9cb635ada3c9772
7
- data.tar.gz: e0d743736aefcba61d2b1d6cbff2fff949241378791246218bae10dbf410f1fe0ca0e48e1c1b462aa18d7e59061c12b3bdd216ef161a39f64cc533f56c7bb06b
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 pr_commits.size == 1
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-01-04'
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Geet
4
- VERSION = '0.5.0'
4
+ VERSION = '0.6.0'
5
5
  end
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.5.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-01-04 00:00:00.000000000 Z
11
+ date: 2022-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_scripting