diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 0000000..693ddde --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,18 @@ +name: ShellCheck + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + shellcheck: + name: Shellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master + with: + ignore_paths: ./completion.* \ No newline at end of file diff --git a/git-fixup b/git-fixup index 6ecba09..f0919e9 100755 --- a/git-fixup +++ b/git-fixup @@ -138,9 +138,13 @@ function fallback_menu() { ;; help|h) local fmt="%s\n %s\n" + # shellcheck disable=SC2059 printf "$fmt" "" "$op the -th commit from the list" >&2 + # shellcheck disable=SC2059 printf "$fmt" "s[how] " "show the -th commit from the list" >&2 + # shellcheck disable=SC2059 printf "$fmt" "q[uit]" "abort operation" >&2 + # shellcheck disable=SC2059 printf "$fmt" "h[elp]" "show this help message" >&2 ;; esac