No description
Find a file
compliance-pr-automation-bot[bot] 2cc82d3bf3
[Compliance] - PR Template Changes Required (#3)
Co-authored-by: compliance-pr-automation[bot] <1425255+compliance-pr-automation-bot[bot]@users.noreply.github.com>
2025-12-17 09:00:55 -08:00
.github [Compliance] - PR Template Changes Required (#3) 2025-12-17 09:00:55 -08:00
action.yml [COMPLIANCE] Add Copyright and License Headers (Batch 1 of 1) (#5) 2025-12-16 09:27:30 -08:00
CODEOWNERS Handoff to team-vault-quality (#4) 2025-10-17 13:39:08 -07:00
go.mod Replace tomhjp module dep (#1) 2024-05-09 12:11:13 +01:00
go.sum Replace tomhjp module dep (#1) 2024-05-09 12:11:13 +01:00
LICENSE [COMPLIANCE] Update Copyright and License Headers (#6) 2025-12-16 09:26:59 -08:00
main.go [COMPLIANCE] Add Copyright and License Headers (Batch 1 of 1) (#5) 2025-12-16 09:27:30 -08:00
README.md Initial commit 2020-09-11 15:58:42 +01:00

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. user@example.com. 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/gajira-login@v2.0.0
  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/gh-action-jira-comment@v0.1.3
  with:
    issue: TEST-23
    comment: "This is an automated comment"