Skip to content

Multi-line code suggestions beta

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.

Since shipping multi-line comments back in October, we've heard feedback that many people expected selecting a range of lines and then clicking the "+" button would also create a multi-line comment. Today, you can do just that.

To leave a comment referencing multiple lines, you can either:

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

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

See more

Starting March 3rd, 2020, the Ubuntu virtual environments will no longer start the MySQL service automatically. If you are using MySQL, this may be a breaking change for your workflows. To keep using MySQL, you'll need to start the service as part of your job:

- run: |
    sudo /etc/init.d/mysql start

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

See more