- ruby & gem
- bundler (install : gem install bundler)
bundle install
Copy config.rb.sample
to config.rb
and fill the constant, especially the ACCESS_TOKEN
.
In order to do so, go to your settings > Developer settings > Personal access tokens and click on the "generate new token" button. After
completing your password, you only need to limit the access to repo
to generate the token.
NOTE: remove the token afterwards.
bundle exec ruby copy.rb src_repo dst_repo
Example :
bundle exec ruby copy.rb interencheres/bootstrap basti1dr/imwatchingyou
You can run this project without installing a ruby env on your computer.
When you are in this project directory run this command (replacing XXX
with the repository you want to bootstrap) :
docker run -it --rm --mount type=bind,src=$(pwd -P),target=/root/app --workdir /root/app ruby:2.7-alpine sh -c "bundle install && ruby copy.rb Interencheres/bootstrap Interencheres/XXX"
Taken from Angular.
Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
The header is mandatory and the scope of the header is optional.
Any line of the commit message cannot be longer 100 characters! This allows the message to be easier to read on GitHub as well as in various git tools.
Must be one of the following:
- feat: A new feature
- fix: A bug fix
- doc: Documentation only changes
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- refactor: A code change that neither fixes a bug or adds a feature
- perf: A code change that improves performance
- test: Adding missing tests
- chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
The scope could be anything specifying place of the commit change.
The subject contains succinct description of the change:
- use the imperative, present tense: "change" not "changed" nor "changes"
- don't capitalize first letter
- no dot (.) at the end