[PR #1512] [MERGED] feat: add download count field and unit testing for attachment. #15936

Closed
opened 2025-11-02 11:58:22 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1512
Author: @appleboy
Created: 4/19/2017
Status: Merged
Merged: 4/20/2017
Merged by: @appleboy

Base: masterHead: attachment


📝 Commits (5)

📊 Changes

4 files changed (+158 additions, -9 deletions)

View changed files

📝 cmd/web.go (+5 -0)
📝 models/attachment.go (+22 -9)
models/attachment_test.go (+60 -0)
models/fixtures/attachment.yml (+71 -0)

📄 Description

  • Add download count field in attachment table. See GitHub API
  • Add unit testing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1512 **Author:** [@appleboy](https://github.com/appleboy) **Created:** 4/19/2017 **Status:** ✅ Merged **Merged:** 4/20/2017 **Merged by:** [@appleboy](https://github.com/appleboy) **Base:** `master` ← **Head:** `attachment` --- ### 📝 Commits (5) - [`5477184`](https://github.com/go-gitea/gitea/commit/547718487b49e31eb7681c5ed4eb0e603eda3728) feat: add download count field and unit testing. - [`f54b875`](https://github.com/go-gitea/gitea/commit/f54b8759c9e3b45ce439b13077f848d61cae5bed) fix: unit testing - [`8278ac9`](https://github.com/go-gitea/gitea/commit/8278ac976780fff9a42d2e1bbffba37a480b55e5) refactor: improve testing. - [`e7d605c`](https://github.com/go-gitea/gitea/commit/e7d605cb60cf2bfacdba48cb4433c2cf085f76a9) fix: update comment - [`e35bbb2`](https://github.com/go-gitea/gitea/commit/e35bbb2f1b2e195ab02de1c606367056e486de76) add default value. ### 📊 Changes **4 files changed** (+158 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `cmd/web.go` (+5 -0) 📝 `models/attachment.go` (+22 -9) ➕ `models/attachment_test.go` (+60 -0) ➕ `models/fixtures/attachment.yml` (+71 -0) </details> ### 📄 Description * Add download count field in `attachment` table. See [GitHub API](https://developer.github.com/v3/repos/releases/#get-a-single-release-asset) * Add unit testing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:58:22 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15936