Commit Graph

33 Commits (05fd9d3f096e53bcf80b73345d6fa567fbf017e6)

Author SHA1 Message Date
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
Unknwon 3f7f4852ef fully support of webhooks for pull request
Thibault Meyer 53c573ed02 Fix : Cannot edit release with tag name contains slash ()
Thibault Meyer 30fda0f1ae Fix : Release dont use tag creation date ()
* Fix : Release dont use tag creation date

* Simplify code and apply gofmt

* remove useless block (ctx.Repo.GitRepo.GetTag) on EditReleasePost

* apply gofmt on modified files
마누엘 fe60ca408b routers/repo/release: Use correct branch reference ()
When calculating the current behind commit count the calculation should
use the current release target to get the total commit count. Should the
release target not exist anymore the calculation will return zero for
the newest release on that target. Older releases on that target will then
use that calculated commit count as reference.

The only use case that is now somehow invalid is when the release target
was merged / deleted after a tag on that release target:

    master 1 - - - - - - - 6
            \             /
    branch   2 - 3 - 4 - 5

When `4` is the last tag on branch `branch` and the branch `branch` is not
yet deleted the calculated numbers would be:

    1 commits to branch since this release

Now if the branch `branch` gets deleted the calculation function will not
find the branch and use the commit count of the newest release (`4`) as
reference resulting in:

    0 commit to branch since this release

This fixes 
Unknwon 1f2e173a74 Refactor User.Id to User.ID
Unknwon c912494609 detect invalid tag name git error
Unknwon 514382e2eb Rename module: middleware -> context
Unknwon 9cf7f3e46f Remove duplicated of code
Unknwon d5a3021a7d Make markdown as an independent module
Martin Hartkorn 6b3e47b103 Removed HTTP 500 error on the release page when a user deleted their account
Unknwon 9a2e43bff2 move out git module and send push hook
Unknwon e538ff2770 fix and fix
Unknwon 987dcc5372 fix
Unknwon 29ed7872f8 repo sidebar active class
Unknwon 18de67380c fix
Unknwon 3a81fdf092 rename fields
Unknwon dea3a8c6a4 WIP: create PR - choose branch
Peter Smit ed89b39984 Updating context and fixing permission issues
The boolean flags in the repo context have been replaced with mode and two methods

Also, the permissions have been brought more in line with https://help.github.com/articles/permission-levels-for-an-organization-repository/ , Admin Team members are able to change settings of their repositories.
Unknwon bc8721fb6c Finish new UI for release page
Unknwon 23eec25274 Fix , fix , fix
Unknwon 5c4bc3c848 Huge updates!!!!! Be careful to merge!!!!
Unknwon 8dd07c0ddd New UI merge in progress
Unknown 314193029a Use constants to name template file
Unknown e07674bff1 Support edit release and save as draft
Unknown fb0972afad Fix
Unknown 9961f9a53c Fix
slene 7d84cc96e8 update with git api
Unknown 2a9da4b8e5 Fix
Unknown f644cefa86 Finish release
slene 52b4ab2aa5 update with new git
FuXiaoHei 3ede496383 add release-new route
Unknown db66b8da72 Add release tmpl