Skip to main content

Commit and Review

Once you're satisfied with the changes you've made in Superblocks, it's time to commit your changes to Git and start getting them reviewed. We recommend committing frequently so you can track your progress and maintain a well-documented history of your work using Git.

Commit and push

Creating commits and pushing them to your Git repository is as simple as clicking a button. When you create a commit in Superblocks, it's immediately pushed to the corresponding branch in your repository.

To create a commit:

  1. Click the Version Control panel icon
  2. Scroll to Committed changes
  3. Enter your commit message
  4. Click Create new commit

Retry failed pushes

In some cases, Superblocks may fail to push your commit to your remote repository. To repush a failed commit:

  1. Click on the Version Control panel icon
  2. Scroll to the Committed changes section
  3. Find the failed commit and click into its options menu
  4. Click Retry push

Viewing changes

After your commit has been pushed to your remote repository, you can view the code diff for your commit by opening the commit in your repo. To open your commit quickly:

  1. Click on the Version Control panel icon
  2. Scroll to the Committed changes section
  3. Find the commit you want to view
  4. Click View in GitHub or View in GitLab

This will open the code diff for your change in your repository to easily see what was changed in that commit.

Reviewing changes

With changes pushed to your repository, you're ready to get feedback by creating a merge request or sharing a Branch Preview to get feedback on your live Application.

Create a merge request

You can open pull requests for your branch quickly from right inside the Superblocks UI. To open a PR:

  1. Click on the Version Control panel icon
  2. Scroll to the Committed changes section
  3. Click the Create a Merge Request button

This will take you to your Git repository where you can compare all the commits on your branch to the current state of the default branch of your repo. Open the PR to start getting feedback on your changes.

Share Branch Preview

Every branch in Superblocks comes with a dedicated Branch Preview that's pinned to the latest commit on that branch. Share Branch Previews with your stakeholders so they can QA changes or offer feedback on your newest feature before it's released.

To access branch previews, simply:

  1. Navigate to the Application you want to share
  2. Switch to the branch with your changes
  3. Click Preview
  4. Share the URL with your team

Branch Previews are viewable by any of your Application's viewers, making it easy to get buy-in from end-users before deploying.

What's next?

With your changes pushed to your repository, you're ready to open a PR to have your changes reviewed. From here, learn more about: