Documentation
¶
Index ¶
- type App
- func (a *App) CreateArticleCommit(ctx context.Context, slug string, opts ...Option) (string, error)
- func (a *App) CreateInstallationToken(ctx context.Context) (string, error)
- func (a *App) CreateOrUpdateArticlePullRequest(ctx context.Context, slug string, opts ...Option) (int, string, error)
- func (a *App) CreateOrUpdatePlacePullRequest(ctx context.Context, slug string, opts ...Option) (int, string, error)
- func (a *App) FetchArticle(ctx context.Context, slug string) (*ArticleCheckout, error)
- func (a *App) FetchPlace(ctx context.Context, slug string) (*PlaceCheckout, error)
- type ArticleCheckout
- type Option
- func InArchive(inArchive bool) Option
- func WithArticle(article *citygraph.Article) Option
- func WithArticleJS(articleJS string) Option
- func WithBodyHTML(bodyHTML string) Option
- func WithCommitMessage(msg string) Option
- func WithLocations(locations string) Option
- func WithPRBody(prBody string) Option
- func WithPRNum(prNum int) Option
- func WithPRTitle(prTitle string) Option
- func WithPlace(place *citygraph.Place) Option
- func WithTeaserGeoJSON(geojson string) Option
- func WithTeaserJS(js string) Option
- type Params
- type PlaceCheckout
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
NewClient returns a new GitHub client for the given installation ID.
func (*App) CreateArticleCommit ¶
func (*App) CreateInstallationToken ¶
CreateGithubInstallationToken creates a new GitHub installation token.
func (*App) CreateOrUpdateArticlePullRequest ¶
func (*App) CreateOrUpdatePlacePullRequest ¶
func (*App) FetchArticle ¶
func (*App) FetchPlace ¶
type ArticleCheckout ¶
type ArticleCheckout struct {
Slug string
Article *citygraph.Article
BodyHTML string
JavascriptFunction string
LocationsGeoJSON *geojson.FeatureCollection
}
ArticleCheckout contains the contents of an article read directly from Github.
type Option ¶
type Option func(*Params)
func WithArticle ¶
func WithArticleJS ¶
func WithBodyHTML ¶
func WithCommitMessage ¶
func WithLocations ¶
func WithPRBody ¶
func WithPRTitle ¶
func WithTeaserGeoJSON ¶
func WithTeaserJS ¶
Click to show internal directories.
Click to hide internal directories.