Skip to content

Commit

Permalink
Updated action
Browse files Browse the repository at this point in the history
  • Loading branch information
LamaAni committed Feb 4, 2021
1 parent e554a7e commit c8ca2b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# parse-commit-args-action

A github action that parses the github commit arguments and allows for use defined commit arguments, via the commit mesage, to be detected.
A github action that parses the github commit arguments and allows for use defined commit arguments, via the commit message, to be detected.

#### If you like it, star it, so other people would also use it.

Expand All @@ -26,7 +26,7 @@ commit_message | The last commit message | false

Name | Description | Default value
---|---|---
LOAD_MESSAGE_ARGUMENTS_ON_EVENTS | Conrols which gihub events( release, push...) are allowed to load user commit message args. Otherwise these are ignored. null or empty means all, none never load args | ''
LOAD_MESSAGE_ARGUMENTS_ON_EVENTS | Controls which github events( release, push...) are allowed to load user commit message args. Otherwise these are ignored. null or empty means all, none never load args | ''
VERSION_MARKER_SPLIT_SYMBOL| A symbol to split the cascading versions | .
ARG_MATCH_REGEX | A regex pattern to detect an input argument word (eg. --my-arg). Will join all match groups to create the full argument. | /[-]{2}([a-zA-Z0-9][\w-]+)/g
ARG_REGEX_GROUP_JOIN_SYMBOL | Join symbol for between match groups | _
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'parse commit args'
description: 'A github action that parses the github commit arguments and allows for use defined commit arguments, via the commit mesage, to be detected'
description: 'Parses the last commit and extract args (--my-arg [val]). Default args exist.'
runs:
using: 'node12'
main: 'parse_commit_args.js'
4 changes: 2 additions & 2 deletions parse_commit_args.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ LOAD_MESSAGE_ARGUMENTS_ON_EVENTS =
class CommitArgs {
constructor({ match_args_regex = MATCH_ARG_REGEX } = {}) {
this.is_release = false
this.event_name = '[unknwon]'
this.event_name = '[unknown]'
this.is_pull_request = false
this.ref = '[unknwon]'
this.ref = '[unknown]'

/**
* @type {[Commit]}
Expand Down

0 comments on commit c8ca2b9

Please sign in to comment.