{"id":31009338,"url":"https://github.com/robhurring/jit","last_synced_at":"2026-06-12T16:33:45.742Z","repository":{"id":27895170,"uuid":"31386768","full_name":"robhurring/jit","owner":"robhurring","description":"Jira + Git","archived":false,"fork":false,"pushed_at":"2015-12-29T18:07:54.000Z","size":60,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-13T04:40:42.215Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robhurring.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-26T20:17:13.000Z","updated_at":"2024-08-27T07:55:30.000Z","dependencies_parsed_at":"2022-08-02T16:45:34.197Z","dependency_job_id":null,"html_url":"https://github.com/robhurring/jit","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/robhurring/jit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robhurring%2Fjit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robhurring%2Fjit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robhurring%2Fjit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robhurring%2Fjit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robhurring","download_url":"https://codeload.github.com/robhurring/jit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robhurring%2Fjit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34253933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-13T04:34:12.135Z","updated_at":"2026-06-12T16:33:45.726Z","avatar_url":"https://github.com/robhurring.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"                                   __     __     ______\n                                  /\\ \\   /\\ \\   /\\__  _\\\n                                 _\\_\\ \\  \\ \\ \\  \\/_/\\ \\/\n                                /\\_____\\  \\ \\_\\    \\ \\_\\\n                                \\/_____/   \\/_/     \\/_/\n                                              Jira + Git\n\n\n## About\n\nJIT is a small command-line tool used to aid my day-to-day workflow using jira\nand github. I'm not sure how useful it will be for anyone else not working the same way.\n\nThis is a go re-write of my node tool [jerry](https://github.com/robhurring/jerry)\n\n## Installation\n\nMake sure you have a working Go environment (go 1.1 is required). See the install instructions.\n\nTo install jit, download the latest release:\n\n* [Latest Release](https://github.com/robhurring/jit/releases/latest)\n\nTo install jit from source:\n\n`$ go get github.com/robhurring/jit`\n\nMake sure your PATH includes to the $GOPATH/bin directory so your commands can be easily used:\n\n`export PATH=$PATH:$GOPATH/bin`\n\n**NOTE:** `jit` will not work until it has been configured. To create the initial config file, run `jit` and it should create a file `~/.config/jit/config.json`. Edit this with your credentials to get it going.\n\n## Setup\n\nTo configure JIT so it can talk with Github and Jira, you need to add the config file to `~/.config/jit/config.json`\n\nAn example configuration looks like this:\n\n```js\n// ~/.config/jit/config.json\n{\n  \"jira\": {\n    \"host\": \"https://mycompany.atlassian.net\",\n    \"api_path\": \"/rest/api/2\",\n    \"activity_path\": \"/activity\",\n    \"login\": \"JIRA_PASSWORD\",\n    \"password\": \"JIRA_PASSWORD\",\n    // when using naked issue numbers with JIT, this project will be prepended\n    \"defaultProject\": \"\"\n  },\n  \"github\": {\n    \"username\": \"GITHUB_USERNAME\",\n    \"token\": \"TOKEN\"\n  },\n  // when generating branch names from issue summaries, this is the max length\n  // it will be. truncated at the last full word\n  \"maxBranchLength\": 35,\n  // when generating a pull-request any repo in this list of paths with a branch\n  // matching the current repo's branch will be listed as \"associated\"\n  \"associatedPaths\": [\n    \"~/Code\"\n  ],\n  // when generating a pull-request JIT will attempt to map names from JIRA to\n  // github usernames using the github API. any name listed here will override\n  // that.\n  \"userMap\": {\n    \"rob hurring\": \"robhurring\"\n  },\n  // will add a little Jit signature to PRs if true :D\n  \"signPullRequests\": true\n}\n```\n\n## Commands\n\n#### branch, br\n\nCreate a new branch for the given ISSUE. If the branch already exists JIT will issue a `checkout` instead.\n\n\n  * `--preview, -p`  Preview branch name\n  * `--copy, -c`   Copy branch name  (OSX only)\n\n###### Example\n\n```sh\n$ jit branch DEV-12\n# =\u003e git checkout -b DEV-12_update_the_wizzy_wigs\n```\n\n#### pull-request, pr\n\nCreate a new pull-request for the given ISSUE. JIT will try to map the issue's `CodeReviewer`'s full name against the Github API - if only 1 result is found it will be used. If the name cannot be found (or multiple results were returned), JIT will just use the full-name.\n\n__HINT:__ For common names or people who don't use their full-name in github, add them to the `userMap` settings hash.\n\n  * `--preview, -p`  Preview the pull-request\n  * `--copy, -c`   Copy the pull-request body to the clipboard (OSX only)\n\n###### Example\n\n```sh\n$ jit pull-reqest DEV-12\n# =\u003e creates a pull-request for the current branch referencing DEV-12\n\n$ jit pull-reqest --preview DEV-12\n\n# DEV-12: test\n#\n# /cc @robhurring\n#\n# [JIRA DEV-12](https://mycompany.atlassian.net/rest/api/2/issue/90210): Test\n#\n# ### Associated\n#\n# some-other-repo\n#\n# ### Summary\n#\n# * Changed A, B, C\n#\n# ### Testing\n#\n# `rake spec`\n```\n\n#### info, in\n\nPrint some basic information about a given issue.\n\n###### Example\n\n```sh\n$ jit info DEV-12\n\n# DEV-12: Test\n# https://mycompany.atlassian.net/rest/api/2/issue/90210\n#\n# Creator:  Rob Hurring\n# Developer: Rob Hurring\n# Reviewer: Rob Hurring\n# Assigned: Rob Hurring\n#\n# -----------------------8\u003c-------------------------------------------------------\n#\n# Links (2):\n#\n#   Blocks\n#   DEV-15: [New]:  Do something relating to this ticket.\n#\n#   Relates\n#   IT-52: [In Production]:  Some IT issue related to this ticket.\n#\n# -----------------------8\u003c-------------------------------------------------------\n#\n# Status: New\n#\n# Testing. This is my issue description\n#\n# -----------------------8\u003c-------------------------------------------------------\n#\n# Comments (2):\n#\n# \"test\"\n# Reginald Sombernotch\n#\n# \"hello world!\"\n# Drake Thunderfist\n```\n\n#### open, o\n\nOpen the given ticket in the browser. (OSX only. Using the `open` command currently.)\n\n```sh\n$ jit open DEV-12\n# =\u003e opens the issue in the browser\n```\n\n#### copy, cp\n\nCopy the given issue URL to the clipboard. (OSX only.)\n\n```sh\n$ jit copy DEV-12\n# =\u003e Copied! https://mycompany.atlassian.net/browse/DEV-12\n```\n\n#### hub, h\n\nInformation about the GitHub project\n\n###### branch\n\nGet the default GitHub branch for the current repo.\n\n```sh\n$ jit hub branch\n# =\u003e master\n```\n\n###### owner\n\nGet the GitHub project owner for the current repo.\n\n```sh\n$ jit hub owner\n# =\u003e robhurring\n```\n\n###### name\n\nGet the GitHub project name for the current repo.\n\n```sh\n$ jit hub name\n# =\u003e jit\n```\n\n###### url\n\nGet the GitHub project URL for the current repo.\n\n```sh\n$ jit hub url\n# =\u003e https://github.com/robhurring/jit.git\n```\n\n###### open\n\nOpen the GitHub project in your browser.\n\n```sh\n$ jit hub open\n# =\u003e Opening https://github.com/robhurring/jit.git\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/robhurring/jit/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Credits\n\nI :heart: stole a bunch of functions from [Github's hub](https://github.com/github/hub) repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobhurring%2Fjit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobhurring%2Fjit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobhurring%2Fjit/lists"}