Skip to content

Commit

Permalink
Fix PR trophies (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjohn1922 authored Oct 23, 2020
1 parent b0ca760 commit c222172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/azdo-pr-dashboard.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==

// @name AzDO Pull Request Improvements
// @version 2.49.3
// @version 2.49.4
// @author Alejandro Barreto (National Instruments)
// @description Adds sorting and categorization to the PR dashboard. Also adds minor improvements to the PR diff experience, such as a base update selector and per-file checkboxes.
// @license MIT
Expand Down Expand Up @@ -442,7 +442,7 @@
// Adds a "Trophies" section to the Overview tab of a PR for a qualifying PR number
function addTrophiesToPullRequest() {
// Pull request author is sometimes undefined on first call. Only add trophies if we can get the author name.
const pullRequestAuthor = $('div.ms-TooltipHost.host_e6f6b93f.created-by-label').children('span').text();
const pullRequestAuthor = $('div.vc-pullrequest-created-by-section.row-group').children('div.ms-TooltipHost').children('span').text();

// Only create the trophies section once.
if ($('#trophies-section').length === 0 && pullRequestAuthor.length !== 0) {
Expand Down

0 comments on commit c222172

Please sign in to comment.