You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web/repo
ChristopherHX 2b8cfb557d
Artifacts download api for artifact actions v4 (#33510)
* download endpoint has to use 302 redirect
* fake blob download used if direct download not possible
* downloading v3 artifacts not possible

New repo apis based on GitHub Rest V3
- GET /runs/{run}/artifacts (Cannot use run index of url due to not
being unique)
- GET /artifacts
- GET + DELETE /artifacts/{artifact_id}
- GET /artifacts/{artifact_id}/zip
- (GET /artifacts/{artifact_id}/zip/raw this is a workaround for a http
302 assertion in actions/toolkit)
- api docs removed this is protected by a signed url like the internal
artifacts api and no longer usable with any token or swagger
  - returns http 401 if the signature is invalid
    - or change the artifact id
    - or expired after 1 hour

Closes #33353
Closes #32124

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 week ago
..
actions Artifacts download api for artifact actions v4 (#33510) 1 week ago
setting Enhance routers for the Actions runner operations (#33549) 2 weeks ago
activity.go Refactor template & test related code (#32938) 2 months ago
attachment.go Clarify path param naming (#32969) 2 months ago
blame.go Improve commits list performance to reduce unnecessary database queries (#33528) 2 weeks ago
branch.go Fix "redirect link" handling (#33440) 4 weeks ago
cherry_pick.go Support choose email when creating a commit via web UI (more) (#33445) 4 weeks ago
code_frequency.go Fix incorrect ref commit ID usage (#33331) 1 month ago
commit.go Improve commits list performance to reduce unnecessary database queries (#33528) 2 weeks ago
compare.go Improve commits list performance to reduce unnecessary database queries (#33528) 2 weeks ago
contributors.go Fix incorrect ref commit ID usage (#33331) 1 month ago
download.go Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987) 2 months ago
editor.go Support choose email when creating a commit via web UI (more) (#33445) 4 weeks ago
editor_test.go Clarify path param naming (#32969) 2 months ago
find.go Refactor template & test related code (#32938) 2 months ago
fork.go Refactor template & test related code (#32938) 2 months ago
githttp.go Clarify path param naming (#32969) 2 months ago
githttp_test.go Fix http protocol auth (#27875) 1 year ago
helper.go Refactor context RefName and RepoAssignment (#33226) 1 month ago
issue.go Merge updatecommentattachment functions (#33044) 2 months ago
issue_comment.go Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467) 2 months ago
issue_content_history.go Refactor DateUtils and merge TimeSince (#32409) 4 months ago
issue_dependency.go Trivial fixes (#33304) 1 month ago
issue_label.go Refactor template & test related code (#32938) 2 months ago
issue_label_test.go Remove duplicate "ResponseWriter.Status" method (#33346) 1 month ago
issue_list.go Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467) 2 months ago
issue_lock.go Move context from modules to services (#29440) 1 year ago
issue_new.go Fix various problems (artifact order, api empty slice, assignee check, fuzzy prompt, mirror proxy, adopt git) (#33569) 2 weeks ago
issue_page_meta.go Fix PR's target branch dropdown (#33589) 2 weeks ago
issue_pin.go Clarify path param naming (#32969) 2 months ago
issue_poster.go Support public code/issue access for private repositories (#33127) 1 month ago
issue_stopwatch.go Issue time estimate, meaningful time tracking (#23113) 3 months ago
issue_suggestions.go Rework suggestion backend (#33538) 2 weeks ago
issue_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_timetrack.go Make tracked time representation display as hours (#33315) 1 month ago
issue_view.go Add a option "--user-type bot" to admin user create, improve role display (#27885) 3 weeks ago
issue_watch.go Trivial fixes (#33304) 1 month ago
main_test.go make writing main test easier (#27270) 1 year ago
middlewares.go Refactor context repository (#33202) 1 month ago
migrate.go Refactor template & test related code (#32938) 2 months ago
milestone.go Refactor pagination (#33037) 2 months ago
packages.go Refactor context repository (#33202) 1 month ago
patch.go Support choose email when creating a commit via web UI (more) (#33445) 4 weeks ago
projects.go Use project's redirect url instead of composing url (#33058) 2 months ago
projects_test.go Clarify path param naming (#32969) 2 months ago
pull.go Improve commits list performance to reduce unnecessary database queries (#33528) 2 weeks ago
pull_review.go Refactor template & test related code (#32938) 2 months ago
pull_review_test.go Refactor older tests to use testify (#33140) 2 months ago
recent_commits.go Fix incorrect ref commit ID usage (#33331) 1 month ago
release.go Fix incorrect TagName/BranchName usages (#33279) 1 month ago
release_test.go Validate that the tag doesn't exist when creating a tag via the web (#33241) 1 month ago
render.go Fix incorrect ref "blob" (#33240) 1 month ago
repo.go Refactor web route handler (#33488) 3 weeks ago
search.go Fix incorrect ref commit ID usage (#33331) 1 month ago
search_test.go Improve grep search (#30843) 10 months ago
star.go Refactor web route handler (#33488) 3 weeks ago
topic.go Move context from modules to services (#29440) 1 year ago
transfer.go Refactor web route handler (#33488) 3 weeks ago
treelist.go Move context from modules to services (#29440) 1 year ago
view.go Refactor context repository (#33202) 1 month ago
view_file.go Simplify context ref name (#33267) 1 month ago
view_home.go Fix "redirect link" handling (#33440) 4 weeks ago
view_readme.go Refactor context repository (#33202) 1 month ago
view_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
watch.go Refactor web route handler (#33488) 3 weeks ago
webgit.go Support choose email when creating a commit via web UI (more) (#33445) 4 weeks ago
wiki.go Improve commits list performance to reduce unnecessary database queries (#33528) 2 weeks ago
wiki_test.go Remove duplicate "ResponseWriter.Status" method (#33346) 1 month ago