Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

ocpr

A quick Jira ticket and pull request creator for Opencast .

Configuration

Create a configuration file ~/.ocpr to supply your jira credentials.

Using your password directly does not work anymore. You can create an AIP token four your account at id.atlassian.com/manage/api-tokens.

# Jira
USER=jdoe
EMAIL=jdoe@example.com
APIKEY=...

# Github
GH_REPO=jdoe/opencast

Note that this is interpreted as shell script. That means you can easily integrate your password manager if he supports shell commands. For example you could use gopass like this:

APIKEY="$(gopass show -o private/opencast.jira.com)"

Usage

Just call ocpr and answer the questions.

% ocpr
Using issue type: Bug
Requesting form options…
Summary: Something is broken
Assignee: lkiesow
Allowed components:
  Administrative User Interface
  Backend Software
  ...
  Tests
  Third Party Software
  Workspace Implementation
Component: Tests
...

Automatically create Github pull requests

To create a pull request including the file somefile.ext against the develop branch, run the following:

git checkout develop
# edit somefile.ext
git add somefile.ext
ocpr

ocpr will automatically use the Jira ticket information for the commit message, the branch name and the pull request.

Task vs Bug

By default, ocpr will create a Bug-type Jira ticket. To create a Task instead, run ocpr -t.

% ocpr
Using issue type: Bug
...
% ocpr -t
Using issue type: Task
...

Example

The following recording shows an example of starting with a patch, creating a task in Jira, using the data from Jira to commit the patch, push the commit to your remote repository and finally opening Github's pull request window in your browser to create a pullrequest:

asciicast

About

Opencast quick Jira ticket and pull request creator

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.