Skip to content

jkup/pr-checkout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub PR Fetcher

This is a Rust command-line application that fetches and checks out a GitHub pull request based on the PR number.

Installation

To install the application, you will need to have Rust and Cargo installed on your system. If you don't have Rust and Cargo installed, you can download them from the official Rust website: https://www.rust-lang.org/tools/install

Once Rust and Cargo are installed, clone the repository and navigate into the project directory:

git clone https://github.com/username/repo.git
cd repo

Usage

To fetch and check out a pull request, run the following command:

cargo run -- <repository_url> <pr_number>

Replace <repository_url> with the URL of the GitHub repository, and <pr_number> with the number of the pull request you want to fetch and check out.

For example:

cargo run -- https://github.com/username/repo.git 123

This will fetch and check out pull request #123 in the username/repo repository.

Tests

To run the tests, execute the following command:

cargo test

This will compile and run the tests, and display the results in the terminal.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

learn rust by making a simple tool to checkout fork PR branches locally

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages