Skip to content

Commit cb3cc62

Browse files
authored
Merge branch 'master' into fix-13271-move-original-author-into-reaction-constraint
2 parents 1ce2048 + da4f2c5 commit cb3cc62

File tree

28 files changed

+230
-202
lines changed

28 files changed

+230
-202
lines changed

.stylelintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ rules:
1111
no-descending-specificity: null
1212
number-leading-zero: never
1313
rule-empty-line-before: null
14-
selector-pseudo-element-colon-notation: null
14+
selector-pseudo-element-colon-notation: double
1515
shorthand-property-no-redundant-values: true

models/migrations/v156.go

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ func fixPublisherIDforTagReleases(x *xorm.Engine) error {
5555
var (
5656
repo *Repository
5757
gitRepo *git.Repository
58+
user *User
5859
)
5960
defer func() {
6061
if gitRepo != nil {
@@ -69,7 +70,7 @@ func fixPublisherIDforTagReleases(x *xorm.Engine) error {
6970
}
7071

7172
if err := sess.Limit(batchSize, start).
72-
Where("publisher_id = 0").
73+
Where("publisher_id = 0 OR publisher_id is null").
7374
Asc("repo_id", "id").Where("is_tag=?", true).
7475
Find(&releases); err != nil {
7576
return err
@@ -117,17 +118,21 @@ func fixPublisherIDforTagReleases(x *xorm.Engine) error {
117118
return fmt.Errorf("GetTagCommit: %v", err)
118119
}
119120

120-
u := new(User)
121-
exists, err := sess.Where("email=?", commit.Author.Email).Get(u)
122-
if err != nil {
123-
return err
121+
if user == nil || !strings.EqualFold(user.Email, commit.Author.Email) {
122+
user = new(User)
123+
_, err = sess.Where("email=?", commit.Author.Email).Get(user)
124+
if err != nil {
125+
return err
126+
}
127+
128+
user.Email = commit.Author.Email
124129
}
125130

126-
if !exists {
131+
if user.ID <= 0 {
127132
continue
128133
}
129134

130-
release.PublisherID = u.ID
135+
release.PublisherID = user.ID
131136
if _, err := sess.ID(release.ID).Cols("publisher_id").Update(release); err != nil {
132137
return err
133138
}

options/locale/locale_tr-TR.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ issues.action_assignee=Atanan
10381038
issues.action_assignee_no_select=Atanan yok
10391039
issues.opened_by=<a href="%[2]s">%[3]s</a> tarafından %[1]s açıldı
10401040
pulls.merged_by=%[1]s <a href="%[2]s">%[3]s</a> tarafından birleştirildi
1041-
pulls.merged_by_fake=%[1]s %[2]s tarafından birleştirildi
1041+
pulls.merged_by_fake=%[2]s tarafından açılan istek %[1]s birleştirildi
10421042
issues.closed_by=%[1]s <a href="%[2]s">%[3]s</a> tarafından kapatıldı
10431043
issues.opened_by_fake=%[1]s %[2]s tarafından açıldı
10441044
issues.closed_by_fake=%[1]s %[2]s tarafından kapatıldı

package-lock.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
"add-asset-webpack-plugin": "1.0.0",
1515
"babel-loader": "8.1.0",
1616
"clipboard": "2.0.6",
17+
"codemirror": "5.58.2",
1718
"core-js": "3.7.0",
1819
"css-loader": "5.0.1",
1920
"css-minimizer-webpack-plugin": "1.1.5",
2021
"dropzone": "5.7.2",
22+
"easymde": "2.12.1",
2123
"escape-goat": "3.0.0",
2224
"fast-glob": "3.2.4",
2325
"file-loader": "6.2.0",

public/vendor/plugins/simplemde/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

public/vendor/plugins/simplemde/simplemde.min.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

public/vendor/plugins/simplemde/simplemde.min.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

templates/admin/user/edit.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
</div>
9191
</div>
9292
<div class="inline field">
93-
<div class="ui checkbox" data-tooltip="{{.i18n.Tr "admin.users.allow_git_hook_tooltip"}}">
93+
<div class="ui checkbox poping up" data-content="{{.i18n.Tr "admin.users.allow_git_hook_tooltip"}}" data-variation="very wide">
9494
<label><strong>{{.i18n.Tr "admin.users.allow_git_hook"}}</strong></label>
9595
<input name="allow_git_hook" type="checkbox" {{if .User.CanEditGitHook}}checked{{end}} {{if DisableGitHooks}}disabled{{end}}>
9696
</div>

templates/base/footer.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
{{template "base/footer_content" .}}
1414
{{if .RequireSimpleMDE}}
15-
<script src="{{StaticUrlPrefix}}/vendor/plugins/simplemde/simplemde.min.js"></script>
15+
<script src="{{StaticUrlPrefix}}/js/easymde.js?v={{MD5 AppVer}}"></script>
1616
<script src="{{StaticUrlPrefix}}/vendor/plugins/codemirror/addon/mode/loadmode.js"></script>
1717
<script src="{{StaticUrlPrefix}}/vendor/plugins/codemirror/mode/meta.js"></script>
1818
<script>

templates/base/head.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<link rel="mask-icon" href="{{StaticUrlPrefix}}/img/gitea-safari.svg" color="#609926">
6565
<link rel="fluid-icon" href="{{StaticUrlPrefix}}/img/gitea-lg.png" title="{{AppName}}">
6666
{{if .RequireSimpleMDE}}
67-
<link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/simplemde/simplemde.min.css">
67+
<link rel="stylesheet" href="{{StaticUrlPrefix}}/css/easymde.css?v={{MD5 AppVer}}">
6868
{{end}}
6969
<link rel="stylesheet" href="{{StaticUrlPrefix}}/css/index.css?v={{MD5 AppVer}}">
7070
<noscript>

templates/repo/commits_table.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<input type="checkbox" name="all" id="all" value="true" {{.All}}>
1818
<label for="all">{{.i18n.Tr "repo.commits.search_all"}} &nbsp;&nbsp;</label>
1919
</div>
20-
<button class="ui primary tiny button mr-0" data-panel="#add-deploy-key-panel" data-tooltip={{.i18n.Tr "repo.commits.search.tooltip"}}>{{.i18n.Tr "repo.commits.find"}}</button>
20+
<button class="ui primary tiny button mr-0 poping up" data-panel="#add-deploy-key-panel" data-content={{.i18n.Tr "repo.commits.search.tooltip"}}>{{.i18n.Tr "repo.commits.find"}}</button>
2121
</form>
2222
{{else if .IsDiffCompare}}
2323
<a href="{{$.CommitRepoLink}}/commit/{{.BeforeCommitID}}" class="ui green sha label">{{if not .BaseIsCommit}}{{if .BaseIsBranch}}{{svg "octicon-git-branch"}}{{else if .BaseIsTag}}{{svg "octicon-tag"}}{{end}}{{.BaseBranch}}{{else}}{{ShortSha .BaseBranch}}{{end}}</a>

templates/repo/create.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<input class="hidden" name="git_content" type="checkbox" tabindex="0" {{if .git_content}}checked{{end}}>
7474
<label>{{.i18n.Tr "repo.template.git_content"}}</label>
7575
</div>
76-
<div class="ui checkbox" {{if not .SignedUser.CanEditGitHook}}data-tooltip="{{.i18n.Tr "repo.template.git_hooks_tooltip"}}"{{end}}>
76+
<div class="ui checkbox{{if not .SignedUser.CanEditGitHook}} poping up{{end}}"{{if not .SignedUser.CanEditGitHook}} data-content="{{.i18n.Tr "repo.template.git_hooks_tooltip"}}"{{end}}>
7777
<input class="hidden" name="git_hooks" type="checkbox" tabindex="0" {{if .git_hooks}}checked{{end}}>
7878
<label>{{.i18n.Tr "repo.template.git_hooks"}}</label>
7979
</div>

0 commit comments

Comments
 (0)