Skip to content

Commit

Permalink
feat(rule): skip merge commit
Browse files Browse the repository at this point in the history
  • Loading branch information
masahiro331 committed Feb 7, 2022
1 parent f525f5f commit 3926b43
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


name: goreleaser

on:
push:
Expand All @@ -18,13 +17,12 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
# need to access other repository for brew-tap
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
efore:
before:
hooks:
- go mod tidy
builds:
Expand Down
13 changes: 13 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Go commit linter'
description: 'Inspect commit messages with the format "<type>(scope): <subject>".'
inputs:
message: # id of input
description: 'commit message or pull request messaeg'
required: true
default: 'World'
outputs:
time: # id of output
description: 'The time we greeted you'
runs:
using: 'node16'
main: 'index.js'
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var (

DefaultConfig = Config{
SkipPrefixes: []string{
"Merge branch ",
"Merge ",
"BREAKING: ",
},
Reference: "https://github.com/masahiro331/go-commitlinter#description",
Expand Down
2 changes: 1 addition & 1 deletion rule-sample.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

skip_prefixes:
- 'Merge branch '
- 'Merge '
- 'BREAKING: '
type_rules:
- type: feat
Expand Down

0 comments on commit 3926b43

Please sign in to comment.