- 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.
45 lines
747 B
Plaintext
45 lines
747 B
Plaintext
meta {
|
|
name: Test Repository Connection
|
|
type: http
|
|
seq: 3
|
|
}
|
|
|
|
post {
|
|
url: {{baseUrl}}/api/git-repos/1/test
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
headers {
|
|
Accept: application/json
|
|
Cookie: {{sessionCookie}}
|
|
}
|
|
|
|
docs {
|
|
# Test Repository Connection
|
|
|
|
Tests if the repository connection is working correctly by fetching the first 10 commits.
|
|
|
|
## Response
|
|
```json
|
|
{
|
|
"success": true,
|
|
"message": "Repository connection successful!",
|
|
"details": {
|
|
"commits": 10,
|
|
"firstCommit": "abc123d: Add new feature",
|
|
"provider": "github|gitea|local"
|
|
}
|
|
}
|
|
```
|
|
|
|
## Error Response
|
|
```json
|
|
{
|
|
"success": false,
|
|
"error": "Connection failed: ...",
|
|
"hint": "Check owner/repo/branch settings"
|
|
}
|
|
```
|
|
}
|