move-github-repository

1.1.0 • Public • Published

move-github-repository

It make your repository "301 Moved Permanently".

It does:

  • Update description && homepage
  • Create "301_moved_permanently" branch that has a README.md
  • Set "301_moved_permanently" as default branch
    • It aim to preserve exist link

Install

Install with npm:

npm install -g move-github-repository

Usage

Usage
  $ GH_TOKEN=xxx move-github-repository --description "[[MOVED]]" --homepage http://example.com/new

Options
  --description -d Description repository
  --homepage -h    New URL
  
Env
  GH_TOKEN=xxx move-github-repository --description "[[MOVED]]" --homepage http://example.com/new

Examples
  $ GH_TOKEN=xxx move-github-repository --description "[[MOVED]]" --homepage http://example.com/new

Example

 GH_TOKEN="xxxx" move-github-repository -d "[301 Moved]" -h "https://github.com/azu/move-github-repository"

Result: https://github.com/azu/movemovemomvomeove

Also:

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

Package Sidebar

Install

npm i move-github-repository

Weekly Downloads

2

Version

1.1.0

License

MIT

Last publish

Collaborators

  • azu