Skip to content

Commit

Permalink
acerta ordenação colunas
Browse files Browse the repository at this point in the history
  • Loading branch information
Lariel authored Sep 4, 2024
1 parent 11246cb commit c3517f8
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 @@ -10,7 +10,7 @@ const INVALID_PARAMS = `Invalid params.`;

const colVoteWidth = 8;
const colAuthorWidth = 20;
const colBranchWidth = 50;
const colBranchWidth = 40;
const colTitleWidth = 50;
const separator = '+'.padEnd(colVoteWidth+1, '-')
.concat('+'.padEnd(colAuthorWidth+3, '-'))
Expand Down Expand Up @@ -101,9 +101,9 @@ function getPullRequests() {
//console.log('body: ', jsonBody);
console.log(separator);
const tableHead = '| STATUS'.padEnd(colVoteWidth, ' ')
.concat(' | AUTOR'.padEnd(colAuthorWidth+3, ' '))
.concat(' | ORIGEM'.padEnd(colBranchWidth+3, ' '))
.concat(' | DESTINO'.padEnd(colBranchWidth+3, ' '))
.concat(' | AUTOR'.padEnd(colAuthorWidth+3, ' '))
.concat(' | TITULO'.padEnd(colTitleWidth+3, ' '))
.concat(' | LINK');
console.log(tableHead);
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.1",
"version": "0.3.2",
"description": "CLI para buscar pull requests no Azure DevOps",
"main": "bin/index.js",
"repository": {
Expand Down

0 comments on commit c3517f8

Please sign in to comment.