Skip to content

Commit

Permalink
fix(owners): Remove repo separation and fix unreleased commits
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Mar 20, 2018
1 parent 12795c2 commit d634a65
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/sentry/static/sentry/app/views/organizationCommits.jsx
Expand Up @@ -68,9 +68,11 @@ export default class OrganizationCommits extends AsyncView {
commitList.forEach(commit => {
if (marker) {
releasedCommits.push(commit);
} else if (commit.releases.length) {
marker = true;
releasedCommits.push(commit);
} else {
unreleasedCommits.push(commit);
if (commit.releases.length) marker = true;
}
});

Expand All @@ -86,10 +88,16 @@ export default class OrganizationCommits extends AsyncView {
</ul>
</div>
)}
{releasedCommits.length &&
Object.keys(this.getCommitsByRepository(releasedCommits)).map(repository => {
return this.renderCommitsForRepo(repository, releasedCommits);
})}
{releasedCommits.length && (
<div className="panel panel-default">
<div className="panel-heading panel-heading-bold">Released</div>
<ul className="list-group list-group-lg commit-list">
{releasedCommits.map(commit => {
return <CommitRow key={commit.id} commit={commit} />;
})}
</ul>
</div>
)}
{commitListPageLinks && (
<Pagination pageLinks={commitListPageLinks} {...this.props} />
)}
Expand Down

0 comments on commit d634a65

Please sign in to comment.