Skip to content

add release-please JIRA integration#254

Merged
amandazhuyilan merged 2 commits into
mainfrom
AAI-812-setup-release-JIRA-integration
Apr 23, 2026
Merged

add release-please JIRA integration#254
amandazhuyilan merged 2 commits into
mainfrom
AAI-812-setup-release-JIRA-integration

Conversation

@amandazhuyilan

@amandazhuyilan amandazhuyilan commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

Description

AAI-812: Extends release-please to add tagging JIRA tickets with fixed version when making a release.

Changed

  • Adds a notify-jira job to the release-please workflow that automatically tags JIRA tickets with a fix version on every release
  • Extracts AAI-* ticket IDs from commit messages, PR titles/bodies, and branch names
  • Creates a matching fix version in JIRA (e.g. v1.4.0) and stamps fixVersions on each discovered ticket

Details

When a release is created by release-please, the new job:

  • Collects all commits between the previous and current release tag
  • Scrapes AAI-* ticket references from git log and the GitHub API (PR title, body, branch name) to catch tickets not mentioned in commit messages
  • Creates or reuses a JIRA fix version named after the release tag
  • Appends the fix version to each ticket's fixVersions field without overwriting existing versions

Required secrets

Two repository secrets (already added) must be set for this to work:

  • JIRA_USER_EMAIL — currently set as amanda@biocommons.org.au
  • JIRA_API_TOKEN — Atlassian API token with project and issue read/write access. This token will be expired on 17th April 2026. A BioCloud team calendar event is set one day prior to the expiration date (April 16 2027).

Test plan

  • Tested locally against v1.4.0 — correctly identified AAI-796 and tagged it with fix version v1.4.0 in JIRA
Screenshot 2026-04-17 at 1 01 54 pm

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have added unit / integration tests that prove my fix is effective or that my feature works
  • I have run all tests locally and they pass
  • I have updated the documentation (if applicable)
  • For any new secrets, I have updated the shared spreadsheet and the GitHub Secrets.

@amandazhuyilan amandazhuyilan force-pushed the AAI-812-setup-release-JIRA-integration branch from 6cff861 to d14fb8e Compare April 23, 2026 02:15
@amandazhuyilan amandazhuyilan force-pushed the AAI-812-setup-release-JIRA-integration branch from 2527995 to f704656 Compare April 23, 2026 03:12

@marius-mather marius-mather left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good to go

@amandazhuyilan amandazhuyilan merged commit a06c223 into main Apr 23, 2026
5 checks passed
@amandazhuyilan amandazhuyilan deleted the AAI-812-setup-release-JIRA-integration branch April 23, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants