Gitea Service: Use single release page (>= 1.12) #47
No reviewers
Labels
No Label
breaking
bug
build
duplicate
enhancement
feature
help wanted
invalid
lgtm
done
lgtm
need 1
question
skip-changelog
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/changelog#47
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "6543/gitea_changelog_tool:gitea-service-change-tag-URL"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
close #42
@ -38,6 +38,9 @@ func (ge *Gitea) Generate() (string, []Entry, error) {
}
tagURL := fmt.Sprintf("## [%s](%s/%s/%s/%s?q=&type=all&state=closed&milestone=%d) - %s", ge.Milestone, ge.BaseURL, ge.Owner, ge.Repo, from, milestoneID, time.Now().Format("2006-01-02"))
if err := client.CheckServerVersionConstraint(">=1.12"); err == nil {
Should also check if changelog from pulls. I mean
!(ge.Issues)
Sorry. Missclick. did not want to approve
@jaqra and why?
@ -87,0 +88,4 @@
if err := c.CheckServerVersionConstraint(">=1.12"); err == nil {
return fmt.Sprintf("## [%s](%s/%s/%s/releases/tag/%s) - %s", mileName, baseURL, owner, repo, mileName, time.Now().Format("2006-01-02"))
}
return fmt.Sprintf("## [%s](%s/%s/%s/%s?q=&type=all&state=closed&milestone=%d) - %s", mileName, baseURL, owner, repo, from, mileID, time.Now().Format("2006-01-02"))
I tend to want the happy path at the end of the func, but if this is how it's styled in other places that's fine.
no problem will change it
Ignore my comment :)