Pull requests
Pull requests let you tell others about changes you've pushed to a lightweight branch in StarTeam server from a StarTeam GIT client. The Pulse Code review tool supports Pull requests for StarTeam GIT clients beginning with version 17.1 of the StarTeam server.
Once a pull request is created, you can discuss and review the potential changes with other team members and add follow-up commits before your changes are merged into the base branch. To enable pull requests for a parent view, the view must be registered in Pulse and should be configured in Pulse to create pull requests from child streams.
The workflow for creating “Pull requests” from StarTeam GIT client is:
- Clone a project (main/release view) from StarTeam server to a local GIT repository. For example, if you need to make changes in view Release1.0 under Project “DemoProject”, clone view “Release1.0”.
-
To use pull requests, “Release1.0” view needs to be registered in Pulse and configured to create pull requests automatically from child streams.
- Create a new branch, for example “Feature” off the master branch, in the local GIT repository.
- Make your code changes in the “Feature” branch and commit to the local GIT repository.
- Push the changes to the StarTeam server once the changes are complete. The git push command will create a new “lightweight activity” view under Release1.0 view called “Feature” and propagate all your changes to that view on StarTeam server.
- A Pull request is automatically created in Pulse and should be published and sent for review to other reviewers.
- Additional changes that are pushed to “Feature” view will automatically become a part of the same pull request.
- When the pull request is approved after review, it can be committed by clicking on “Merge pull request” button on the Pull request. The lightweight view can be optionally deleted from Pulse page by clicking on the “Delete stream” button at the bottom of the Pull request.
To create a regular branch of all views on StarTeam during a push command, from command line, use the git push create-branch-all-view option on the command line, as follows:
git push –o create-branch-all-view