Skip to main content

Automate Jira ticket to GitHub PR workflow

Project description

Ticket2PR

Ticket2PR is an AI-powered automation tool designed to streamline the process of converting development tickets into ready-to-merge pull requests. It integrates with Jira and GitHub to automate tasks such as branch creation, commit message generation, code linting fixes, and pull request content generation, significantly reducing manual effort and accelerating development workflows.

What's Included

Ticket2PR provides a comprehensive set of features to automate your development workflow:

  • 🚀 Automated Workflow: Orchestrates the entire process from ticket to pull request, handling branch creation, commit message generation, and PR content.
  • 🤖 AI-Powered Agents: Utilizes specialized agents for tasks like crafting intelligent commit messages, automatically fixing pre-commit issues, and assisting with ticket resolution.
  • 🔗 Jira Integration: Connects with Jira to fetch ticket details, enabling context-aware automation.
  • 🐙 GitHub Integration: Interacts with GitHub for branch management, pull request creation, and status updates.

Prerequisites

  • Jira Account and API Token: An account with access to a Jira instance and a valid API token with necessary permissions to view tickets.
  • GitHub Account and Personal Access Token: A GitHub account with permissions to create branches and pull requests in your target repository, and a Personal Access Token (PAT) with repo scope for GitHub API access.
  • Claude Code API Token: Obtain an API token for Claude Code for AI-powered code assistance.

Getting Started

Follow these steps to set up and start using Ticket2PR:

Installation

You can install ticket2pr directly from PyPI:

pip install ticket2pr

Configuration

Ticket2PR automatically guides you through the initial configuration process the first time you run the CLI.

To re-initialize the interactive configuration session, run:

ticket2pr init

Alternatively, you can manually configure settings by editing the ~/.ticket2pr/config.toml file or by setting environment variables.

Usage

Run the Ticket2PR CLI to create a pull request from a Jira ticket:

ticket2pr run <JIRA_ISSUE_KEY>

Replace <JIRA_ISSUE_KEY> with the actual ID of your Jira ticket (e.g., PROJ-123).

License

This project is open-sourced under the terms of the LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ticket2pr-0.1.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ticket2pr-0.1.0-py2.py3-none-any.whl (19.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ticket2pr-0.1.0.tar.gz.

File metadata

  • Download URL: ticket2pr-0.1.0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for ticket2pr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4007e470b072ac914d1aaaf605c1273086b1f4c1e009b5f037d7f5ccdbf00662
MD5 6f733babadc9e50a5ee9bb67544d827c
BLAKE2b-256 8c5c6eff5927494dd3313d67cf3e318f3f6a88c63b841ae8dc6fc558c2bc3732

See more details on using hashes here.

File details

Details for the file ticket2pr-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: ticket2pr-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for ticket2pr-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2bb354ab334d9697528b7915c280d2d704b9dec64003397338316ef9b6c2adae
MD5 6b492b5e55ef6e34c23e97ea7441d088
BLAKE2b-256 99e14defeced7895273394e93d5f637f2fa3a092c877b4a0e4c2086d160afa7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page