Skip to content

Commit

Permalink
Merge pull request #236 from alejandro5042/addResizeToBuildPanels
Browse files Browse the repository at this point in the history
Add Resize handle to build left panel
  • Loading branch information
humberto-garza authored Jun 7, 2024
2 parents 243b173 + 81f778f commit 0f26cb2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/azdo-pr-dashboard.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==

// @name More Awesome Azure DevOps (userscript)
// @version 3.7.3
// @version 3.7.4
// @author Alejandro Barreto (NI)
// @description Makes general improvements to the Azure DevOps experience, particularly around pull requests. Also contains workflow improvements for NI engineers.
// @license MIT
Expand Down Expand Up @@ -115,6 +115,7 @@
watchForWorkItemForms();
watchForNewDiffs(isDarkTheme);
watchForShowMoreButtons();
watchForBuildResultsPage();

if (atNI) {
watchForDiffHeaders();
Expand Down Expand Up @@ -1435,6 +1436,14 @@
});
}

function watchForBuildResultsPage() {
eus.onUrl(/\/(_build\/results)/gi, (session, urlMatch) => {
session.onEveryNew(document, '.bolt-master-panel', panel => {
$(panel).css('resize', 'horizontal');
});
});
}

async function enhancePullRequestRow(row, sectionTitle) {
const pullRequestUrl = new URL(row.href, window.location.origin);
const pullRequestId = parseInt(pullRequestUrl.pathname.substring(pullRequestUrl.pathname.lastIndexOf('/') + 1), 10);
Expand Down

0 comments on commit 0f26cb2

Please sign in to comment.