Commit 5b959b9a authored by Niels Widger's avatar Niels Widger

Add CreatedAt field to CreateIssueNoteOptions

Add CreatedAt field to CreateIssueNoteOptions, which allows explicitly
setting the creation time assigned to the new issue note.  This allows
preserving a comment's creation time when migrating comments into
GitLab from a different issue tracker.

See https://docs.gitlab.com/ce/api/notes.html#create-new-issue-note
parent 3890e55a
......@@ -154,7 +154,8 @@ func (s *NotesService) GetIssueNote(pid interface{}, issue, note int, options ..
// GitLab API docs:
// https://docs.gitlab.com/ce/api/notes.html#create-new-issue-note
type CreateIssueNoteOptions struct {
Body *string `url:"body,omitempty" json:"body,omitempty"`
Body *string `url:"body,omitempty" json:"body,omitempty"`
CreatedAt *time.Time `url:"created_at,omitempty" json:"created_at,omitempty"`
}
// CreateIssueNote creates a new note to a single project issue.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment