Files
kandev/apps/backend/internal/github/constants.go
T
2026-02-23 00:16:37 +00:00

31 lines
812 B
Go

package github
// PR review states from the GitHub API.
const (
reviewStateApproved = "APPROVED"
reviewStateChangesRequested = "CHANGES_REQUESTED"
reviewStatePending = "PENDING"
reviewStateCommented = "COMMENTED"
)
// Computed (aggregated) review states.
const (
computedReviewStateApproved = "approved"
computedReviewStateChangesRequested = "changes_requested"
computedReviewStatePending = "pending"
)
// Check run status and conclusion values from the GitHub API.
const (
checkStatusCompleted = "completed"
checkStatusPending = "pending"
checkStatusSuccess = "success"
checkConclusionFail = "failure"
)
// Watch poll interval bounds in seconds (stored in the database).
const (
defaultWatchPollIntervalSec = 300
minWatchPollIntervalSec = 60
)