Skip to content

Feature Request: Expose Git Blame Functionality via API #34108

Open
@GuangYiDing

Description

@GuangYiDing

Feature Description

Title: Feature Request: Expose Git Blame Functionality via API

Description:
I would like to request the exposure of git blame functionality through Gitea's API. Currently, while Gitea provides comprehensive API endpoints for various Git operations, there appears to be no dedicated endpoint for retrieving git blame information programmatically.

Problem Statement:
Many modern development tools and integrations rely on blame data for features such as:
• Code authorship attribution
• Historical context for code reviews
• Integration with analytics/metrics platforms
• Traceability in debugging workflows

Platforms like GitHub, GitLab, and Gitee already provide native support for git blame through their APIs (GitHub example, GitLab example). Even indirect implementations (like Gitee's combination of file content and commit history APIs) offer workarounds. Gitea currently lacks this capability, forcing developers to implement local blame calculations or maintain alternative solutions.

Thank you for considering this request. I believe this addition would bring Gitea closer to parity with other major Git platforms while maintaining its lightweight advantages.

Screenshots

No response

Metadata

Metadata

Assignees

Labels

topic/apiConcerns mainly the APItype/proposalThe new feature has not been accepted yet but needs to be discussed first.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions