Skip to content

Commit 22f7aa6

Browse files
ethantkoeniglunny
authored andcommitted
LableIDs -> LabelIDs (#1088)
1 parent e83c8af commit 22f7aa6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

models/issue.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ func (issue *Issue) ChangeAssignee(doer *User, assigneeID int64) (err error) {
779779
type NewIssueOptions struct {
780780
Repo *Repository
781781
Issue *Issue
782-
LableIDs []int64
782+
LabelIDs []int64
783783
Attachments []string // In UUID format.
784784
IsPull bool
785785
}
@@ -851,12 +851,12 @@ func newIssue(e *xorm.Session, doer *User, opts NewIssueOptions) (err error) {
851851
return err
852852
}
853853

854-
if len(opts.LableIDs) > 0 {
854+
if len(opts.LabelIDs) > 0 {
855855
// During the session, SQLite3 driver cannot handle retrieve objects after update something.
856856
// So we have to get all needed labels first.
857-
labels := make([]*Label, 0, len(opts.LableIDs))
858-
if err = e.In("id", opts.LableIDs).Find(&labels); err != nil {
859-
return fmt.Errorf("find all labels [label_ids: %v]: %v", opts.LableIDs, err)
857+
labels := make([]*Label, 0, len(opts.LabelIDs))
858+
if err = e.In("id", opts.LabelIDs).Find(&labels); err != nil {
859+
return fmt.Errorf("find all labels [label_ids: %v]: %v", opts.LabelIDs, err)
860860
}
861861

862862
if err = opts.Issue.loadPoster(e); err != nil {
@@ -909,7 +909,7 @@ func NewIssue(repo *Repository, issue *Issue, labelIDs []int64, uuids []string)
909909
if err = newIssue(sess, issue.Poster, NewIssueOptions{
910910
Repo: repo,
911911
Issue: issue,
912-
LableIDs: labelIDs,
912+
LabelIDs: labelIDs,
913913
Attachments: uuids,
914914
}); err != nil {
915915
return fmt.Errorf("newIssue: %v", err)

models/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ func NewPullRequest(repo *Repository, pull *Issue, labelIDs []int64, uuids []str
600600
if err = newIssue(sess, pull.Poster, NewIssueOptions{
601601
Repo: repo,
602602
Issue: pull,
603-
LableIDs: labelIDs,
603+
LabelIDs: labelIDs,
604604
Attachments: uuids,
605605
IsPull: true,
606606
}); err != nil {

0 commit comments

Comments
 (0)