You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: custom/conf/app.example.ini
+1-1
Original file line number
Diff line number
Diff line change
@@ -1848,7 +1848,7 @@ ROUTER = console
1848
1848
;ENABLED = true
1849
1849
;;
1850
1850
;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
Copy file name to clipboardExpand all lines: docs/content/doc/advanced/config-cheat-sheet.en-us.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -841,7 +841,7 @@ Default templates for project boards:
841
841
## Issue and pull request attachments (`attachment`)
842
842
843
843
-`ENABLED`: **true**: Whether issue and pull request attachments are enabled.
844
-
-`ALLOWED_TYPES`: **.csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip**: Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
844
+
-`ALLOWED_TYPES`: **.csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.patch,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip**: Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
845
845
-`MAX_SIZE`: **4**: Maximum size (MB).
846
846
-`MAX_FILES`: **5**: Maximum number of attachments that can be uploaded at once.
847
847
-`STORAGE_TYPE`: **local**: Storage type for attachments, `local` for local disk or `minio` for s3 compatible object storage service, default is `local` or other name defined with `[storage.xxx]`
Copy file name to clipboardExpand all lines: docs/content/doc/usage/pull-request.en-us.md
+37-1
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,45 @@ menu:
15
15
16
16
# Pull Request
17
17
18
+
A Pull Request (PR) is a way to propose changes to a repository.
19
+
It is a request to merge one branch into another, accompanied by a description of the changes that were made.
20
+
Pull Requests are commonly used as a way for contributors to propose changes and for maintainers to review and merge those changes.
21
+
22
+
## Creating a pull request
23
+
24
+
To create a PR, you'll need to follow these steps:
25
+
26
+
1.**Fork the repository** - If you don't have permission to make changes to the repository directly, you'll need to fork the repository to your own account.
27
+
This creates a copy of the repository that you can make changes to.
28
+
29
+
2.**Create a branch (optional)** - Create a new branch on your forked repository that contains the changes you want to propose.
30
+
Give the branch a descriptive name that indicates what the changes are for.
31
+
32
+
3.**Make your changes** - Make the changes you want, commit, and push them to your forked repository.
33
+
34
+
4.**Create the PR** - Go to the original repository and go to the "Pull Requests" tab. Click the "New Pull Request" button and select your new branch as the source branch.
35
+
Enter a descriptive title and description for your Pull Request and click "Create Pull Request".
36
+
37
+
## Reviewing a pull request
38
+
39
+
When a PR is created, it triggers a review process. The maintainers of the repository are notified of the PR and can review the changes that were made.
40
+
They can leave comments, request changes, or approve the changes.
41
+
42
+
If the maintainers request changes, you'll need to make those changes in your branch and push the changes to your forked repository.
43
+
The PR will be updated automatically with the new changes.
44
+
45
+
If the maintainers approve the changes, they can merge the PR into the repository.
46
+
47
+
## Closing a pull request
48
+
49
+
If you decide that you no longer want to merge a PR, you can close it.
50
+
To close a PR, go to the open PR and click the "Close Pull Request" button. This will close the PR without merging it.
51
+
18
52
## "Work In Progress" pull requests
19
53
20
-
Marking a pull request as being a work in progress will prevent that pull request from being accidentally merged. To mark a pull request as being a work in progress, you must prefix its title by `WIP:` or `[WIP]` (case insensitive). Those values are configurable in your `app.ini` file :
54
+
Marking a pull request as being a work in progress will prevent that pull request from being accidentally merged.
55
+
To mark a pull request as being a work in progress, you must prefix its title by `WIP:` or `[WIP]` (case insensitive).
56
+
Those values are configurable in your `app.ini` file:
// WalkLocales reads the content of a specific locale
@@ -79,17 +81,54 @@ func walkAssetDir(root string, callback func(path, name string, d fs.DirEntry, e
79
81
returnnil
80
82
}
81
83
82
-
funcstatDirIfExist(dirstring) ([]string, error) {
83
-
isDir, err:=util.IsDir(dir)
84
+
// mustLocalPathAbs coverts a path to absolute path
85
+
// FIXME: the old behavior (StaticRootPath might not be absolute), not ideal, just keep the same as before
86
+
funcmustLocalPathAbs(sstring) string {
87
+
abs, err:=filepath.Abs(s)
84
88
iferr!=nil {
85
-
returnnil, fmt.Errorf("unable to check if static directory %s is a directory. %w", dir, err)
89
+
// This should never happen in a real system. If it happens, the user must have already been in trouble: the system is not able to resolve its own paths.
90
+
log.Fatal("Unable to get absolute path for %q: %v", s, err)
0 commit comments