Skip to content

Commit

Permalink
Correção ajuste largura colunas
Browse files Browse the repository at this point in the history
  • Loading branch information
Lariel authored Sep 12, 2024
1 parent a728900 commit 7b3560a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ function formatResult(pr) {
} else {
const vote = pr.reviewers[0] ? `| ${Votes[pr.reviewers[0].vote]}`.padEnd(colVoteWidth, ' ') : `| ${Votes[0]}`.padEnd(colVoteWidth, ' ');
const author = ` | ${ellipsis(pr.createdBy.displayName, colAuthorWidth).padEnd(colAuthorWidth, ' ')}`;
const sourceBranch = ` | ${ellipsis(formatBranchName(pr.sourceRefName), colBranchSourceWidth).padEnd(colBranchWidth, ' ')}`;
const targetBranch = ` | ${ellipsis(formatBranchName(pr.targetRefName), colBranchTargetWidth).padEnd(colBranchWidth, ' ')}`;
const sourceBranch = ` | ${ellipsis(formatBranchName(pr.sourceRefName), colBranchSourceWidth).padEnd(colBranchSourceWidth, ' ')}`;
const targetBranch = ` | ${ellipsis(formatBranchName(pr.targetRefName), colBranchTargetWidth).padEnd(colBranchTargetWidth, ' ')}`;
const title = ` | ${ellipsis(pr.title, colTitleWidth).padEnd(colTitleWidth, ' ')}`;
const url = ` | ${baseUrl}/_git/${pr.repository.name}/pullrequest/${pr.pullRequestId}`;
console.log(`${vote}${author}${sourceBranch}${targetBranch}${title}${url}`);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fetch-pullrequests",
"version": "0.3.3",
"version": "0.3.4",
"description": "CLI para buscar pull requests no Azure DevOps",
"main": "bin/index.js",
"repository": {
Expand Down

0 comments on commit 7b3560a

Please sign in to comment.