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

chore: change issue mail title. #7064

Merged
merged 2 commits into from
May 28, 2019
Merged

chore: change issue mail title. #7064

merged 2 commits into from
May 28, 2019

Conversation

appleboy
Copy link
Member

See: https://gitea.com/gitea/log/issues/9

before:

[log] Customize Color when with special interface (#9)

after:

[gitea/log] Customize Color when with special interface (#9)

@appleboy appleboy added the type/enhancement An improvement of existing functionality label May 28, 2019
@appleboy appleboy added this to the 1.9.0 milestone May 28, 2019
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 28, 2019
@codecov-io
Copy link

codecov-io commented May 28, 2019

Codecov Report

Merging #7064 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7064      +/-   ##
==========================================
- Coverage   41.44%   41.43%   -0.01%     
==========================================
  Files         442      442              
  Lines       59643    59643              
==========================================
- Hits        24717    24714       -3     
- Misses      31696    31699       +3     
  Partials     3230     3230
Impacted Files Coverage Δ
models/issue_mail.go 54.76% <100%> (ø) ⬆️
models/unit.go 62.16% <0%> (-5.41%) ⬇️
modules/process/manager.go 76.81% <0%> (-4.35%) ⬇️
models/repo_list.go 73.09% <0%> (+1.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd9ed96...2fec722. Read the comment docs.

@@ -16,7 +16,7 @@ import (
)

func (issue *Issue) mailSubject() string {
return fmt.Sprintf("[%s] %s (#%d)", issue.Repo.Name, issue.Title, issue.Index)
return fmt.Sprintf("[%s/%s] %s (#%d)", issue.Repo.OwnerName, issue.Repo.Name, issue.Title, issue.Index)
Copy link
Member

Choose a reason for hiding this comment

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

Could you confirm .OwnerName has been filled?

@@ -16,7 +16,7 @@ import (
)

func (issue *Issue) mailSubject() string {
return fmt.Sprintf("[%s] %s (#%d)", issue.Repo.Name, issue.Title, issue.Index)
return fmt.Sprintf("[%s/%s] %s (#%d)", issue.Repo.OwnerName, issue.Repo.Name, issue.Title, issue.Index)
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure that Repo.OwnerName is definitely set? If not we might need:

Suggested change
return fmt.Sprintf("[%s/%s] %s (#%d)", issue.Repo.OwnerName, issue.Repo.Name, issue.Title, issue.Index)
return fmt.Sprintf("[%s/%s] %s (#%d)", issue.Repo.MustOwnerName(), issue.Repo.Name, issue.Title, issue.Index)

But then you need to check that we're not in a session otherwise we might deadlock.

@appleboy
Copy link
Member Author

@lunny @zeripath change to issue.Repo.FullName()

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 28, 2019
@zeripath zeripath merged commit 66863ab into go-gitea:master May 28, 2019
@appleboy appleboy deleted the mail branch May 28, 2019 13:52
jeffliu27 pushed a commit to jeffliu27/gitea that referenced this pull request Jul 18, 2019
* chore: change issue mail title.

Signed-off-by: Bo-Yi Wu <[email protected]>

* change to fullname method

Signed-off-by: Bo-Yi Wu <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants