GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gusleig/create-pr: A Bash script that automates creating GitHub pull requests with Jira ticket integration

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
create-pr.sh
create-pr.sh
 
 

Repository files navigation

GitHub PR Creator Script

A Bash script that automates creating GitHub pull requests with Jira ticket integration.

Features

  • Automatic PR creation with standardized format
  • Jira ticket integration
  • Default reviewers configuration
  • Automatic branch pushing
  • Dry run mode for testing
  • Base branch auto-detection (main/master)
  • Detailed logging

Prerequisites

  • GitHub CLI (gh)
  • Git
  • macOS (for open command)

Installation

git clone https://github.com/gusleig/create-pr.git ~/code/create-pr
chmod +x ~/code/create-pr/create-pr.sh
sudo ln -s ~/code/create-pr/create-pr.sh /usr/local/bin/create-pr

Configuration

Set those env variables:

export JIRA_URL="your-url"
export REVIEWERS="user1,user2"

Edit these variables in the script:


```bash
JIRA_BASE_URL="https://your-jira-instance.atlassian.net/browse"
DEFAULT_REVIEWERS="default-username1,default-username2"

Usage

# Create PR
create-pr TICKET-123

# Create PR with specific reviewers
create-pr TICKET-123 "reviewer1,reviewer2"

# Test run without creating PR
create-pr --dry-run TICKET-123

# Show help
create-pr --help

PR Format

Title: <first commit message>

# Purpose

<first commit message>

# Jira Card

[TICKET-123](https://your-jira-instance.atlassian.net/browse/TICKET-123)

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a new Pull Request

About

A Bash script that automates creating GitHub pull requests with Jira ticket integration

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.