Skip to content

Commit

Permalink
DOP-4549 logging repo length
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Apr 16, 2024
1 parent 5c7ce0b commit fdf8aaf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/services/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ export class SlackConnector implements ISlackConnector {

async displayRepoOptions(repos: string[], triggerId: string, isAdmin: boolean): Promise<any> {
const reposToShow = this._buildDropdown(repos);
console.log(reposToShow.length);
console.log(reposToShow[reposToShow.length - 1]);
const repoOptView = this._getDropDownView(triggerId, reposToShow, isAdmin);
const slackToken = this._config.get<string>('slackAuthToken');
const slackUrl = this._config.get<string>('slackViewOpenUrl');
Expand Down Expand Up @@ -212,7 +210,14 @@ export class SlackConnector implements ISlackConnector {
type: 'plain_text',
text: 'group 1',
},
options: repos,
options: repos.slice(0, 50),
},
{
label: {
type: 'plain_text',
text: repos.length,
},
options: repos.slice(50, -1),
},
],
},
Expand Down

0 comments on commit fdf8aaf

Please sign in to comment.