Mercurial and Git clients can push and pull from this alias URL to interact with this repository. You can change to which repository an alias points by going to the Aliases link on the project page.
package kiln
++import (+ "encoding/json"+ "fmt"+ "strings"+)// Represents the error JSON returned by Kiln API requests
type KilnError struct {
// Guaranteed-unique code for Kiln errorsCodestring`json:"codeError"`// Human-readable descriptionDescriptionstring`json:"sError"`}// Represents the project JSON returned from the Kiln APItypeKilnProjectstruct{Idint64`json:"ixProject"`Slugstring`json:"sSlug"`Namestring`json:"sName"`Descriptionstring`json:"sDescription"`DefaultPermissionstring`json:"permissionDefault"`RepoGroups[]KilnRepoGroup}typeKilnRepoGroupstruct{Idint64`json:"ixRepoGroup"`ProjectIdint64`json:"ixProject"`Slugstring`json:"sSlug"`Namestring`json:"sName"`Repos[]KilnRepo`json:"repos"`}typeKilnRepostruct{Idint64`json:"ixRepo"`RepoGroupIdint64`json:"ixRepoGroup"`ParentIdint64`json:"ixParent"`IsCentralbool`json:"fCentral"`Slugstring`json:"sSlug"`GroupSlugstring`json:"sGroupSlug"`ProjectSlugstring`json:"sProjectSlug"`GitUrlstring`json:"sGitUrl"`GitSshUrlstring`json:"sGitSshUrl"`Namestring`json:"sName"`Descriptionstring`json:"sDescription"`Statusstring`json:"sStatus"`Sizeint64`json:"bytesSize"`Vcsint`json:"vcs"`CreatorKilnPerson`json:"personCreator"`DefaultPermissionstring`json:"permissionDefault"`Branches[]KilnRepo`json:"repoBranches"`}typeKilnPersonstruct{Idint64`json:"ixPerson"` Name string `json:"sName"`
Email string `json:"sEmail"`
}
++func (k *KilnClient) Projects() (projects []KilnProject, err error) {+ if resp, err := k.apiGet("Project", apiParams{}); err == nil {+ err = json.Unmarshal(resp, &projects)+ }+ return+}++func (k *KilnClient) IdForRepo(repoPath string) (repoId int64, err error) {+ parts := strings.Split(repoPath, "/")+ if len(parts) != 3 {+ err = fmt.Errorf("unknown repository target: %v", repoPath)+ return+ }+ var projects []KilnProject+ if projects, err = k.Projects(); err == nil {+ for _, project := range projects {+ for _, repoGroup := range project.RepoGroups {+ for _, repo := range repoGroup.Repos {+ if strings.EqualFold(repo.ProjectSlug, parts[0]) &&+ strings.EqualFold(repo.GroupSlug, parts[1]) &&+ strings.EqualFold(repo.Slug, parts[2]) {+ repoId = repo.Id+ return+ }+ }+ }+ }+ }+ err = fmt.Errorf("repository not found")+ return+}++func (k *KilnClient) RelatedRepos(repoId int64) (repos []KilnRepo, err error) {+ resp, err := k.apiGet(fmt.Sprintf("Repo/%v/Related", repoId), apiParams{})+ if err == nil {+ err = json.Unmarshal(resp, &repos)+ }+ return+}
Attach a Trello Card
Add a tag
Your session has expired
You are no longer logged in. Please log in and try your request again.
Filter RSS Feed
This RSS feed URL allows you to see the contents of your current filter using any feed reader.
This link includes a special authentication token. If you share the URL with anyone else, they can see this RSS feed's activity. You can disable these tokens when needed.
Your current filter is unsaved; changing it won't affect this RSS feed.