Documentation ¶
Index ¶
- Constants
- Variables
- func TestAssessState(t *testing.T)
- func TestLabelDuplicate(t *testing.T)
- func TestParsingAssignments(t *testing.T)
- func TestParsingLabels(t *testing.T)
- func TestParsingOpenClose(t *testing.T)
- func TestParsingTitles(t *testing.T)
- func TestValidAction(t *testing.T)
- type Action
- type Comment
- type Dreck
- type DreckConfig
- type ID
- type InstallationRequest
- type Issue
- type IssueCommentOuter
- type IssueLabel
- type Owner
- type PullRequest
- type Repository
- type Rule
Constants ¶
View Source
const ( Aliases = "aliases" // Aliases enables alias expansion. Exec = "exec" // Exec enables the exec command. Trigger = "/" // Trigger is the prefix that triggers action from this bot. )
Variables ¶
View Source
var Details = `` /* 314-byte string literal not displayed */
Details contains the subscript that's get added to comments added by dreck.
View Source
var Fortune = "/usr/games/fortune"
Fortune points to the fortune executable. This is the path on Debian.
View Source
var IssueCommands = map[string]string{ Trigger + "label": addLabelConst, Trigger + "unlabel": removeLabelConst, Trigger + "cc": ccConst, Trigger + "uncc": unccConst, Trigger + "assign": assignConst, Trigger + "unassign": unassignConst, Trigger + "close": closeConst, Trigger + "reopen": reopenConst, Trigger + "title": titleConst, Trigger + "lock": lockConst, Trigger + "unlock": unlockConst, Trigger + "exec": execConst, Trigger + "fortune": fortuneConst, Trigger + "duplicate": duplicateConst, Trigger + "retest": retestConst, Trigger + "lgtm": lgtmConst, Trigger + "unlgtm": unlgtmConst, Trigger + "merge": mergeConst, }
IssueCommands are all commands we support in issues.
View Source
var Version = "1.0.5"
Version denotes the current version of dreck.
Functions ¶
func TestAssessState ¶ added in v1.0.3
func TestLabelDuplicate ¶ added in v1.0.3
func TestParsingAssignments ¶ added in v1.0.3
func TestParsingLabels ¶ added in v1.0.3
func TestParsingOpenClose ¶ added in v1.0.3
func TestParsingTitles ¶ added in v1.0.3
func TestValidAction ¶ added in v1.0.3
Types ¶
type Dreck ¶
type Dreck struct { Next httpserver.Handler // contains filtered or unexported fields }
Dreck is a plugin that handles Github Issues and Pull Requests for you.
type DreckConfig ¶ added in v1.0.5
DreckConfig holds the configuration from the .dreck.yaml and CODEOWNERS file.
type InstallationRequest ¶ added in v1.0.5
type InstallationRequest struct {
Installation ID `json:"installation"`
}
type IssueCommentOuter ¶ added in v1.0.5
type IssueCommentOuter struct { Repository Repository `json:"repository"` Comment Comment `json:"comment"` Action string `json:"action"` Issue Issue `json:"issue,omitempty"` PullRequest PullRequest `json:"pull_request,omitempty"` InstallationRequest }
type IssueLabel ¶ added in v1.0.5
type IssueLabel struct {
Name string `json:"name"`
}
type PullRequest ¶ added in v1.0.5
type Repository ¶ added in v1.0.5
Source Files ¶
Click to show internal directories.
Click to hide internal directories.