{"id":26878078,"url":"https://github.com/ganeshnrao/gijit","last_synced_at":"2025-03-31T12:19:15.295Z","repository":{"id":33283428,"uuid":"157591776","full_name":"ganeshnrao/gijit","owner":"ganeshnrao","description":"Show JIRA information for Git branches from CLI","archived":false,"fork":false,"pushed_at":"2022-12-08T05:21:56.000Z","size":151,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T19:02:48.308Z","etag":null,"topics":["jira-cli","jira-client","jira-git","jira-information"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ganeshnrao.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-14T18:19:59.000Z","updated_at":"2019-08-14T23:00:58.000Z","dependencies_parsed_at":"2023-01-15T00:22:34.616Z","dependency_job_id":null,"html_url":"https://github.com/ganeshnrao/gijit","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganeshnrao%2Fgijit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganeshnrao%2Fgijit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganeshnrao%2Fgijit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganeshnrao%2Fgijit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganeshnrao","download_url":"https://codeload.github.com/ganeshnrao/gijit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246465257,"owners_count":20781919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["jira-cli","jira-client","jira-git","jira-information"],"created_at":"2025-03-31T12:19:14.714Z","updated_at":"2025-03-31T12:19:15.278Z","avatar_url":"https://github.com/ganeshnrao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gijit\n\nThis tool loads JIRA information for your git branches, as long as your branches are named with the JIRA issue keys.\n\n## Installation\n\nInstall Gijit globally with the following.\n\n```\n$ npm install -g gijit\n```\n\nThe very first time you invoke `gijit` it will ask for your atlassian host, username and an API Token, which you can obtain by visiting https://id.atlassian.com/manage/api-tokens. This information will be stored in your home folder as a file `gijit.config.js`.\n\n```\n$ gijit\n```\n\n## Commands\n\n### `gijit all`\n\nShow information for all local branches. The response will look like the following.\n\n```\n┌────────────┬─────────────────────────┬──────┬──────────┬─────────┬──────────┬─────────┬────────┐\n│ Key        │ Summary                 │ Type │ Priority │ Status  │ Assignee │ Creator │ Labels │\n├────────────┼─────────────────────────┼──────┼──────────┼─────────┼──────────┼─────────┼────────┤\n│ DEV-5814   │ Create a get all page   │ Task │ Major    │ Open    │ foo.bar  │ baz.tar │ page   │\n├────────────┼─────────────────────────┼──────┼──────────┼─────────┼──────────┼─────────┼────────┤\n│ DEV-5975   │ Create a search feature │ Task │ Major    │ Open    │ foo.bar  │ baz.tar │ search │\n├────────────┼─────────────────────────┼──────┼──────────┼─────────┼──────────┼─────────┼────────┤\n│ DEV-6745 * │ Fix bug in show details │ Bug  │ Minor    │ Testing │ foo.bar  │ baz.tar │ detail │\n└────────────┴─────────────────────────┴──────┴──────────┴─────────┴──────────┴─────────┴────────┘\n```\n\n### `gijit detail`\n\nThis shows the detailed view for the JIRA item associated with the current branch.\n\n### `gijit detail \u003cissueKey\u003e`\n\nOptionally you can pass a JIRA issue key, e.g. `gijit detail DEV-1234`, and it will show information for issue with key `DEV-1234`.\n\n### `gijit search \u003cjiraQuery\u003e`\n\nThis will return the search results for any JIRA query, for example `gijit search 'assignee=foo.bar and status=open'`\n\n### `gijit open \u003cissueKey\u003e`\n\nThis will open the issue corresponding to the current branch in the default browser. If `issueKey` is given it will open that issue in the default browser.\n\n### `gijit comment`\n\nShow comments assocated with current branch\n\n### `gijit comment -i \u003cissueKey\u003e`\n\nShow comments associated with `issueKey`\n\n### `gijit comment -i \u003cissueKey\u003e -m \u003ccommentBody\u003e`\n\nAdd a comment to issue specified by `issueKey`, if not `-i` is not given then comment will be added to issue related with current branch\n\n### `gijit comment -i \u003cissueKey\u003e -c \u003ccommentId\u003e -m \u003ccommentBody\u003e`\n\nReplace comment specified by `commentId` with new `commentBody` for `issueKey`\n\n### `gijit user [\u003cquery\u003e]`\n\nIf no `query` is given show list of all users. If `query` string is provided, show users matching `query` string\n\n## Customization\n\nYou can customize how the items are rendered by editing the `gijit.config.js` file, and add a property called `config`. The following properties are allowed (and are the defaults).\n\n```js\n// contents of gijit.config.js\nmodule.exports = {\n  host: /* host */,\n  username: /* your username */,\n  password: /* your API token. To get an API token visit https://id.atlassian.com/manage/api-tokens */,\n  config: {\n    colors: true, // enable/disable colors\n    fields: {\n      key: { color: \"bold\" }, // any of the chalk colors are allowed\n      summary: { width: 80 },\n      issuetype: { color: \"cyan\" },\n      priority: { color: \"magenta\" },\n      status: { color: \"gray\" },\n      project: {},\n      assignee: { color: \"blue\" },\n      reporter: { color: \"green\" },\n      creator: { color: \"green\" },\n      created: { color: \"dim\" },\n      updated: { color: \"dim\" },\n      environment: { color: \"dim\" },\n      labels: { color: \"yellow\", width: 30 },\n      description: { width: 80 }\n    },\n    lineFields: [\n      // fields to be displayed in the table for\n      // `gijit all` and `gijit search` commands\n      \"key\",\n      \"summary\",\n      \"issuetype\",\n      \"priority\",\n      \"status\",\n      \"assignee\",\n      \"creator\",\n      \"labels\"\n    ]\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganeshnrao%2Fgijit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganeshnrao%2Fgijit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganeshnrao%2Fgijit/lists"}