myCRM/bruno/Git Integration/Get Commits.bru
olli 1e02439e8a feat: Implement project ownership and team member management with access control
- Added owner and team members relationships to the Project entity.
- Updated ProjectRepository to find projects based on user ownership or team membership.
- Enhanced ProjectVoter to manage view, edit, and delete permissions based on ownership and team membership.
- Created ProjectAccessExtension to filter projects based on user access.
- Updated ProjectManagement.vue to include owner and team member selection in the UI.
- Implemented API endpoints for managing Git repositories with proper access control.
- Added migration to update the database schema for project ownership and team members.
2025-11-14 10:49:54 +01:00

53 lines
937 B
Plaintext

meta {
name: Get Commits
type: http
seq: 4
}
get {
url: {{baseUrl}}/api/git-repos/1/commits?branch=main&limit=50
body: none
auth: none
}
params:query {
branch: main
limit: 50
}
headers {
Accept: application/json
Cookie: {{sessionCookie}}
}
docs {
# Get Commits
Fetches commit history for a specific repository and branch.
## Query Parameters
- `branch`: Git branch name (default: 'main')
- `limit`: Number of commits to fetch (default: 100)
## Response
```json
{
"commits": [
{
"hash": "abc123def456...",
"shortHash": "abc123d",
"subject": "Add new feature",
"body": "Detailed commit message...",
"author": "John Doe",
"email": "john@example.com",
"date": "2025-11-14T10:30:00+00:00"
}
]
}
```
## Caching
- Cached for 15 minutes (900 seconds)
- Cache key includes repository ID, branch, and limit
}