Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot 2023-04-29 00:17:24 +00:00
parent 8937360057
commit 6f81edae2f
9 changed files with 7 additions and 12 deletions

View File

@ -195,7 +195,7 @@ export default {
insertIntoTextarea(text) {
const textArea = this.$el.closest('.md-area')?.querySelector('textarea');
if (textArea) {
const generatedByText = `${text}\n***\n_${__('This comment was generated using OpenAI')}_`;
const generatedByText = `${text}\n***\n_${__('This comment was generated using AI')}_`;
updateText({
textArea,
tag: generatedByText,

View File

@ -45278,7 +45278,7 @@ msgstr ""
msgid "This comment changed after you started editing it. Review the %{startTag}updated comment%{endTag} to ensure information is not lost."
msgstr ""
msgid "This comment was generated using OpenAI"
msgid "This comment was generated using AI"
msgstr ""
msgid "This commit is part of merge request %{link_to_merge_request}. Comments created here will be created in the context of that merge request."

View File

@ -1,6 +1,7 @@
package main
import (
"archive/zip"
"context"
"errors"
"flag"
@ -8,7 +9,6 @@ import (
"io"
"os"
zip "gitlab.com/gitlab-org/golang-archive-zip"
"gitlab.com/gitlab-org/labkit/mask"
"gitlab.com/gitlab-org/gitlab/workhorse/internal/zipartifacts"

View File

@ -27,7 +27,6 @@ require (
github.com/smartystreets/goconvey v1.7.2
github.com/stretchr/testify v1.8.2
gitlab.com/gitlab-org/gitaly/v15 v15.11.0
gitlab.com/gitlab-org/golang-archive-zip v0.1.1
gitlab.com/gitlab-org/labkit v1.18.0
gocloud.dev v0.29.0
golang.org/x/image v0.5.0

View File

@ -1934,8 +1934,6 @@ github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f/go
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
gitlab.com/gitlab-org/gitaly/v15 v15.11.0 h1:m1O8Z8qlKo5rkQpRtfkLAai03sNWjpxjt3xD+2g2BUU=
gitlab.com/gitlab-org/gitaly/v15 v15.11.0/go.mod h1:9iVjU+Rr+6pBkX7uHrocEubpjN4k7LrwD9ezvzSrN+Y=
gitlab.com/gitlab-org/golang-archive-zip v0.1.1 h1:35k9giivbxwF03+8A05Cm8YoxoakU8FBCj5gysjCTCE=
gitlab.com/gitlab-org/golang-archive-zip v0.1.1/go.mod h1:ZDtqpWPGPB9qBuZnZDrKQjIdJtkN7ZAoVwhT6H2o2kE=
gitlab.com/gitlab-org/labkit v1.18.0 h1:uYCIqDt/5V1hLIecTR4UNc1sD2+xiYplyKeyfpNN26A=
gitlab.com/gitlab-org/labkit v1.18.0/go.mod h1:nlLJvKgXcIclqWMI+rga2TckNBVHOtRCHMxBoVByNoE=
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=

View File

@ -1,6 +1,7 @@
package zipartifacts
import (
"archive/zip"
"compress/gzip"
"encoding/binary"
"encoding/json"
@ -8,8 +9,6 @@ import (
"path"
"sort"
"strconv"
zip "gitlab.com/gitlab-org/golang-archive-zip"
)
type metadata struct {
@ -30,7 +29,6 @@ func newMetadata(file *zip.File) metadata {
}
return metadata{
//lint:ignore SA1019 Remove this once the minimum supported version is go 1.10 (go 1.9 and down do not support an alternative)
Modified: file.ModTime().Unix(),
Mode: strconv.FormatUint(uint64(file.Mode().Perm()), 8),
CRC: file.CRC32,

View File

@ -1,6 +1,7 @@
package zipartifacts
import (
"archive/zip"
"bytes"
"compress/gzip"
"context"
@ -10,7 +11,6 @@ import (
"testing"
"github.com/stretchr/testify/require"
zip "gitlab.com/gitlab-org/golang-archive-zip"
)
func generateTestArchive(w io.Writer) error {

View File

@ -1,6 +1,7 @@
package zipartifacts
import (
"archive/zip"
"context"
"fmt"
"io"
@ -11,7 +12,6 @@ import (
"gitlab.com/gitlab-org/gitlab/workhorse/internal/httprs"
"gitlab.com/gitlab-org/gitlab/workhorse/internal/transport"
zip "gitlab.com/gitlab-org/golang-archive-zip"
"gitlab.com/gitlab-org/labkit/mask"
)

View File

@ -1,6 +1,7 @@
package zipartifacts
import (
"archive/zip"
"bytes"
"context"
"fmt"
@ -12,7 +13,6 @@ import (
"testing"
"github.com/stretchr/testify/require"
zip "gitlab.com/gitlab-org/golang-archive-zip"
)
func createArchive(t *testing.T, dir string) (map[string][]byte, int64) {