Viewing issues
Access the issues list for any repository at/$owner/$repo/issues. The issues page displays:
Issue title
The main title of each issue, clickable to view full details
Issue number
Auto-incrementing number unique within the repository (e.g., #1, #2, #3)
Creator information
Username of the person who created the issue
Creation time
Relative timestamp showing when the issue was opened (e.g., “2 hours ago”)
Empty state
If a repository has no issues, you’ll see a message with a call-to-action button to create the first issue.Creating issues
Click “New Issue” from the issues list, or navigate directly to/$owner/$repo/issues/new. The creation form includes:
Title field
- Required: Must be at least 1 character
- Maximum length: 200 characters
- Purpose: Brief summary of the issue
Description field
- Optional: Can be left empty
- Maximum length: 10,000 characters
- Purpose: Detailed explanation, reproduction steps, or additional context
- Format: Plain text with multi-line support via textarea
- Gitflare validates your authentication
- Fetches the repository to verify it exists
- Retrieves the last issue number for this repository
- Creates a new issue with an auto-incremented number
- Redirects you to the issues list with a success notification
Issue structure
Each issue in the database contains:Issue status management
Issues can be in one of two states:- Open: Active issues that need attention
- Closed: Resolved or completed issues
updateIssueStatus API with the following rules:
- Only the issue creator can update the status
- You must be logged in to perform updates
- The issue must exist in the specified repository
Viewing individual issues
Navigate to/$owner/$repo/issues/$issueNumber to view a specific issue. The issue detail page shows:
- Full issue title and description
- Current status (open or closed)
- Creator information and timestamps
- Issue metadata like the unique number
Comments system
Gitflare’s database schema includes support for comments on issues:Comment author
Each comment is linked to a user account with author ID and username
Comment body
Text content of the comment
Issue association
Comments reference their parent issue via
issueIdTimestamps
Track when comments are created and last updated
Issue indexes and performance
Gitflare optimizes issue queries with database indexes on:repositoryId: Fast lookups for all issues in a repositoryfullName: Quick filtering by repository full namenumber: Efficient retrieval of specific issue numbersstatus: Rapid filtering by open or closed status
Integration with repositories
Issues are tightly integrated with repositories:- Each repository has its own issue namespace with independent numbering
- Deleting a repository cascades to delete all its issues
- Issue numbers start at 1 for each repository
- The
fullNamefield (“owner/repo”) allows cross-repository issue queries
Issue deletion
Issues are automatically deleted when:- The parent repository is deleted (cascade delete)
- The user who created the issue is deleted (cascade delete)
Future enhancements
While the current implementation provides core issue tracking, the schema supports future additions like:- Issue labels and categorization
- Assignees and collaborators
- Issue templates
- Milestone tracking
- Advanced filtering and search