Skip to content

Commit ad2d235

Browse files
committed
tweak
1 parent dbb5388 commit ad2d235

File tree

5 files changed

+32
-7
lines changed

5 files changed

+32
-7
lines changed

.scm-engine.example.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ label:
7474
# =>
7575
# service/vault
7676
- strategy: generate
77-
description: "Modified this letsgo service directory"
77+
description: "Modified this a service directory"
7878
color: "$pink"
7979
script: >
8080
map(merge_request.diff_stats, { .path })
@@ -85,16 +85,16 @@ label:
8585
8686
# generate labels for commands
8787
#
88-
# internal/app/letsgo/subcommands/aws/login/login.go
88+
# internal/app/my-command/subcommands/aws/login/login.go
8989
# =>
9090
# command/aws/login
9191
- strategy: generate
92-
description: "Modified this letsgo command"
92+
description: "Modified this my-command command"
9393
color: "$purple"
9494
script: >
9595
map(merge_request.diff_stats, { .path })
96-
| filter({ hasPrefix(#, "internal/app/letsgo/subcommands/") })
96+
| filter({ hasPrefix(#, "internal/app/my-command/subcommands/") })
9797
| map({ filepath_dir(#) })
98-
| map({ trimPrefix(#, "internal/app/letsgo/subcommands/") })
98+
| map({ trimPrefix(#, "internal/app/my-command/subcommands/") })
9999
| map({ string("command/" + #) })
100100
| uniq()

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ label:
9797
# Generate list of labels via script
9898
- strategy: generate
9999
# With a description (optional)
100-
description: "Modified this letsgo service directory"
100+
description: "Modified this service directory"
101101
# With the color $pink
102102
color: "$pink"
103103
# From this script, returning a list of labels
@@ -213,7 +213,7 @@ label:
213213
#
214214
# depending on what directories are having files changed in a Merge Request.
215215
- strategy: generate
216-
description: "Modified this letsgo service directory"
216+
description: "Modified this service directory"
217217
color: "$pink"
218218
script: >
219219
map(merge_request.diff_stats, { .path }) // Generate a list of all file paths that was changed in the Merge Request

scripts/completions.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
set -e
3+
4+
rm -rf completions
5+
mkdir completions
6+
7+
for sh in bash fish powershell zsh; do
8+
go run . completion "$sh" >"completions/dottie.$sh"
9+
done

scripts/manpages.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -e
3+
4+
rm -rf manpages
5+
mkdir manpages
6+
7+
go run ./cmd | gzip -c -9 >manpages/dottie.1.gz

scripts/test.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -o pipefail && TEST_OPTIONS="-json" task test | tee output.json | tparse -follow
4+
success=$?
5+
6+
set -e
7+
NO_COLOR=1 tparse -format markdown -slow 10 -file output.json >"$GITHUB_STEP_SUMMARY"
8+
9+
exit $success

0 commit comments

Comments
 (0)