Skip to content

Commit

Permalink
fix: Fix pre-commit errors
Browse files Browse the repository at this point in the history
  • Loading branch information
HRemonen committed Sep 2, 2023
1 parent cb4f934 commit 03c4a73
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
#
# Note: By default, the `.golangci.yml` file should be at the root of the repository.
# The location of the configuration file can be changed by using `--config=`
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
Expand All @@ -47,4 +47,4 @@ jobs:
# skip-build-cache: true

# Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
# install-mode: "goinstall"
# install-mode: "goinstall"
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ linters:
- whitespace

issues:
# enable issues excluded by default
exclude-use-default: false
# enable issues excluded by default
exclude-use-default: false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ We welcome contributions to CommitSense! To contribute, follow these steps:
CommitSense is released under the MIT License. See [LICENSE](LICENSE) for details.

## Acknowledgments
This project is inspired by the Conventional Commits specification. Learn more at [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
This project is inspired by the Conventional Commits specification. Learn more at [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
7 changes: 4 additions & 3 deletions cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ Copyright © 2023 HENRI REMONEN <henri@remonen.fi>
package cmd

import (

Check failure on line 16 in cmd/add.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofumpt`-ed (gofumpt)
"commitsense/pkg/item"
"fmt"
"os"
"os/exec"
"strings"

Check failure on line 21 in cmd/add.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofumpt`-ed (gofumpt)
"commitsense/pkg/item"

"github.com/manifoldco/promptui"
"github.com/spf13/cobra"
)
Expand All @@ -30,8 +31,8 @@ var addCmd = &cobra.Command{
Short: "Interactively select files to stage",
Long: `Select files that are not tracked or files that are modified and add the selected files to staging
This command uses the native git add and git status commands under
the hood. Use this command to stage selected files before making a
This command uses the native git add and git status commands under
the hood. Use this command to stage selected files before making a
commit.`,
Run: func(cmd *cobra.Command, args []string) {
files, err := getChangedFiles()
Expand Down
3 changes: 2 additions & 1 deletion cmd/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ Copyright © 2023 HENRI REMONEN <henri@remonen.fi>
package cmd

import (

Check failure on line 16 in cmd/commit.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofumpt`-ed (gofumpt)
"commitsense/pkg/prompt"
"fmt"
"os"
"os/exec"
"strings"

"commitsense/pkg/prompt"

"github.com/manifoldco/promptui"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion docs/Specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ A CommitSense commit message consists of a **header**, an optional **body**, and
- [Conventional Commits Website](https://www.conventionalcommits.org/)
- [Conventional Commits GitHub Repository](https://github.com/conventional-commits/conventionalcommits.org)

By following this Conventional Commits-based specification, CommitSense ensures that its commit messages are meaningful, standardized, and aligned with best practices in version control.
By following this Conventional Commits-based specification, CommitSense ensures that its commit messages are meaningful, standardized, and aligned with best practices in version control.

0 comments on commit 03c4a73

Please sign in to comment.