Skip to content

hashicorp/gh-action-jira-comment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-action-jira-comment

Use GitHub actions to comment on Jira issues.

Authentication

To provide a URL and credentials you can use the gajira-login action, which will write a config file this action can read. Alternatively, you can set some environment variables:

  • JIRA_BASE_URL - e.g. https://my-org.atlassian.net. The URL for your Jira instance.
  • JIRA_API_TOKEN - e.g. iaJGSyaXqn95kqYvq3rcEGu884TCbMkU. An access token.
  • JIRA_USER_EMAIL - e.g. [email protected]. The email address for the access token.

Inputs

  • issue (required) - The issue key to comment on, e.g. 'TEST-23'
  • comment (required) - The comment to make, e.g. 'This one's important'

Outputs

None.

Examples

The following examples are valid steps for a particular job in a workflow; to see how to integrate them into a fully worked example, refer to the documentation.

Using atlassian/gajira-login and GitHub secrets for authentication:

- name: Login
  uses: atlassian/[email protected]
  env:
    JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
    JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
    JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

- name: Comment
  uses: tomhjp/[email protected]
  with:
    issue: TEST-23
    comment: "This is an automated comment"

About

Add a comment to a Jira issue using GitHub actions

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%