Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectProjectForFile ¶ added in v0.3.0
DetectProjectForFile attempts to detect the GitLab project for a specific file It searches upward from the file's directory to find the git repository root Handles both regular git repos and git submodules
func DetectProjectFromGitRepo ¶ added in v0.3.0
DetectProjectFromGitRepo attempts to detect the GitLab project path from a git repository It reads .git/config and extracts the project path from remote.origin.url Returns empty string if not a git repo or cannot determine the project
func ExtractTokenFromNetrc ¶
ExtractTokenFromNetrc attempts to find credentials for the given host in .netrc file
func NormalizeInstanceURL ¶
NormalizeInstanceURL ensures the instance URL has a proper format
Types ¶
type APIError ¶
type APIError struct {
Message string `json:"message"`
}
APIError represents an error from the GitLab API
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a GitLab API client
type LintRequest ¶
type LintRequest struct {
Content string `json:"content"`
DryRun bool `json:"dry_run,omitempty"`
IncludeJobs bool `json:"include_jobs,omitempty"`
}
LintRequest represents the request body for the GitLab CI lint API