Skip to content

Commit

Permalink
dev: add common repo tasks to taskfile
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Kungla <[email protected]>
  • Loading branch information
mkungla committed Jan 31, 2024
1 parent 8702801 commit 04d148f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# https://taskfile.dev

version: '3'

dotenv: ['.env']

tasks:
lint:
desc: Lint the project
dir: .
silent: true
cmds:
- ./.github/actions/golangci-lint-monorepo-action/golangci-lint-monorepo-action.sh
test:
desc: Test all project modules
dir: .
silent: true
cmds:
- ./.github/actions/go-test-monorepo-action/go-test-monorepo-action.sh
release:
desc: Run monorepo releaser
dir: internal/cmd/hap
silent: true
cmds:
- go run . release
4 changes: 4 additions & 0 deletions internal/cmd/hap/addons/releaser/changelog/changelog.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ func ParseEntryType(typ, scope string) (EntryType, error) {
case "devops":
etyp.Typ = "devops"
etyp.Kind = EntryKindPatch
case "dev":
etyp.Typ = "dev"
etyp.Kind = EntryKindPatch
default:
return etyp, fmt.Errorf("invalid commit message type: %s", typ)
}
Expand All @@ -245,6 +248,7 @@ type Commit struct {
// {Typ: "perf", Scope: "", Kind: EntryKindPatch},
// {Typ: "test", Scope: "", Kind: EntryKindPatch},
// {Typ: "devops", Scope: "", Kind: EntryKindPatch},
// {Typ: "dev", Scope: "", Kind: EntryKindPatch},
// {Typ: "chore", Scope: "", Kind: EntryKindPatch},
// {Typ: "revert", Scope: "", Kind: EntryKindPatch},
// }

0 comments on commit 04d148f

Please sign in to comment.