MyGit

arusahni/git-req

Fork: 8 Star: 56 (更新于 1970-01-01 00:00:00)

license: MIT

Language: Rust .

Check out merge requests from your GitLab/GitHub hosted repositories from the command line with just the request number.

最后发布版本: v2.5.0 ( 2023-04-16 21:40:59)

官方网址 GitHub网址

Github build status Latest version

git-req

Check out merge requests from your GitLab/GitHub hosted repos with ease!

Why?

jrdev: Hey @aru, can you verify the issue you reported is fixed by mr 17?
aru: Oh? OK.
aru switches to a browser, navigates to his org's GitLab instance, finds the project, clicks to the merge requests view, finds the MR, reads the branch name (hotfix/jrdevs_new_branch), switches back to the terminal, inputs git checkout hotfix/jrdevs_new_branch (no typos!), and starts reviewing.


That sucks. Too much context switching, too many clicks. You know what's easier?

$ git req 17
Switched to branch 'hotfix/jrdevs_new_branch'

That's exactly what git-req does.

Installation

  1. Install it:

The first time you run git req <#> it will prompt you for API credentials; use a Personal Access Token. This wiki page has instructions on locating these on both GitLab and GitHub.

Configuration

git-req maintains two levels of configuration: Global and Project.

Global

Per-domain API keys are stored in the global scope, so your API keys can be used across projects.

To clear the API key: git req --clear-domain-key To change the API key: git req --set-domain-key NEW_KEY

Project

Project IDs are stored in the project scope. This ID is tied to the git host being used. If you change your upstream remote, you may have to edit this property.

To clear the project ID: git req --clear-project-id To change the project ID: git req --set-project-id PROJECT_ID

Completions

Completions are available for ZShell, Bash, and Fish shells.

ZShell

git req --completions zsh > /path/to/zfunc/location/_git-req
rm ~/.zcompdump
exec zsh

Bash

git req --completions bash > git-req-completions.sh
source git-req-completions.sh  # add this to your .bashrc!

Fish

git req --completions fish > git-req-completions.fish
source git-req-completions.fish

Contributing

Contributions are welcome! I'm especially looking for:

  • Supporting other services (e.g. BitBucket).
  • Rust code reviews. This is my first non-trivial Rust project, so I'd love to be corrected on best practices and patterns.

Non-binary Version

The last non-binary version of this was v1.0.0. If you don't wish to run (or compile) the Rust executable, feel free to use it.

最近版本更新:(数据更新于 1970-01-01 00:00:00)

2023-04-16 21:40:59 v2.5.0

2022-08-01 06:53:52 v2.4.1

2021-06-28 00:17:33 v2.4.0

2021-04-09 08:52:09 v2.3.0

2021-01-17 03:25:31 v2.2.1

2020-03-04 10:37:45 v2.2.0

2020-02-20 11:08:30 v2.2.0-rc.2

2020-02-11 12:06:30 v2.2.0-rc.1

2020-02-09 12:25:30 v2.2.0-rc.0

2019-09-20 09:25:41 v2.1.0

主题(topics):

cli, git, gitextensions, github, gitlab, hacktoberfest, merge-requests

arusahni/git-req同语言 Rust最近更新仓库

2024-11-24 11:02:32 lapce/lapce

2024-11-23 21:43:05 gleam-lang/gleam

2024-11-22 05:42:56 lanyeeee/jmcomic-downloader

2024-11-22 01:44:25 surrealdb/surrealdb

2024-11-11 22:51:00 tauri-apps/tauri

2024-11-11 07:55:30 dani-garcia/vaultwarden