gitea/models
Jason Song d81659d039
Respect original content when creating secrets ()
Fix .

Follow what GitHub does:
- Don't trim spaces for secrets.
- Newline should be `\n` instead of `\r\n`.

Did some tests with:

```yaml
name: secrets
on: push
jobs:
  show_secrets:
    runs-on: ubuntu-latest
    steps:
      - name: Dump secrets context
        run: echo '${{ toJSON(secrets) }}' | base64
```

`AAAAAA`:
```text
   AAAAAA
AAAAAA


```
`BBBBBB`:
```text



BBBBBB
BBBBBB   
```


On GitHub:

<img width="675" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/0ec60652-c2a3-47bb-9f9d-7e81665355a8">


On Gitea (before):

<img width="673" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/cce818bf-5edc-4656-86e1-2c81c304cdb2">

On Gitea (after):

<img width="673" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/0b3b15af-4d48-4bab-a334-4738a1b0eb4a">
..
actions Don't filter action runs based on state ()
activities Fix commits pushed with deploy keys not shown in dashboard ()
admin Make repo migration cancelable and fix various bugs ()
asymkey Merge setting.InitXXX into one function with options ()
auth Fix 500 error if there is a name conflict when edit authentication source ()
avatars Avoid warning for system setting when start up ()
db Improve milestone filter on issues page ()
dbfs Merge setting.InitXXX into one function with options ()
fixtures fix: release page for empty or non-existing target ()
git Add status indicator on main home screen for each repo ()
issues Modify luminance calculation and extract related functions into single files ()
migrations Rewrite queue ()
organization Add owner team permission check test ()
packages Add Go package registry ()
perm Rename `repo.GetOwner` to `repo.LoadOwner` ()
project Improve GetBoards and getDefaultBoard ()
pull refactor some functions to support ctx as first parameter ()
repo Refactor Pull Mirror and fix out-of-sync bugs ()
secret Respect original content when creating secrets ()
shared/types Display owner of a runner as a tooltip instead of static text ()
system Avoid warning for system setting when start up ()
unit Require at least one unit to be enabled ()
unittest Rewrite queue ()
user Add Debian package registry ()
webhook Fix incorrect webhook time and use relative-time to display it ()
error.go Implement FSFE REUSE for golang files ()
fixture_generation.go Implement FSFE REUSE for golang files ()
fixture_test.go Implement FSFE REUSE for golang files ()
main_test.go Merge setting.InitXXX into one function with options ()
migrate.go Check primary keys for all tables and drop ForeignReference ()
migrate_test.go Check primary keys for all tables and drop ForeignReference ()
org.go refactor some functions to support ctx as first parameter ()
org_team.go Remove org users who belong to no teams ()
org_team_test.go Implement FSFE REUSE for golang files ()
org_test.go Implement FSFE REUSE for golang files ()
repo.go Split "modules/context.go" to separate files ()
repo_collaboration.go refactor some functions to support ctx as first parameter ()
repo_collaboration_test.go Rename `repo.GetOwner` to `repo.LoadOwner` ()
repo_test.go Implement FSFE REUSE for golang files ()
repo_transfer.go Fix unclear `IsRepositoryExist` logic ()
repo_transfer_test.go Rename almost all Ctx functions ()