1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-02-03 13:11:49 +02:00

style: Fix typos

go-jira/examples/renderedfields/main.go
	Line 51: warning: "Targetting" is a misspelling of "Targeting" (misspell)

go-jira/authentication.go
	Line 169: warning: "authenticaiton" is a misspelling of "authentication" (misspell)

go-jira/issue.go
	Line 802: warning: "specifiying" is a misspelling of "specifying" (misspell)
This commit is contained in:
Andy Grunwald 2020-05-03 17:46:02 +02:00
parent e20a3a057d
commit ef6d633ae1
3 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ func (s *AuthenticationService) Logout() error {
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#auth/1/session
func (s *AuthenticationService) GetCurrentUserWithContext(ctx context.Context) (*Session, error) {
if s == nil {
return nil, fmt.Errorf("authenticaiton Service is not instantiated")
return nil, fmt.Errorf("authentication Service is not instantiated")
}
if s.authType != authTypeSession || s.client.session == nil {
return nil, fmt.Errorf("no user is authenticated yet")

View File

@ -48,7 +48,7 @@ func main() {
return
}
fmt.Printf("Targetting %s for issue %s\n", strings.TrimSpace(jiraURL), key)
fmt.Printf("Targeting %s for issue %s\n", strings.TrimSpace(jiraURL), key)
options := &jira.GetQueryOptions{Expand: "renderedFields"}
u, _, err := client.Issue.Get(key, options)

View File

@ -799,7 +799,7 @@ func (s *IssueService) Create(issue *Issue) (*Issue, *Response, error) {
}
// UpdateWithOptionsWithContext updates an issue from a JSON representation,
// while also specifiying query params. The issue is found by key.
// while also specifying query params. The issue is found by key.
//
// JIRA API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue
func (s *IssueService) UpdateWithOptionsWithContext(ctx context.Context, issue *Issue, opts *UpdateQueryOptions) (*Issue, *Response, error) {