Skip to content

Release date keeps getting updated even if you're updating the content of the release notes #12341

@richmahn

Description

@richmahn
  • Gitea version (or commit ref): 1.12.2
  • Git version: 2.14.5
  • Operating system: MacOS
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

When I make a release, the created unix time gets set to the time I make the release, no the commit, which is right.

Yet if I now update my release by editing its content, its date changes.

This is a problem if I update an old release, such as tell users not to use, it becomes the release at the top of the release page!

Related to this change: #11218

Basically you should only change the release created_unix if it is making an actual tag (going from Draft to pre-release or release), do not touch it if updating a release or pre-release.

...

Screenshots

On try.gitea.io, making two releases v1, then v2, then edit v1. It now is at the top.

Screen Shot 2020-07-27 at 3 39 54 PM
Screen Shot 2020-07-27 at 3 40 14 PM
Screen Shot 2020-07-27 at 3 40 32 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions