Hey there,
Xcode 13's Pull Request integration is designed with collaboration in mind. It does this by determining the pull request associated with your current checkout, presenting you with meaningful information.
Xcode determines the associated pull request by looking at your current checkout's upstream branch, and checking to see if there's an open pull request associated with that branch. In most cases you'd have origin
configured and some branch such as dev/toolbar_fix
. Xcode will query the host for the remote (say github.com) and ask if there's any pull requests currently open whose source branch is dev/toolbar_fix
. If it finds an open pull request, it will load it into Xcode. Once you browse around files in this context, Xcode will automatically find comments associated with those files. The changes navigator will display which files have comments on them, too.
Note, this can only work if you've added your GitHub account to Xcode in the accounts pane of Xcode's preferences.
You can find out more in tomorrow's session "Review code and collaborate in Xcode" https://developer.apple.com/videos/play/wwdc2021/10205/
Hope that helps