Skip to content

Commit

Permalink
fix dry-run bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lavalamp committed May 29, 2016
1 parent d7cec4a commit 3737b58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mungegithub/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,9 @@ func (config *Config) GetObject(num int) (*MungeObject, error) {

// NewIssue will file a new issue and return an object for it.
func (config *Config) NewIssue(title, body string, labels []string) (*MungeObject, error) {
if config.DryRun {
return nil, fmt.Errorf("can't make issues in dry-run mode")
}
issue, resp, err := config.client.Issues.Create(config.Org, config.Project, &github.IssueRequest{
Title: &title,
Body: &body,
Expand Down

0 comments on commit 3737b58

Please sign in to comment.