Skip to content

PR Actions Are Not Shown When Title Is Long#6225

Merged
alexr00 merged 1 commit intomainfrom
alexr00/everyday-mandrill
Sep 11, 2024
Merged

PR Actions Are Not Shown When Title Is Long#6225
alexr00 merged 1 commit intomainfrom
alexr00/everyday-mandrill

Conversation

@alexr00
Copy link
Copy Markdown
Member

@alexr00 alexr00 commented Sep 11, 2024

Fixes #6222

@alexr00 alexr00 self-assigned this Sep 11, 2024
@alexr00 alexr00 enabled auto-merge (squash) September 11, 2024 18:05
@vs-code-engineering vs-code-engineering Bot added this to the September 2024 milestone Sep 11, 2024

const { title, number, author, isDraft, html_url } = this.pullRequestModel;

const labelTitle = this.pullRequestModel.title.length > 50 ? `${this.pullRequestModel.title.substring(0, 50)}...` : this.pullRequestModel.title;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: could the constant 50, which is currently in two separate files, be pulled out to a common file?

@alexr00 alexr00 merged commit 2205b45 into main Sep 11, 2024
@alexr00 alexr00 deleted the alexr00/everyday-mandrill branch September 11, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PR Actions Are Not Shown When Title Is Long

2 participants