GitHub CLI now supports working with repositories locally

GitHub CLI 0.6 was just released with various bug fixes, improvements, and support for four new commands:

  • gh repo clone – clone a repository locally
  • gh repo create – create a new repository
  • gh repo fork – create a fork of a repository
  • gh repo view – view a repository in the browser

View the release notes · Download GitHub CLI

Please note: GitHub CLI is in early stages of development. We’d love to hear your feedback.

Starting April 6, 2020, Python 2 will no longer be offered on any hosted virtual environments. Python 2 was sunset on January 1, 2020 and is not being improved or taking security fixes.

If you're using setup-python, please update your workflows to use Python versions 3.x.

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
  with:
    python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
    architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- run: python my_script.py

For the latest updates, be sure to subscribe to the announcement in the actions/virtual-environments repository.

See more

Since shipping multi-line comments, many people have requested multi-line code suggestions as well.

You can now suggest a specific change to multiple lines of code when reviewing a pull request. To select a multi-line code block, you can either:

  • click and hold to the right of a line number, drag and then release the mouse when you’ve reached the last line of the desired selection; or
  • click on a line number, hold Shift, click on a second line number and click the "+" button to the right of the second line number.

Once you've selected the code block, click the diff icon and edit the text within the suggestion block.

Learn more about pull request comments and send us your feedback.

See more