Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] runbot: add a widget for pull requests url's #1009

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

d-fence
Copy link
Contributor

@d-fence d-fence commented Dec 6, 2024

While it's useful to have a clickable link to the fixing pull request on the runbot error list, we cannot display the entire url as it takes too much space. So a static text View PR is used.

As this static text is of limited use, this commit adds a new widget that displays a shortened URL for the github pull request only showing the repo and the PR number.

@C3POdoo C3POdoo requested a review from a team December 6, 2024 11:08
@d-fence d-fence requested a review from Xavier-Do December 6, 2024 12:22
@d-fence d-fence force-pushed the 17.0-runbot-pr-widget-moc branch from dea41d9 to 30124cf Compare December 23, 2024 09:40
@d-fence d-fence changed the base branch from 17.0 to 18.0 December 23, 2024 09:41
Copy link
Contributor

@Williambraecky Williambraecky left a comment

Choose a reason for hiding this comment

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

LGTM :)

d-fence and others added 3 commits January 22, 2025 15:23
While it's useful to have a clickable link to the fixing pull request
on the runbot error list, we cannot display the entire url as it takes
too much space. So a static text `View PR` is used.

As this static text is of limited use, this commit adds a new widget
that displays a shortened URL for the github pull request only showing
the repo and the PR number.
Supports the format (?owner)/repo#id in the `_search_dname` method.
@Williambraecky Williambraecky force-pushed the 17.0-runbot-pr-widget-moc branch from 30124cf to f788ddf Compare January 22, 2025 14:27
Copy link
Contributor

@Williambraecky Williambraecky left a comment

Choose a reason for hiding this comment

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

@d-fence Since we display branches with yet another format I added support for that format in the branch search name.

@Williambraecky Williambraecky merged commit c9c31f8 into 18.0 Jan 22, 2025
3 checks passed
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.

2 participants