Jason Song
aba1c03fee
feat: improve listing runs
2023-01-06 16:29:10 +08:00
Jason Song
6f6bfc5d51
feat: more translations
2023-01-06 15:55:47 +08:00
Jason Song
b1013a4770
refactor: shard runner templates
2023-01-05 16:40:20 +08:00
Jason Song
a4b2cf2426
feat: calculate duration
2023-01-05 16:19:08 +08:00
Jason Song
b884772652
Apply suggestions from code review
...
Co-authored-by: delvh <dev.lh@web.de >
2023-01-05 11:59:32 +08:00
Jason Song
95167fd0a2
chore: rename to NumActionRuns
2023-01-04 18:52:22 +08:00
Jason Song
53afbcecad
Merge branch 'main' into feature/bots
2023-01-03 09:43:23 +08:00
Yarden Shoham
b994b2ea9c
Fix due date rendering the wrong date in issue ( #22302 )
...
Previously, the last minute of the chosen date caused bad timezone
rendering.
For example, I chose January 4th, 2023.
### Before
```html
<time data-format="date" datetime="Wed, 04 Jan 2023 23:59:59 +0000">January 5, 2023</time>
```
### After
```html
<time data-format="date" datetime="2023-01-04">January 4, 2023</time>
```
---
Closes #21999
Signed-off-by: Yarden Shoham <hrsi88@gmail.com >
2023-01-02 10:49:05 +08:00
Jason Song
133437d4eb
Merge branch 'main' into feature/bots
2022-12-30 09:36:51 +08:00
Jason Song
47efba78ec
Support template for merge message description ( #22248 )
...
Fix #21435 .
Use the first line of the template as the git commit message title, and
the rest as the description.
## Snapshots
<img width="806" alt="image"
src="https://user-images.githubusercontent.com/9418365/209644083-5d85179c-cf58-404f-bc98-c662398a2411.png ">
<img width="860" alt="image"
src="https://user-images.githubusercontent.com/9418365/209644392-22573090-e2c1-458b-ba44-855b79735632.png ">
<img width="1154" alt="image"
src="https://user-images.githubusercontent.com/9418365/209644457-a1b2711a-6787-45b4-b52c-a88d7fc132d7.png ">
Co-authored-by: delvh <dev.lh@web.de >
2022-12-29 14:40:20 +02:00
Jason Song
bc7b575ade
fix: update locale
2022-12-29 14:29:49 +08:00
Jason Song
d995fc6281
Merge branch 'main' into feature/bots
2022-12-28 13:29:46 +08:00
Xinyu Zhou
7cc7db73b9
Add option to prohibit fork if user reached maximum limit of repositories ( #21848 )
...
If user has reached the maximum limit of repositories:
- Before
- disallow create
- allow fork without limit
- This patch:
- disallow create
- disallow fork
- Add option `ALLOW_FORK_WITHOUT_MAXIMUM_LIMIT` (Default **true**) :
enable this allow user fork repositories without maximum number limit
fixed https://github.com/go-gitea/gitea/issues/21847
Signed-off-by: Xinyu Zhou <i@sourcehut.net >
2022-12-27 15:21:14 -06:00
Jason Song
9eafbada53
chore: reorganize locale of actions
2022-12-22 17:29:41 +08:00
Jason Song
d183b32aa8
Merge branch 'main' into feature/bots
2022-12-22 12:00:41 +08:00
Reo
48d71b7d6b
Add Feed for Releases and Tags ( #21696 )
...
Fixes #19091
Add Feed for Releases and Tags, can be accessed through
`reponame/releases.rss`, `reponame/releases.atom`, `reponame/tags.rss`,
and `reponame/tags.atom`
Signed-off-by: Reo <reo_999@proton.me >
2022-12-21 15:06:26 -06:00
Lunny Xiao
495b8b3635
Fix delete secret modal ( #22187 )
...
Fix #22181
2022-12-20 12:18:15 -06:00
Jason Song
659055138b
Secrets storage with SecretKey encrypted ( #22142 )
...
Fork of #14483 , but [gave up
MasterKey](https://github.com/go-gitea/gitea/pull/14483#issuecomment-1350728557 ),
and fixed some problems.
Close #12065 .
Needed by #13539 .
Featrues:
- Secrets for repo and org, not user yet.
- Use SecretKey to encrypte/encrypt secrets.
- Trim spaces of secret value.
- Add a new locale ini block, to make it easy to support secrets for
user.
Snapshots:
Repo level secrets:

Rrg level secrets

Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
2022-12-20 17:07:13 +08:00
Jason Song
ab98c3ff43
Merge branch 'main' into feature/bots
2022-12-19 18:26:28 +08:00
zeripath
6e22605793
Ensure that plain files are rendered correctly even when containing ambiguous characters ( #22017 )
...
As recognised in #21841 the rendering of plain text files is somewhat
incorrect when there are ambiguous characters as the html code is double
escaped. In fact there are several more problems here.
We have a residual isRenderedHTML which is actually simply escaping the
file - not rendering it. This is badly named and gives the wrong
impression.
There is also unusual behaviour whether the file is called a Readme or
not and there is no way to get to the source code if the file is called
README.
In reality what should happen is different depending on whether the file
is being rendered a README at the bottom of the directory view or not.
1. If it is rendered as a README on a directory - it should simply be
escaped and rendered as `<pre>` text.
2. If it is rendered as a file then it should be rendered as source
code.
This PR therefore does:
1. Rename IsRenderedHTML to IsPlainText
2. Readme files rendered at the bottom of the directory are rendered
without line numbers
3. Otherwise plain text files are rendered as source code.
Replace #21841
Signed-off-by: Andrew Thornton <art27@cantab.net >
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2022-12-17 22:22:25 +02:00
Jason Song
1c9288f3dd
fix: list runners
2022-12-12 18:52:52 +08:00
Jason Song
5cfc48c288
fix: template format
2022-12-12 17:29:34 +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
dfa1b6168d
Merge branch 'main' into feature/bots
2022-12-12 10:46:13 +08: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
10ebbeca2f
chore: rename to action
2022-12-09 15:29:26 +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
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
ab0a60e56a
Merge branch 'main' into feature/bots
2022-12-06 16:39:06 +08:00
Jason Song
223782ca4c
refactor: rename to actions
2022-12-06 15:16:25 +08:00
Yarden Shoham
77f50356f4
Remove useless "Cancel" buttons ( #21872 )
...
* Continues #21381
These buttons have no real use. To cancel, one would simply navigate
away.
Signed-off-by: Yarden Shoham <hrsi88@gmail.com >
2022-12-05 20:38:34 +08:00
Jason Song
704f72017d
refactor: rename packages
2022-12-05 15:45:38 +08:00
Jason Song
bd1af5b7f8
Merge branch 'main' into feature/bots
2022-12-05 14:31:00 +08:00
zeripath
0e46499258
Do not emit ambiguous character warning on rendered pages ( #22016 )
...
The real sensitivity of ambiguous characters is in source code -
therefore warning about them in rendered pages causes too many warnings.
Therefore simply remove the warning on rendered pages.
The escape button will remain available and it is present on the view
source page.
Fix #20999
Signed-off-by: Andrew Thornton <art27@cantab.net >
2022-12-03 23:47:00 +08:00
Jason Song
b9ab9b21c6
Merge branch 'go-gitea:main' into feature/bots
2022-12-02 13:28:14 +08:00
Mark Ormesher
665d02efaf
Remove duplicate "Actions" label in mobile view ( #21974 )
...
Closes #21973 .
The "Actions" button on the commit view page is labelled twice in mobile
view. No other buttons on the page have a `mobile-only` extra label, so
this PR removes it.
Before:

After:

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2022-12-01 22:39:19 -05:00
Jason Song
d2a4c10bc7
chore: code lint
2022-12-01 15:39:28 +08:00
Jason Song
b2745bff43
feat: support disable bots completely
2022-12-01 15:27:28 +08:00
Jason Song
ef4b3673dd
chore: golang lint
2022-11-26 22:12:52 +08:00
Lunny Xiao
2ecb59c092
rename builds -> bots
2022-11-25 17:48:48 +08:00
Jason Song
f3a9a25682
fix: remove build view header
2022-11-25 17:48:47 +08:00
fuxiaohei
6a0614f4a5
feat(runner): add repo runners ui pages
2022-11-25 17:48:46 +08:00
Lunny Xiao
e5b835cf52
current page
2022-11-25 17:48:46 +08:00
wxiaoguang
ea5e769428
fix build view ui
2022-11-25 17:48:46 +08:00
Lunny Xiao
8ec691f3ce
Almost finished
2022-11-25 17:48:46 +08:00