ninny 0.1.22 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/issue_template.md +21 -0
- data/.github/workflows/build.yml +3 -3
- data/.github/workflows/test.yml +2 -2
- data/.ruby-version +1 -1
- data/Dockerfile +1 -1
- data/lib/ninny/commands/create_dated_branch.rb +1 -1
- data/lib/ninny/commands/pull_request_merge.rb +2 -2
- data/lib/ninny/git.rb +2 -1
- data/lib/ninny/version.rb +1 -1
- data/renovate.json +6 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a614b015ac474fd395e35795ac14c7a272c8bb434760f80279e6cdfb7605c5a
|
4
|
+
data.tar.gz: 2d06f802a0d90eef99918318b1b83dcdd622fd8f071b232585cad542d89345aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 283756965f579f7e23d23e7d0bf2cd86352ccae4423da58cb14ad6cbe42bfab3fc2499dff0bed10ad83f27ddf20947df9175236b6d9c9109e20db54d04d0165e
|
7
|
+
data.tar.gz: d0ed10e2d8abf24a94b7e76c92136664fcf83c00ff815f4ccb97a0b1e0b94a7478eaf10de776aea65fba4b656784f45f372c794b9f8905de4ff7a4b5f49277cd
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<!--
|
2
|
+
Your audience for this issue description is **other engineers**. Help them understand the technical requirements, questions, etc involved.
|
3
|
+
-->
|
4
|
+
|
5
|
+
## What's the issue?
|
6
|
+
|
7
|
+
<!--
|
8
|
+
What is wrong, or what is the reason you're making this issue? Is there a bug, general question, just want a reminder note of something, etc?
|
9
|
+
-->
|
10
|
+
|
11
|
+
## Related URLs
|
12
|
+
|
13
|
+
<!--
|
14
|
+
Links to bug tickets, user stories, or other merge requests.
|
15
|
+
-->
|
16
|
+
|
17
|
+
## Anything else people should know?
|
18
|
+
|
19
|
+
<!--
|
20
|
+
What else should readers of this issue know? If there's a bug, how do you reproduce it and what is the expected behavior? If it's a feature request, what other solutions have you considered? Do you have any suggestions for how else to fix this issue?
|
21
|
+
-->
|
data/.github/workflows/build.yml
CHANGED
@@ -16,16 +16,16 @@ jobs:
|
|
16
16
|
packages: write
|
17
17
|
steps:
|
18
18
|
- uses: actions/checkout@v3
|
19
|
-
- uses: docker/login-action@
|
19
|
+
- uses: docker/login-action@v2
|
20
20
|
with:
|
21
21
|
registry: ${{ env.REGISTRY }}
|
22
22
|
username: ${{ github.actor }}
|
23
23
|
password: ${{ secrets.GITHUB_TOKEN }}
|
24
|
-
- uses: docker/metadata-action@
|
24
|
+
- uses: docker/metadata-action@v4
|
25
25
|
id: meta
|
26
26
|
with:
|
27
27
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
28
|
-
- uses: docker/build-push-action@
|
28
|
+
- uses: docker/build-push-action@v3
|
29
29
|
with:
|
30
30
|
context: .
|
31
31
|
push: true
|
data/.github/workflows/test.yml
CHANGED
@@ -6,7 +6,7 @@ on:
|
|
6
6
|
branches: [ main ]
|
7
7
|
|
8
8
|
env:
|
9
|
-
GITLEAKS_VERSION: v8.
|
9
|
+
GITLEAKS_VERSION: v8.15.1
|
10
10
|
|
11
11
|
jobs:
|
12
12
|
test:
|
@@ -31,7 +31,7 @@ jobs:
|
|
31
31
|
- uses: actions/checkout@v3
|
32
32
|
with:
|
33
33
|
fetch-depth: 0
|
34
|
-
- uses: HeRoMo/pronto-action@v1.
|
34
|
+
- uses: HeRoMo/pronto-action@v1.40.0
|
35
35
|
with:
|
36
36
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
37
37
|
gitleaks:
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.3
|
data/Dockerfile
CHANGED
@@ -38,7 +38,7 @@ module Ninny
|
|
38
38
|
def delete_old_branches
|
39
39
|
return unless extra_branches.any?
|
40
40
|
|
41
|
-
should_delete = should_delete_old_branches || prompt.
|
41
|
+
should_delete = should_delete_old_branches || prompt.no?(
|
42
42
|
"Do you want to delete the old #{branch_type} branch(es)? (#{extra_branches.join(', ')})"
|
43
43
|
)
|
44
44
|
|
@@ -46,8 +46,8 @@ module Ninny
|
|
46
46
|
Ninny.git.check_out(branch_to_merge_into, false)
|
47
47
|
Ninny.git.track_current_branch
|
48
48
|
rescue Ninny::Git::NoBranchOfType
|
49
|
-
prompt.say "
|
50
|
-
|
49
|
+
prompt.say "Could not find a #{branch_type} branch. Please create one or double check it exists. If it " \
|
50
|
+
'exists, please do a fresh git pull or git fetch to ensure Ninny can find it.'
|
51
51
|
end
|
52
52
|
|
53
53
|
# Public: Merge the pull request's branch into the checked-out branch
|
data/lib/ninny/git.rb
CHANGED
@@ -138,7 +138,8 @@ module Ninny
|
|
138
138
|
#
|
139
139
|
# Returns an Array of Branches containing the branch name
|
140
140
|
def latest_branch_for(prefix)
|
141
|
-
|
141
|
+
# I don't really see why the first part would break, and the second would work, but you never know
|
142
|
+
branches_for(prefix).last || Ninny.git.branches_for(prefix).last || raise(NoBranchOfType, "No #{prefix} branch")
|
142
143
|
end
|
143
144
|
|
144
145
|
# Public: Whether the Git index is clean (has no uncommited changes)
|
data/lib/ninny/version.rb
CHANGED
data/renovate.json
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ninny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DispatchIt, Inc. Engineers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|
@@ -270,6 +270,7 @@ executables:
|
|
270
270
|
extensions: []
|
271
271
|
extra_rdoc_files: []
|
272
272
|
files:
|
273
|
+
- ".github/issue_template.md"
|
273
274
|
- ".github/pull_request_template.md"
|
274
275
|
- ".github/workflows/build.yml"
|
275
276
|
- ".github/workflows/gitleaks.toml"
|
@@ -310,6 +311,7 @@ files:
|
|
310
311
|
- lib/ninny/user_config.rb
|
311
312
|
- lib/ninny/version.rb
|
312
313
|
- ninny.gemspec
|
314
|
+
- renovate.json
|
313
315
|
homepage: https://github.com/dispatchitinc/ninny
|
314
316
|
licenses:
|
315
317
|
- MIT
|
@@ -330,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
330
332
|
- !ruby/object:Gem::Version
|
331
333
|
version: '0'
|
332
334
|
requirements: []
|
333
|
-
rubygems_version: 3.3.
|
335
|
+
rubygems_version: 3.3.26
|
334
336
|
signing_key:
|
335
337
|
specification_version: 4
|
336
338
|
summary: 'ninny (n): an foolish person, see: git'
|