diff --git a/app/assets/javascripts/vue_shared/components/markdown/header.vue b/app/assets/javascripts/vue_shared/components/markdown/header.vue index 355c60040a4..53a3913ebda 100644 --- a/app/assets/javascripts/vue_shared/components/markdown/header.vue +++ b/app/assets/javascripts/vue_shared/components/markdown/header.vue @@ -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, diff --git a/locale/gitlab.pot b/locale/gitlab.pot index c6553f16805..84dac790b4f 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -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." diff --git a/workhorse/cmd/gitlab-zip-cat/main.go b/workhorse/cmd/gitlab-zip-cat/main.go index 05170ba5994..12a4187bad1 100644 --- a/workhorse/cmd/gitlab-zip-cat/main.go +++ b/workhorse/cmd/gitlab-zip-cat/main.go @@ -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" diff --git a/workhorse/go.mod b/workhorse/go.mod index 58f3b4d2fd6..984516b0f5a 100644 --- a/workhorse/go.mod +++ b/workhorse/go.mod @@ -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 diff --git a/workhorse/go.sum b/workhorse/go.sum index 23c9fe65024..e6ad3b77928 100644 --- a/workhorse/go.sum +++ b/workhorse/go.sum @@ -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= diff --git a/workhorse/internal/zipartifacts/metadata.go b/workhorse/internal/zipartifacts/metadata.go index 456d2c101cb..9fd158529e5 100644 --- a/workhorse/internal/zipartifacts/metadata.go +++ b/workhorse/internal/zipartifacts/metadata.go @@ -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, diff --git a/workhorse/internal/zipartifacts/metadata_test.go b/workhorse/internal/zipartifacts/metadata_test.go index 6bde56ef27d..4ebb522d199 100644 --- a/workhorse/internal/zipartifacts/metadata_test.go +++ b/workhorse/internal/zipartifacts/metadata_test.go @@ -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 { diff --git a/workhorse/internal/zipartifacts/open_archive.go b/workhorse/internal/zipartifacts/open_archive.go index d477725a39f..e8fdf9b8133 100644 --- a/workhorse/internal/zipartifacts/open_archive.go +++ b/workhorse/internal/zipartifacts/open_archive.go @@ -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" ) diff --git a/workhorse/internal/zipartifacts/open_archive_test.go b/workhorse/internal/zipartifacts/open_archive_test.go index e339454345b..22f02ab6354 100644 --- a/workhorse/internal/zipartifacts/open_archive_test.go +++ b/workhorse/internal/zipartifacts/open_archive_test.go @@ -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) {