gitsflow 0.8.2.beta → 0.8.3.release100620241155
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/.tool-versions +1 -0
- data/README.md +20 -43
- data/gitsflow.gemspec +1 -1
- data/lib/GitLab/gitlab.rb +1 -1
- data/lib/GitLab/merge_request.rb +2 -2
- data/lib/config.rb +1 -1
- data/lib/sflow/sflow.rb +5 -5
- data/lib/sflow/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 285bd27f31714bebf8bc5f84f8b2504369f38296cc715f0b5b4511ef1c47d4fd
|
4
|
+
data.tar.gz: 90e181b2af1a45f1f8ef34c524f769e3d38a5484a9e88cc0c2945e1a7983684b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 953346ee898e87e0b8bccd5ec21cac3dea00e4b7d1b88479417e695bfcfff484c8743d38a4159a7c43808c1bb5b1421515b56e4037e8f6c324ae801ea9ba2977
|
7
|
+
data.tar.gz: ee6fa9b15b1291ce0c6882a769ec859bad6fed48ae0eff68ac2dc2edf546cf961fc651883b9eea386e73130d3e3e34f5529c0f3901dc9a92803dc6412b93b586
|
data/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby 2.7.6
|
data/README.md
CHANGED
@@ -1,62 +1,39 @@
|
|
1
1
|
[](https://badge.fury.io/rb/gitsflow)
|
2
2
|
[](https://travis-ci.org/carloswherbet/GitSFlow)
|
3
|
-
# GitSFlow 0.8.
|
4
|
-
GitSFlow
|
5
|
-
## Installation
|
3
|
+
# GitSFlow 0.8.3
|
4
|
+
GitSFlow é uma ferramenta integrada ao Gitlab que contém um modelo de fluxo de trabalho inspirado no Git Flow.
|
6
5
|
|
6
|
+
[Veja o fluxo de trabalho](#fluxo)
|
7
7
|
|
8
|
-
|
9
|
-
gem 'gitsflow', group: :development
|
10
|
-
```
|
11
|
-
|
12
|
-
$ gem install gitsflow
|
13
|
-
|
14
|
-
And in your application's:
|
15
|
-
|
16
|
-
$ sflow install
|
17
|
-
-> It will install the git alias
|
18
|
-
|
19
|
-
|
20
|
-
## Flow Sugestion
|
8
|
+
[Manual do Desenvolvedor](#dev)
|
21
9
|
|
10
|
+
## Instalação
|
22
11
|
|
23
|
-
|
24
|
-
|
25
|
-
$ git sflow config
|
26
|
-
or
|
27
|
-
$ sflow config
|
28
|
-
|
29
|
-
In your project create or update file .env with variables below:
|
30
|
-
|
31
|
-
```shell
|
32
|
-
GITLAB_PROJECT_ID=
|
33
|
-
GITLAB_TOKEN=
|
34
|
-
GITLAB_URL_API=https://gitlab.com/api/v4
|
35
|
-
GITLAB_EMAIL=
|
36
|
-
GITLAB_LISTS=To Do,Doing,Next Release,Staging
|
37
|
-
GITLAB_NEXT_RELEASE_LIST=Next Release
|
38
|
-
GIT_BRANCH_MASTER=master
|
39
|
-
GIT_BRANCH_DEVELOP=develop
|
40
|
-
GIT_BRANCHES_STAGING=staging_1,staging_2
|
41
|
-
SFLOW_TEMPLATE_RELEASE=Version {version} - {date}
|
42
|
-
SFLOW_TEMPLATE_RELEASE_DATE_FORMAT=Y/m/d
|
43
|
-
|
12
|
+
```ruby
|
13
|
+
gem install gitsflow
|
44
14
|
```
|
45
15
|
|
46
|
-
##
|
16
|
+
## Exemplo de uso
|
47
17
|
|
48
|
-
For help:
|
49
18
|
```bash
|
50
|
-
|
19
|
+
sflow
|
51
20
|
```
|
21
|
+
<a name="fluxo"></a>
|
22
|
+
## Fluxo de Trabalho
|
23
|
+
|
52
24
|
## Uninstall
|
53
|
-
|
25
|
+
```bash
|
26
|
+
gem uninstall gitsflow
|
27
|
+
```
|
28
|
+
|
29
|
+
<a name="dev"></a>
|
30
|
+
## Desenvolvedor
|
54
31
|
|
55
|
-
##
|
32
|
+
## Criando um GitLab Token
|
56
33
|
|
57
34
|

|
58
35
|
|
59
|
-
##
|
36
|
+
## Contribuições
|
60
37
|
|
61
38
|
Bug reports and pull requests are welcome on GitHub at https://github.com/carloswherbet/GitSFlow. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
62
39
|
|
data/gitsflow.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.date = '2020-03-20'
|
8
8
|
s.bindir = 'bin'
|
9
9
|
s.homepage = 'https://github.com/carloswherbet/GitSFlow'
|
10
|
-
s.summary =
|
10
|
+
s.summary = 'GitSFlow is a Gitlab-integrated tool that contains a workflow model inspired by Git FLOW.'
|
11
11
|
s.authors = ['Carlos Wherbet']
|
12
12
|
s.email = 'carloswherbet@gmail.com'
|
13
13
|
s.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
|
data/lib/GitLab/gitlab.rb
CHANGED
@@ -78,7 +78,7 @@ module GitLab
|
|
78
78
|
# Create lists
|
79
79
|
$GITLAB_LISTS.each do |list|
|
80
80
|
label = gitlab_labels.detect { |i| i['name'] == list }
|
81
|
-
request_post("projects/#{$GITLAB_PROJECT_ID}/boards/#{board_gitsflow['id']}/lists", { label_id: label['id'] })
|
81
|
+
request_post("projects/#{$GITLAB_PROJECT_ID}/boards/#{board_gitsflow['id']}/lists", { label_id: label['id'] })
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
data/lib/GitLab/merge_request.rb
CHANGED
@@ -85,8 +85,8 @@ class GitLab::MergeRequest
|
|
85
85
|
@obj_gitlab = GitLab.request_post(url, {
|
86
86
|
source_branch: @source_branch,
|
87
87
|
target_branch: @target_branch,
|
88
|
-
title
|
89
|
-
description
|
88
|
+
title: title,
|
89
|
+
description: description,
|
90
90
|
labels: @labels,
|
91
91
|
assignee_id: GitLab::User.me['id'].to_i,
|
92
92
|
reviewer_ids: [assignee_id.to_i]
|
data/lib/config.rb
CHANGED
@@ -9,7 +9,7 @@ require 'tty_integration.rb'
|
|
9
9
|
module Config
|
10
10
|
extend TtyIntegration
|
11
11
|
def self.init
|
12
|
-
project_name = cmd.run!("git remote -v | head -n1 | awk '{print $2}' | sed -e 's,.*:\(.*/\)\?,,' -e 's/\.git$//'").out
|
12
|
+
project_name = cmd.run!("git remote -v | grep origin | head -n1 | awk '{print $2}' | sed -e 's,.*:\(.*/\)\?,,' -e 's/\.git$//'").out
|
13
13
|
file = "#{Dir.home}/.config/gitsflow/#{project_name.gsub("\n","")}/config.yml"
|
14
14
|
config = TTY::Config.new
|
15
15
|
config.filename = file
|
data/lib/sflow/sflow.rb
CHANGED
@@ -348,12 +348,11 @@ module SFlow
|
|
348
348
|
end
|
349
349
|
|
350
350
|
def self.release_finish(branch_name)
|
351
|
-
version = branch_name
|
351
|
+
version = branch_name.gsub(/(.*)\//, '')
|
352
352
|
|
353
353
|
new_labels = []
|
354
354
|
|
355
|
-
|
356
|
-
issue_release = GitLab::Issue.find_by_branch(release_branch)
|
355
|
+
issue_release = GitLab::Issue.find_by_branch(branch_name)
|
357
356
|
|
358
357
|
Git.merge issue_release.branch, $GIT_BRANCH_DEVELOP
|
359
358
|
Git.push $GIT_BRANCH_DEVELOP
|
@@ -575,8 +574,9 @@ module SFlow
|
|
575
574
|
sleep(0.2)
|
576
575
|
@@bar.advance
|
577
576
|
end
|
578
|
-
Git.new_branch
|
579
|
-
Git.
|
577
|
+
Git.new_branch(branch)
|
578
|
+
Git.pull(parent_branch_name) unless parent_branch_name.nil?
|
579
|
+
Git.push(branch)
|
580
580
|
|
581
581
|
@@bar.finish
|
582
582
|
prompt.say(pastel.cyan("Você está na branch: #{branch}"))
|
data/lib/sflow/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitsflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3.release100620241155
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Wherbet
|
@@ -383,6 +383,7 @@ extra_rdoc_files: []
|
|
383
383
|
files:
|
384
384
|
- ".env.yml"
|
385
385
|
- ".gitignore"
|
386
|
+
- ".tool-versions"
|
386
387
|
- ".travis.yml"
|
387
388
|
- CODE_OF_CONDUCT.md
|
388
389
|
- Gemfile
|
@@ -432,6 +433,6 @@ requirements: []
|
|
432
433
|
rubygems_version: 3.1.6
|
433
434
|
signing_key:
|
434
435
|
specification_version: 4
|
435
|
-
summary: GitSFlow is a tool that
|
436
|
-
|
436
|
+
summary: GitSFlow is a Gitlab-integrated tool that contains a workflow model inspired
|
437
|
+
by Git FLOW.
|
437
438
|
test_files: []
|