Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
drudzikatlassian committed Feb 27, 2019
1 parent 87ace9c commit 453099a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,30 @@ action "Find in commit messages" {
args = "--from=commits"
}
```


Also you can use [lodash templates](https://lodash.com/docs/4.17.11#template) to retrieve fields from GitHub Event which triggered workflow, like: `{{event.ref}}` Here is an example:

```
action "Find in branch name" {
uses = "atlassian/gajira-find-issue-key@master"
needs = ["Login"]
args = "{{event.ref}}"
}
```
which is the same as `--from=branch`

Or more complex one:

```
action "Find in commit messages" {
uses = "atlassian/gajira-find-issue-key@master"
needs = ["Login"]
args = "{{event.commits.map(c=>c.message).join(' ')}}"
}
```
which is the same as `--from=commits`

----
## Action Spec:

Expand Down

0 comments on commit 453099a

Please sign in to comment.