···386386 return a.createAuthSource(ctx, authSource)
387387}
388388389389-// updateLdapBindDn updates a new LDAP (simple auth) authentication source.
389389+// updateLdapSimpleAuth updates a new LDAP (simple auth) authentication source.
390390func (a *authService) updateLdapSimpleAuth(c *cli.Context) error {
391391 ctx, cancel := installSignals()
392392 defer cancel()
+1-1
models/issues/issue.go
···875875 return issues, nil
876876}
877877878878-// IsNewPinnedAllowed returns if a new Issue or Pull request can be pinned
878878+// IsNewPinAllowed returns if a new Issue or Pull request can be pinned
879879func IsNewPinAllowed(ctx context.Context, repoID int64, isPull bool) (bool, error) {
880880 var maxPin int
881881 _, err := db.GetEngine(ctx).SQL("SELECT COUNT(pin_order) FROM issue WHERE repo_id = ? AND is_pull = ? AND pin_order > 0", repoID, isPull).Get(&maxPin)
+1-1
models/issues/pull.go
···689689 return pr, pr.LoadAttributes(ctx)
690690}
691691692692-// GetPullRequestsByBaseHeadInfo returns the pull request by given base and head
692692+// GetPullRequestByBaseHeadInfo returns the pull request by given base and head
693693func GetPullRequestByBaseHeadInfo(ctx context.Context, baseID, headID int64, base, head string) (*PullRequest, error) {
694694 pr := &PullRequest{}
695695 sess := db.GetEngine(ctx).