{"id":41739223,"url":"https://github.com/chltjdrhd777/gitip","last_synced_at":"2026-01-25T00:11:10.052Z","repository":{"id":242633262,"uuid":"810017217","full_name":"chltjdrhd777/gitip","owner":"chltjdrhd777","description":"⚙️ CLI tool for easy GitHub workflow","archived":false,"fork":false,"pushed_at":"2025-07-19T12:33:43.000Z","size":739,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T05:23:21.895Z","etag":null,"topics":["github","github-api","typescript-library"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gitip","language":"TypeScript","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/chltjdrhd777.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-03T22:28:51.000Z","updated_at":"2025-10-04T00:51:23.000Z","dependencies_parsed_at":"2024-08-08T04:11:23.770Z","dependency_job_id":"b9db5dc1-b45e-41fe-80dc-8e3ffa63858c","html_url":"https://github.com/chltjdrhd777/gitip","commit_stats":null,"previous_names":["chltjdrhd777/gitip"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chltjdrhd777/gitip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chltjdrhd777%2Fgitip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chltjdrhd777%2Fgitip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chltjdrhd777%2Fgitip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chltjdrhd777%2Fgitip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chltjdrhd777","download_url":"https://codeload.github.com/chltjdrhd777/gitip/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chltjdrhd777%2Fgitip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28739381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T22:12:27.248Z","status":"ssl_error","status_checked_at":"2026-01-24T22:12:10.529Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["github","github-api","typescript-library"],"created_at":"2026-01-25T00:11:09.392Z","updated_at":"2026-01-25T00:11:10.046Z","avatar_url":"https://github.com/chltjdrhd777.png","language":"TypeScript","readme":"# 🌟 **gitip** 🌟\n\n\u003cp align=\"center\"\u003e✨ A handy CLI tool to manage GitHub issues \u0026 pull requests with ease ✨\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/chltjdrhd777/image-hosting/refs/heads/main/gitip/gitip-hero.png\" title=\"gitip-logo\" width=\"70%\" /\u003e\n\u003c/p\u003e\n\n## 🚀 **Getting Started**\n\n### Installation\n\n```sh\n# Install globally\nnpm install gitip -g\ngitip\n\n# Or run directly with npx\nnpx gitip\n```\n\n### Usage\n\n```sh\n1. Selection mode\ngitip\n\n2. Quick command mode\ngitip i # or gitip issue\ngitip p # or gitip pr\ngitip s # or gitip sync\ngitip c # or gitip clean\n```\n\n## 📋 **Environment Setup**\n\n### 1. Environment Configuration\n\nBy default, this tool operates in the **fork repo system** mode. ✨\n\nIf you prefer to use the **origin repo system** mode, simply include the `ORIGIN_REPO_OWNER` variable in your `.env` file. When `ORIGIN_REPO_OWNER` is detected, the tool will automatically switch to **origin repo system** mode, allowing you to interact directly with the original repository. 🚀\n\n\u003e - `fork repo system` = manage issues and pull requests in a **forked repository**\n\u003e - `origin repo system` = manage issues and pull requests directly in the **original repository**\n\n---\n\n## 🔧 Example Configurations\n\n### 🔄 Environment Priority Loading\n\nThis tool determines which `.env` file to load based on the following priority order:\n\n1. `.env.local`\n2. `.env.test`\n3. `.env.development`\n4. `.env.production`\n5. Any other `.env.*` file (e.g., `.env.staging`, `.env.custom`)\n6. `.env`\n\nIf multiple `.env` files are present, the file with the highest priority will be loaded.\n\n\u003e 💡 If you want to initialize the environment variables required, It is recommended to use the `init` command.\u003cbr/\u003e Please refer to the [**Commands**](#commands) section for more information.\n\n---\n\n### 🔄 Fork Repo System Configuration\n\nUse the following setup for working with a **forked repository**:\n\n```env\nGIT_ACCESS_TOKEN=your-github-access-token\nFORK_REPO_OWNER=fork-repo-owner-name\nUPSTREAM_REPO_OWNER=upstream-repo-owner-name\nREPO_NAME=repository-name\nDEFAULT_BRANCH_NAME=default-branch-name\nTEMPLATE_TITLE_PLACEHOLDER=(optional) issue template title placeholder\n```\n\n---\n\n### 🔗 Origin Repo System Configuration\n\nUse the following setup for working directly with the **original repository**:\n\n```env\nGIT_ACCESS_TOKEN=your-github-access-token\nORIGIN_REPO_OWNER=origin-repo-owner-name\nREPO_NAME=repository-name\nDEFAULT_BRANCH_NAME=default-branch-name\nTEMPLATE_TITLE_PLACEHOLDER=(optional) issue template title placeholder\n```\n\n---\n\n## 📝 Notes\n\n- ✅ If the `ORIGIN_REPO_OWNER` variable is present in the `.env` file, **gitip automatically switches to origin repo system mode**.\n- 🚫 If `ORIGIN_REPO_OWNER` is missing, the tool defaults to **fork repo system mode**.\n- 🔍 The tool checks for `.env` files in the current directory and loads them based on the priority described above.\n- ⚠️ Ensure all required variables are included in the selected `.env` file to avoid runtime errors.\n\n### 3. Issue Templates\n\nThis tool uses GitHub issue templates. If a template isn't available, the default template will be used. To use a specific template, set the `TEMPLATE_TITLE_PLACEHOLDER` variable in your `.env` file.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/chltjdrhd777/image-hosting/blob/main/gitip-issuetemplate.png?raw=true\" width=\"80%\" title=\"issue-template\" /\u003e\n\u003c/p\u003e\n\n## ✨ **Features**\n\n### 🖊️ 1. Create an Issue\n\n- Easily create GitHub issues with just a few steps.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/chltjdrhd777/image-hosting/refs/heads/main/gitip/gitip-issue.gif\" width=\"70%\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/chltjdrhd777/image-hosting/refs/heads/main/gitip/gitip-issue-result.png\" width=\"70%\" /\u003e\n\u003c/p\u003e\n\n### 📑 2. Create a Pull Request\n\n[Prerequisite]\n\n1. Commit your changes.\n2. Select \"Create a pull request.\"\n\n- The pull request title is automatically suggested based on your latest commit message. However, only commits with conventional prefixes (like `feat:`, `test:`, `fix:`, etc.) will be extracted. For commits without these prefixes, you'll need to enter the title manually.\n- Related issues are automatically closed when the pull request is merged (if the base branch is the default branch).\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/chltjdrhd777/image-hosting/refs/heads/main/gitip/gitip-pr.gif\" width=\"70%\" /\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"\nhttps://raw.githubusercontent.com/chltjdrhd777/image-hosting/refs/heads/main/gitip/gitip-pr-result.png\" width=\"70%\" /\u003e\n\u003c/p\u003e\n\n\u003e [!NOTE]\n\u003e To use the \"close\" keyword for related issues, the base branch must be the default branch.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/chltjdrhd777/image-hosting/blob/main/gitip-default-branch.png?raw=true\" width=\"70%\" /\u003e\n\u003c/p\u003e\n\n### 🔄 3. Synchronize Fork with Origin\n\nKeep your fork updated with the origin branch effortlessly.\n\n**😭 Manual Method (Not Recommended)**:\n\u003cbr/\u003e \u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/chltjdrhd777/image-hosting/blob/main/sync.png?raw=true\" width=\"70%\" /\u003e\u003c/p\u003e\n\n\u003ch2\u003e**☺️ Recommended Method (with gitip sync)**\u003c/h2\u003e\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/chltjdrhd777/image-hosting/refs/heads/main/gitip/gitip-sync.gif\" width=\"70%\" /\u003e\u003c/p\u003e\n\n### 🗑️ 4. Clean Up Unused Issue Branches\n\nRemove unused branches locally and remotely with ease.\n\n#### 1. Local Debris:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/chltjdrhd777/image-hosting/blob/main/issue-debris-from-local.png?raw=true\" width=\"70%\" /\u003e\n\u003c/p\u003e\n\n#### 2. Fork Debris:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/chltjdrhd777/image-hosting/blob/main/issue-debris-from-fork.png?raw=true\" width=\"70%\" /\u003e\n\u003c/p\u003e\n\n#### 3. Cleaned State:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/chltjdrhd777/image-hosting/blob/main/clean%20issue%20branches.gif?raw=true\" width=\"70%\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/chltjdrhd777/image-hosting/blob/main/issue-clean2.png?raw=true\" width=\"70%\" /\u003e\n\u003c/p\u003e\n\n## 📜 **CLI Commands**\n\n### General Options:\n\n- **`-o, --origin`**: Use origin repository (default is fork).\n- **`-v, --version`**: Display the current version.\n- **`-h, --help`**: Show help message.\n\n### Commands:\n\n#### **`init`**\n\n- Initialize default `.env` file with required environment variables.\n- This command will create or update the `env` file in your current directory.\n- **Usage**: `gitip init`\n\n#### **`issue` | `i`**\n\n- Manage GitHub issues: Create, update, or retrieve issues.\n- **Usage**: `gitip i`\n\n#### **`pr` | `p`**\n\n- Manage GitHub pull requests: Create, update, or list pull requests.\n- **Usage**: `gitip p`\n\n#### **`sync` | `s`**\n\n- Synchronize your fork with the origin repository.\n- **Usage**: `gitip s`\n\n#### **`clean` | `c`**\n\n- Remove unused branches locally or remotely.\n- **Usage**: `gitip c`\n\n## 💡 **Pro Tips**\n\n- Use the `TEMPLATE_TITLE_PLACEHOLDER` environment variable to customize your issue titles.\n- Keep your `.env` files updated for both fork and origin systems.\n\nEnjoy managing your GitHub repositories with **gitip**! 😊\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchltjdrhd777%2Fgitip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchltjdrhd777%2Fgitip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchltjdrhd777%2Fgitip/lists"}