Skip to content

Conversation

da-Kai
Copy link

@da-Kai da-Kai commented Oct 3, 2025

This PR updates the tooltip for Pull-Request triggered runs to show the PR title instead of the PR number.


I dont remember PR numbers, so having the title in the tooltip makes it much easier to recognize the right one 😊

Current
Screenshot 2025-10-03 231547

After
Screenshot 2025-10-03 224628

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 3, 2025
@github-actions github-actions bot added modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files labels Oct 3, 2025
@techknowlogick techknowlogick added the topic/ui Change the appearance of the Gitea UI label Oct 3, 2025
func (run *ActionRun) RefName() string {
payload, err := run.GetPullRequestEventPayload()
if err == nil && payload != nil && payload.PullRequest != nil {
return payload.PullRequest.Title
Copy link
Member

Choose a reason for hiding this comment

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

The function name does not match the pull request title.

Copy link
Author

Choose a reason for hiding this comment

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

@lunny Yeah, you are right. I renamed it to RefTooltip instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants