Review & merge a pull request
You can check and review code differences right in Backlog.
First, go to the “Files” tab.
![Go to the “Files” tab](/static/25348215e5549359fd8824eedc940947/5a190/01.png)
If you find something that needs to be modified, you can comment right on the source code.
Just hover over the target row and click the plus button that appears.
![Hover over the target row and click the plus button that appears](/static/1163e17013c9b05e305c35ba0c99f8f9/5a190/02.png)
Enter any changes and the users you want to inform about them. Then click “Submit.”
![click “Submit”](/static/e7d53deac23736017fb694b641392fde/5a190/03.png)
Your comments are embedded inline in the source code and also posted to the “Comment” tab.
![Also posted to the “Comment” tab](/static/7c94dfc9641d1369a375b07f3d9c028d/5a190/04.png)
After reviewing the comments on the pull request we added earlier and modify the source code accordingly.
var sortNumber = function (number) {
number.sort(function (a, b) {
if (a === b) {
return 0;
}
return a < b ? -1 : 1;
});
};
var number = [19, 3, 81, 1, 24, 21];
sortNumber(number);
console.log(number);
Now that the correction is complete, commit and push again.
$ git add sort.js
$ git commit -m "<commit_message>"
$ git push origin add-sort-func
“Fix to use the strict equality operator (===)”
Comment on the pull request we created earlier indicating that it’s fixed.