Skip to content

Commit f7f0b7a

Browse files
authored
Merge branch 'main' into main
2 parents c34dd4a + 13a2038 commit f7f0b7a

File tree

87 files changed

+739
-569
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+739
-569
lines changed

assets/go-licenses.json

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

go.mod

Lines changed: 94 additions & 97 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 226 additions & 236 deletions
Large diffs are not rendered by default.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
-
2+
id: 1
3+
run_id: 791
4+
runner_id: 1
5+
repo_id: 4
6+
owner_id: 1
7+
commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0
8+
storage_path: "26/1/1712166500347189545.chunk"
9+
file_size: 1024
10+
file_compressed_size: 1024
11+
content_encoding: ""
12+
artifact_path: "abc.txt"
13+
artifact_name: "artifact-download"
14+
status: 1
15+
created_unix: 1712338649
16+
updated_unix: 1712338649
17+
expired_unix: 1720114649
18+
19+
-
20+
id: 19
21+
run_id: 791
22+
runner_id: 1
23+
repo_id: 4
24+
owner_id: 1
25+
commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0
26+
storage_path: "26/19/1712348022422036662.chunk"
27+
file_size: 1024
28+
file_compressed_size: 1024
29+
content_encoding: ""
30+
artifact_path: "abc.txt"
31+
artifact_name: "multi-file-download"
32+
status: 2
33+
created_unix: 1712348022
34+
updated_unix: 1712348022
35+
expired_unix: 1720124022
36+
37+
-
38+
id: 20
39+
run_id: 791
40+
runner_id: 1
41+
repo_id: 4
42+
owner_id: 1
43+
commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0
44+
storage_path: "26/20/1712348022423431524.chunk"
45+
file_size: 1024
46+
file_compressed_size: 1024
47+
content_encoding: ""
48+
artifact_path: "xyz/def.txt"
49+
artifact_name: "multi-file-download"
50+
status: 2
51+
created_unix: 1712348022
52+
updated_unix: 1712348022
53+
expired_unix: 1720124022
54+
55+
-
56+
id: 22
57+
run_id: 792
58+
runner_id: 1
59+
repo_id: 4
60+
owner_id: 1
61+
commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0
62+
storage_path: "27/5/1730330775594233150.chunk"
63+
file_size: 1024
64+
file_compressed_size: 1024
65+
content_encoding: "application/zip"
66+
artifact_path: "artifact-v4-download.zip"
67+
artifact_name: "artifact-v4-download"
68+
status: 2
69+
created_unix: 1730330775
70+
updated_unix: 1730330775
71+
expired_unix: 1738106775

modules/indexer/internal/meilisearch/indexer.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
// Indexer represents a basic meilisearch indexer implementation
1414
type Indexer struct {
15-
Client *meilisearch.Client
15+
Client meilisearch.ServiceManager
1616

1717
url, apiKey string
1818
indexName string
@@ -40,11 +40,7 @@ func (i *Indexer) Init(_ context.Context) (bool, error) {
4040
return false, fmt.Errorf("indexer is already initialized")
4141
}
4242

43-
i.Client = meilisearch.NewClient(meilisearch.ClientConfig{
44-
Host: i.url,
45-
APIKey: i.apiKey,
46-
})
47-
43+
i.Client = meilisearch.New(i.url, meilisearch.WithAPIKey(i.apiKey))
4844
_, err := i.Client.GetIndex(i.VersionedIndexName())
4945
if err == nil {
5046
return true, nil

modules/markup/markdown/transform_blockquote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (g *ASTTransformer) extractBlockquoteAttentionEmphasis(firstParagraph ast.N
4545
if !ok {
4646
return "", nil
4747
}
48-
val1 := string(node1.Text(reader.Source()))
48+
val1 := string(node1.Text(reader.Source())) //nolint:staticcheck
4949
attentionType := strings.ToLower(val1)
5050
if g.attentionTypes.Contains(attentionType) {
5151
return attentionType, []ast.Node{node1}

modules/markup/markdown/transform_codespan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func cssColorHandler(value string) bool {
6969
}
7070

7171
func (g *ASTTransformer) transformCodeSpan(_ *markup.RenderContext, v *ast.CodeSpan, reader text.Reader) {
72-
colorContent := v.Text(reader.Source())
72+
colorContent := v.Text(reader.Source()) //nolint:staticcheck
7373
if cssColorHandler(string(colorContent)) {
7474
v.AppendChild(v, NewColorPreview(colorContent))
7575
}

modules/markup/markdown/transform_heading.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (g *ASTTransformer) transformHeading(_ *markup.RenderContext, v *ast.Headin
1919
v.SetAttribute(attr.Name, []byte(fmt.Sprintf("%v", attr.Value)))
2020
}
2121
}
22-
txt := v.Text(reader.Source())
22+
txt := v.Text(reader.Source()) //nolint:staticcheck
2323
header := markup.Header{
2424
Text: util.UnsafeBytesToString(txt),
2525
Level: v.Level,

modules/markup/mdstripper/mdstripper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (r *stripRenderer) Render(w io.Writer, source []byte, doc ast.Node) error {
4646
coalesce := prevSibIsText
4747
r.processString(
4848
w,
49-
v.Text(source),
49+
v.Text(source), //nolint:staticcheck
5050
coalesce)
5151
if v.SoftLineBreak() {
5252
r.doubleSpace(w)

modules/packages/content_store.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ func (s *ContentStore) ShouldServeDirect() bool {
3737
return setting.Packages.Storage.ServeDirect()
3838
}
3939

40-
func (s *ContentStore) GetServeDirectURL(key BlobHash256Key, filename string) (*url.URL, error) {
41-
return s.store.URL(KeyToRelativePath(key), filename)
40+
func (s *ContentStore) GetServeDirectURL(key BlobHash256Key, filename string, reqParams url.Values) (*url.URL, error) {
41+
return s.store.URL(KeyToRelativePath(key), filename, reqParams)
4242
}
4343

4444
// FIXME: Workaround to be removed in v1.20

0 commit comments

Comments
 (0)