Jason Song
cca23dd4af
feat: rename bot user to gitea-actions
2022-12-12 17:29:34 +08:00
Jason Song
5cfc48c288
fix: template format
2022-12-12 17:29:34 +08:00
Jason Song
d41fb40fb5
docs: comment for V1AlphaRoute
2022-12-12 17:29:34 +08:00
Lunny Xiao
705fbb46d5
Fix permission check on http push
2022-12-12 14:52:00 +08:00
Jason Song
59c3707da2
Merge branch 'main' into feature/bots
2022-12-12 13:33:24 +08:00
Lunny Xiao
003b4e209c
Allow disable code tab ( #20805 )
...
I know some users created a repository in an organization but just use
issues and projects to handle the whole organizations issues. So that
`Code` could be disabled per repository.
<img width="1148" alt="image"
src="https://user-images.githubusercontent.com/81045/184792075-346cb508-b620-4adb-bc9a-cba76fdcb294.png ">
It could also become a wiki repository.
<img width="1173" alt="image"
src="https://user-images.githubusercontent.com/81045/184792324-e15c6f68-35c0-4105-ab77-83585ce53672.png ">
Co-authored-by: delvh <dev.lh@web.de>
2022-12-12 13:29:27 +08:00
Jason Song
a6e39ca180
Merge branch 'main' into feature/bots
2022-12-12 13:12:58 +08:00
Jason Song
4da0a65511
chore: migrations v236
2022-12-12 13:12:00 +08:00
Jason Song
dbdfd2647c
chore: rename to workflows.go
2022-12-12 13:09:17 +08:00
Jason Song
86d6598a54
fix: use LONGBLOB
2022-12-12 13:08:49 +08:00
Jason Song
7a34d37aad
fix: use ctx
2022-12-12 11:05:22 +08:00
Lunny Xiao
3e8285b824
Use multi reader instead to concat strings ( #22099 )
...
extract from #20326
2022-12-12 11:03:54 +08:00
Jason Song
dbef504584
fix: truncated title
2022-12-12 10:54:28 +08:00
Jason Song
22203eeb38
Update modules/notification/actions/helper.go
...
Co-authored-by: a1012112796 <1012112796@qq.com>
2022-12-12 10:48:32 +08:00
Jason Song
dfa1b6168d
Merge branch 'main' into feature/bots
2022-12-12 10:46:13 +08:00
aceArt-GmbH
352a50d65f
Fix sorting admin user list by last login ( #22081 )
...
Admin User Account list sort
`updated_unix` is not the same as "Last Sign-In"
2022-12-11 18:00:17 -06:00
Lunny Xiao
c9ef03af65
Fix wrong default value for update checker on app.example.ini ( #22084 )
2022-12-11 16:08:01 -06:00
Restray
112e425f90
fix(config): remove context on config template ( #22096 )
...
👋 Hey
I'm new around here, so I may have done some mistakes, sorry!
---
## Context
On a fresh Gitea install, when I go to the [config admin
page](http://localhost:3000/admin/config ) I had a 500 error page.
The logs:
```
2022/12/10 20:08:47 ...s/context/context.go:232:HTML() [E] [6394d93f] Render failed: template: admin/config:180:22: executing "admin/config" at <.Service.DefaultAllowOnlyContributorsToTrackTime>: DefaultAllowOnlyContributorsToTrackTime has arguments but cannot be invoked as function
2022/12/10 20:08:47 [6394d93f] router: completed GET /admin/config for [::1]:43800, 500 Internal Server Error in 5.1ms @ admin/config.go:99(admin.Config)
```
## The fix
I removed the `$.Context` on the
`.Service.DefaultAllowOnlyContributorsToTrackTime` to fix the 500 error
page happening. It could be a mistake, and I don't fully understand what
I've done!
Signed-off-by: Restray <contact@restray.org>
2022-12-11 12:06:12 +08:00
KN4CK3R
601d126627
[skip ci] Updated licenses and gitignores
2022-12-11 00:19:34 +00:00
KN4CK3R
0e2d04601a
Update xorm ( #22094 )
2022-12-10 18:53:32 -05:00
Yarden Shoham
9745c33e9e
Remove unnecessary whitespace in snapcraft.yaml ( #22090 )
...
Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
2022-12-10 08:31:16 -06:00
Lunny Xiao
68704532c2
Rename almost all Ctx functions ( #22071 )
2022-12-10 10:46:31 +08:00
Felipe Leopoldo Sologuren Gutiérrez
097d4e30b1
Change ID pattern of raw content container for issue ( #21966 )
...
Implement differentiation to html id for issue raw content container.
Fixes #21965
2022-12-10 00:25:32 +08:00
Jason Song
2779d47ad3
Optimize html templates ( #22080 )
...
Replace `active{{end}} item` with `active{{end}} item`.
2022-12-09 21:34:51 +08:00
Jason Song
d378a78c79
Merge branch 'main' into feature/bots
2022-12-09 16:20:28 +08:00
Jason Song
901914e34b
feat: move summary to header
2022-12-09 16:14:45 +08:00
Jason Song
9b6b848311
fix: layout
2022-12-09 15:47:58 +08:00
Jason Song
10ebbeca2f
chore: rename to action
2022-12-09 15:29:26 +08:00
KN4CK3R
3c59d31bc6
Add API management for issue/pull and comment attachments ( #21783 )
...
Close #14601
Fix #3690
Revive of #14601 .
Updated to current code, cleanup and added more read/write checks.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andre Bruch <ab@andrebruch.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Norwin <git@nroo.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-09 14:35:56 +08:00
Jason Song
8fb1e53ca2
Rename actions to operations on UI ( #22067 )
...
Use "operations" to indicate "some something can be done", to prevent
users from confusing it with CICD.
Releated to: #13539 .
Snapshots:
<img width="389" alt="image"
src="https://user-images.githubusercontent.com/9418365/206409797-a99bac25-2d38-4066-b9ab-27a4f6fe67e7.png ">
<img width="398" alt="image"
src="https://user-images.githubusercontent.com/9418365/206410099-bbd258a9-54d9-4664-8d95-31d29cb35209.png ">
<img width="442" alt="image"
src="https://user-images.githubusercontent.com/9418365/206410218-009a3103-a9b9-4d0c-86b6-540dda5bce89.png ">
I'm not a native English speaker, but I think "operations" may be good
enough, and Gitea already uses this word:
<img width="1440" alt="image"
src="https://user-images.githubusercontent.com/9418365/206410671-4a718b14-0603-40cb-bdcb-f6f84d1f5e24.png ">
2022-12-08 21:14:09 +08:00
Jason Song
266a122ba2
Merge branch 'main' into feature/bots
2022-12-08 18:11:18 +08:00
Jason Song
49143952fa
fix: remove timestamp
2022-12-08 18:08:17 +08:00
Jason Song
3dc7ffc925
fix: add settings.actions_desc
2022-12-08 17:41:25 +08:00
silverwind
0585ac3ac6
Update go dev dependencies ( #22064 )
...
`golangci-lint`
[deprecated](https://github.com/golangci/golangci-lint/issues/1841 ) a
bunch of linters, removed them.
2022-12-08 16:21:37 +08:00
hr-98
cf27403e18
Round language stats percentage using largest remainder ( #22026 )
...
Fix #22023
I've changed how the percentages for the language statistics are rounded
because they did not always add up to 100%
Now it's done with the largest remainder method, which makes sure that
total is 100%
Co-authored-by: Lauris BH <lauris@nix.lv>
2022-12-08 10:47:47 +08:00
Jason Song
0a85537c79
Support disabling database auto migration ( #22053 )
...
Gitea will migrate the database model version automatically, but it
should be able to be disabled and keep Gitea shutdown if the version is
not matched.
2022-12-07 09:58:31 -06:00
Jason Song
202bbe27c0
docs: update comparison
2022-12-07 17:35:05 +08:00
Jason Song
8377fc00d6
Merge branch 'main' into feature/bots
2022-12-07 09:45:18 +08:00
silverwind
e2fa84fddc
Release and Tag List tweaks ( #21712 )
...
- Reduce font size on tag list and add muted links
- Move Release tag to right side on release list
- Move Release edit button to far-right and make it icon-only
- Add styles for error dropdowns, seen on release edit page
- Make the release page slightly more mobile-friendly
<img width="468" alt="Screen Shot 2022-11-07 at 22 10 44"
src="https://user-images.githubusercontent.com/115237/200417500-149f40f5-2376-42b4-92a7-d7eba3ac359d.png ">
<img width="1015" alt="Screen Shot 2022-11-07 at 22 27 14"
src="https://user-images.githubusercontent.com/115237/200419201-b28f39d6-fe9e-4049-8023-b301c9bae528.png ">
<img width="1019" alt="Screen Shot 2022-11-07 at 22 27 27"
src="https://user-images.githubusercontent.com/115237/200419206-3f07d988-42f6-421d-8ba9-303a0d59e711.png ">
<img width="709" alt="Screen Shot 2022-11-07 at 22 42 10"
src="https://user-images.githubusercontent.com/115237/200421671-f0393cde-2d8f-4e1f-a788-f1f51fc4807c.png ">
<img width="713" alt="Screen Shot 2022-11-07 at 22 42 27"
src="https://user-images.githubusercontent.com/115237/200421676-5797f8cf-dfe8-4dd6-85d4-dc69e31a9912.png ">
<img width="406" alt="image"
src="https://user-images.githubusercontent.com/115237/200418220-8c3f7549-61b4-4661-935e-39e1352f7851.png ">
<img width="416" alt="Screen Shot 2022-11-07 at 22 21 36"
src="https://user-images.githubusercontent.com/115237/200418107-cdb0eb6f-1292-469c-b89a-2cb13f24173c.png ">
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-06 21:15:46 +08:00
Jason Song
26b87561b6
fix: deal with empty repo
2022-12-06 18:32:26 +08:00
Jason Song
eaf266a635
chore: fix lint
2022-12-06 16:58:49 +08:00
Jason Song
ab0a60e56a
Merge branch 'main' into feature/bots
2022-12-06 16:39:06 +08:00
Jason Song
55df4fd3e9
chore: rename BOTS
2022-12-06 16:24:27 +08:00
Jason Song
f6f29d4cbf
chore: upgrade act to v0.234.0
2022-12-06 16:23:18 +08:00
Jason Song
4142218088
chore: rename dbfs prefix
2022-12-06 16:13:29 +08:00
Jason Song
74874d065f
Fix issue/PR numbers ( #22037 )
...
When deleting a closed issue, we should update both `NumIssues`and
`NumClosedIssues`, or `NumOpenIssues`(`= NumIssues -NumClosedIssues`)
will be wrong. It's the same for pull requests.
Releated to #21557 .
Alse fixed two harmless problems:
- The SQL to check issue/PR total numbers is wrong, that means it will
update the numbers even if they are correct.
- Replace legacy `num_issues = num_issues + 1` operations with
`UpdateRepoIssueNumbers`.
2022-12-06 15:53:09 +08:00
Jason Song
da51e18cc0
chore: make go-licenses
2022-12-06 15:27:48 +08:00
Jason Song
223782ca4c
refactor: rename to actions
2022-12-06 15:16:25 +08:00
Jason Song
56368f3963
refactor: use ctx in models
2022-12-06 14:15:48 +08:00
Jason Song
c07d0c1768
refactor: rename model
2022-12-06 13:48:09 +08:00