Differentiate non-PR commits
Currently "Commits" tab on deploy page shows all commits. There is no way to see if there are commits that aren't part of a PR (eg. commits directly to master). This is especially dangerous if deploying somebody else's code. How about greying-out PR commits, or use bold for non-PR commits? Thoughts?
Or maybe show PR number next to each commit, like this?

@fneves @pswadi-zendesk @steved555 is this a good idea?
Yeah, I kind of like it, might be really useful.
damn, it's a bit more complicated than what I thought. I'd have to find all commits per every pull request. N+1 HTTP request problem. Doesn't seem like a godd idea any more :cry:
Oh huh, I guess I thought they would've added that feature to the API too. Hopefully they will.
I like the idea. Can't we just list all the PRs with one call and, on the local repo, calculate all the commits that belong to that PR? It should just be a matter of following the parent of the merge commit up to the fork-point.
GitHub support suggested we use their issue search api and query quth commit sha. Something like https://api.github.com/search/issues?q=08e7991%20repo:zendesk/samson would return the following:
{
"total_count": 1,
"items": [{
"html_url": "https://github.com/zendesk/samson/pull/210",
"number": 210,
"title": "use a karma helper for angular testing",
// ...
}]
}
@fneves good idea using local repo. Pull Request API returns head and base commit sha, so it's a matter of checking which commits are part of which base..head.