story_branch 2.0.1 → 2.1.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/.github/workflows/rubocop.yml +4 -6
- data/.story_branch.yml +2 -2
- data/Changelog.md +5 -0
- data/lib/story_branch/config_manager.rb +4 -0
- data/lib/story_branch/main.rb +8 -5
- data/lib/story_branch/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7a8e6bc148fecde83a3f76f088507313660e6ab1cd4fb059d61285b380c583d
|
4
|
+
data.tar.gz: c5a1c714d28331dd096ff89858af114055adf528ac63a33326b5ee6893c0cb4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4f7c388a01ad1a9c164c0e21997422fe020416927afd164bfc68042fa958fb95f102909ffda013c26ab38f8d963e0de3d9894fa063413cd3469b3cdbccf76d5
|
7
|
+
data.tar.gz: 164713630f809f65b4c703bd90cfba6007586837b903a869553c9f95d16ff3169f9b56821036674aca4bd6cac7e1617acf3e28c2425f53088aba60cbb238f7e1
|
@@ -8,12 +8,10 @@ jobs:
|
|
8
8
|
runs-on: ubuntu-latest
|
9
9
|
|
10
10
|
steps:
|
11
|
-
- uses: actions/checkout@
|
12
|
-
- name: Set up Ruby 2.
|
13
|
-
uses:
|
14
|
-
with:
|
15
|
-
ruby-version: 2.6.x
|
11
|
+
- uses: actions/checkout@v3
|
12
|
+
- name: Set up Ruby 2.7
|
13
|
+
uses: ruby/setup-ruby@v1
|
16
14
|
- name: Rubocop Linter
|
17
|
-
uses: andrewmcodes/rubocop-linter-action@
|
15
|
+
uses: andrewmcodes/rubocop-linter-action@v3.3.0
|
18
16
|
env:
|
19
17
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.story_branch.yml
CHANGED
data/Changelog.md
CHANGED
@@ -34,6 +34,10 @@ module StoryBranch
|
|
34
34
|
@issue_placement ||= @config.fetch(:issue_placement, default: 'End')
|
35
35
|
end
|
36
36
|
|
37
|
+
def branch_username
|
38
|
+
@branch_username ||= @config.fetch(project_key, :branch_username)
|
39
|
+
end
|
40
|
+
|
37
41
|
def finish_tag
|
38
42
|
@finish_tag ||= @config.fetch(project_key,
|
39
43
|
:finish_tag, default: 'Finishes')
|
data/lib/story_branch/main.rb
CHANGED
@@ -196,11 +196,14 @@ module StoryBranch
|
|
196
196
|
# rubocop:enable Metrics/MethodLength
|
197
197
|
|
198
198
|
def build_branch_name(branch_name, story_id)
|
199
|
-
if @config.issue_placement.casecmp('beginning').zero?
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
199
|
+
branch_name = if @config.issue_placement.casecmp('beginning').zero?
|
200
|
+
"#{story_id}-#{branch_name}"
|
201
|
+
else
|
202
|
+
"#{branch_name}-#{story_id}"
|
203
|
+
end
|
204
|
+
return branch_name unless @config.branch_username
|
205
|
+
|
206
|
+
"#{@config.branch_username}/#{branch_name}"
|
204
207
|
end
|
205
208
|
|
206
209
|
def current_branch
|
data/lib/story_branch/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: story_branch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rui Baltazar
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: exe
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2022-07-20 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: blanket_wrapper
|
@@ -496,7 +496,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
496
496
|
- !ruby/object:Gem::Version
|
497
497
|
version: '0'
|
498
498
|
requirements: []
|
499
|
-
rubygems_version: 3.2.
|
499
|
+
rubygems_version: 3.2.32
|
500
500
|
signing_key:
|
501
501
|
specification_version: 4
|
502
502
|
summary: Create git branches based on your preferred tracker tickets
|