Skip to content

Commit e1663fa

Browse files
committed
Merge remote-tracking branch 'giteaoffical/main'
* giteaoffical/main: (22 commits) Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" (go-gitea#25974) Use frontend fetch for branch dropdown component (go-gitea#25719) Remove commit status running and warning from the dashboard repo list (go-gitea#26036) Refactor to use urfave/cli/v2 (go-gitea#25959) Remove commit status running and warning to align GitHub (go-gitea#25839) Fix escape problems in the branch selector (go-gitea#25875) Update README.md to fix the broken link of Hugo (go-gitea#26008) Support copy protected branch from template repository (go-gitea#25889) Update JS dependencies (go-gitea#26025) Reduce margins on admin pages (go-gitea#26026) Actions Artifacts support uploading multiple files and directories (go-gitea#24874) [skip ci] Updated translations via Crowdin Remove redundant "RouteMethods" method (go-gitea#26024) Adding remaining enum for migration repo model type. (go-gitea#26021) RPM Registry: Show zypper commands for SUSE based distros as well (go-gitea#25981) Fix the route for pull-request's authors (go-gitea#26016) Remove nfnt/resize and oliamb/cutter (go-gitea#25999) Correctly refer to dev tags as nightly in the docker docs (go-gitea#26004) Fix env config parsing for "GITEA____APP_NAME" (go-gitea#26001) Add file status for API "Get a single commit from a repository" (go-gitea#16205) (go-gitea#25831) ...
2 parents 84f3626 + 52fb936 commit e1663fa

File tree

120 files changed

+2959
-1776
lines changed

Some content is hidden

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

120 files changed

+2959
-1776
lines changed

.eslintrc.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ rules:
420420
no-restricted-exports: [0]
421421
no-restricted-globals: [2, addEventListener, blur, close, closed, confirm, defaultStatus, defaultstatus, error, event, external, find, focus, frameElement, frames, history, innerHeight, innerWidth, isFinite, isNaN, length, location, locationbar, menubar, moveBy, moveTo, name, onblur, onerror, onfocus, onload, onresize, onunload, open, opener, opera, outerHeight, outerWidth, pageXOffset, pageYOffset, parent, print, removeEventListener, resizeBy, resizeTo, screen, screenLeft, screenTop, screenX, screenY, scroll, scrollbars, scrollBy, scrollTo, scrollX, scrollY, self, status, statusbar, stop, toolbar, top, __dirname, __filename]
422422
no-restricted-imports: [0]
423-
no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement]
423+
no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement, SequenceExpression]
424424
no-return-assign: [0]
425425
no-return-await: [0]
426426
no-script-url: [2]
@@ -666,7 +666,6 @@ rules:
666666
unicorn/no-unnecessary-await: [2]
667667
unicorn/no-unreadable-array-destructuring: [0]
668668
unicorn/no-unreadable-iife: [2]
669-
unicorn/no-unsafe-regex: [0]
670669
unicorn/no-unused-properties: [2]
671670
unicorn/no-useless-fallback-in-spread: [2]
672671
unicorn/no-useless-length-check: [2]

.stylelintrc.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ rules:
8484
media-feature-name-value-allowed-list: null
8585
media-feature-name-value-no-unknown: true
8686
media-feature-range-notation: null
87+
media-query-no-invalid: true
8788
named-grid-areas-no-invalid: true
8889
no-descending-specificity: null
8990
no-duplicate-at-import-rules: true

assets/go-licenses.json

+8-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/actions.go

+9-8
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,31 @@ import (
99
"code.gitea.io/gitea/modules/private"
1010
"code.gitea.io/gitea/modules/setting"
1111

12-
"github.com/urfave/cli"
12+
"github.com/urfave/cli/v2"
1313
)
1414

1515
var (
1616
// CmdActions represents the available actions sub-commands.
17-
CmdActions = cli.Command{
17+
CmdActions = &cli.Command{
1818
Name: "actions",
1919
Usage: "",
2020
Description: "Commands for managing Gitea Actions",
21-
Subcommands: []cli.Command{
21+
Subcommands: []*cli.Command{
2222
subcmdActionsGenRunnerToken,
2323
},
2424
}
2525

26-
subcmdActionsGenRunnerToken = cli.Command{
26+
subcmdActionsGenRunnerToken = &cli.Command{
2727
Name: "generate-runner-token",
2828
Usage: "Generate a new token for a runner to use to register with the server",
2929
Action: runGenerateActionsRunnerToken,
3030
Aliases: []string{"grt"},
3131
Flags: []cli.Flag{
32-
cli.StringFlag{
33-
Name: "scope, s",
34-
Value: "",
35-
Usage: "{owner}[/{repo}] - leave empty for a global runner",
32+
&cli.StringFlag{
33+
Name: "scope",
34+
Aliases: []string{"s"},
35+
Value: "",
36+
Usage: "{owner}[/{repo}] - leave empty for a global runner",
3637
},
3738
},
3839
}

0 commit comments

Comments
 (0)