Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update README.md
Indentation for the example corrected
  • Loading branch information
uniqueck authored May 31, 2021
commit 60bc847069a7339fa515de51f8c7fc5c7d914e6d
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -14,8 +14,8 @@ To add comment to an issue you need to specify an issue key and a comment as act
- name: Comment on issue
uses: atlassian/gajira-comment@master
with:
issue: INC-2
comment: ${{ github.event.pusher.name }} pushed to repository: ${{ github.event.repository.full_name }}
issue: INC-2
comment: ${{ github.event.pusher.name }} pushed to repository: ${{ github.event.repository.full_name }}
```

You can interpolate fields from [GitHub event which triggered the workflow](https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions#github-context) into a comment body. For example, if you set your workflow to be triggered on the `push` event, you can specify the pusher name in comment body by including `${{ github.event.pusher }}` field from the [push](https://developer.github.com/v3/activity/events/types/#pushevent) event:
@@ -43,4 +43,4 @@ Which will result in comment:
- `issue`

### Writes fields to config file at $HOME/jira/config.yml
- None
- None