chesterip
5625bc505b
Update Swagger template
2023-08-23 10:22:33 -04:00
chesterip
38d1197a39
Merge branch 'main' of github.com:go-gitea/gitea into api-repo-actions
2023-08-23 10:14:18 -04:00
chesterip
fdfc2f490f
Merge branch 'api-repo-actions' of github.com:chesteripz/gitea into api-repo-actions
2023-08-23 10:13:45 -04:00
chesterip
5ebefc85ca
align with GitHub Actions
2023-08-23 10:13:39 -04:00
Chester
246873acc0
Update routers/api/v1/api.go
...
Co-authored-by: yp05327 <576951401@qq.com >
2023-08-23 09:42:07 -04:00
Thomas McWork
083b0b4770
Prefer variables over subprocesses ( #26690 )
...
… because it doesn't require a separate shell, spawning a process which
cost unnecessary resources and takes time.
2023-08-23 07:43:05 -05:00
puni9869
9c5c601439
Fix archived unix time when archiving the label ( #26681 )
...
Small Fix :-`ArchivedUnix` column changed only change the date when it is newly archived.
Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-23 10:12:20 +00:00
wxiaoguang
e8b990999f
Make "link-action" backend code respond correct JSON content ( #26680 )
...
Otherwise the `link-action` JS code couldn't parse the response.
Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-23 17:36:57 +08:00
wxiaoguang
af33a1187b
Fix doubled box-shadow in branch dropdown menu ( #26678 )
2023-08-23 08:13:04 +00:00
wxiaoguang
a428591f6b
Refactor toast module ( #26677 )
...
1. Do not use "async"
2. Call `hideToast` instead of `removeElement` for manual closing
2023-08-23 07:25:13 +00:00
wxiaoguang
e4b2bdfbc0
More improvements for the "flex list" and the dashboard list ( #26675 )
...
Follow #26649 and #25790 and add one more example (text truncate) in the devtest page
2023-08-23 04:23:30 +00:00
Jason Song
5db21ce7e1
Fix counting and filtering on the dashboard page for issues ( #26657 )
...
This PR has multiple parts, and I didn't split them because
it's not easy to test them separately since they are all about the
dashboard page for issues.
1. Support counting issues via indexer to fix #26361
2. Fix repo selection so it also fixes #26653
3. Keep keywords in filter links.
The first two are regressions of #26012 .
After:
https://github.com/go-gitea/gitea/assets/9418365/71dfea7e-d9e2-42b6-851a-cc081435c946
Thanks to @CaiCandong for helping with some tests.
2023-08-23 02:29:17 +00:00
Lunny Xiao
3b91b2d6b1
add mfa doc ( #26654 )
...
copy and modified from #14572
> Whilst debating enforcing MFA within our team, I realised there isn't
a lot of context to the side effects of enabling it. Most of us use Git
over HTTP and would need to add a token.
I plan to add another PR that adds a sentence to the UI about needing to
generate a token when enabling MFA if HTTP is to be used.
---------
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
Co-authored-by: silverwind <me@silverwind.io >
2023-08-22 21:56:11 -04:00
6543
3a67997f98
[Refactor] getIssueStatsChunk to move inner function into own one ( #26671 )
...
move inner **countSession** of **getIssueStatsChunk** into it's own
function for reuse
---
*Sponsored by Kithara Software GmbH*
2023-08-22 21:29:49 -04:00
chesterip
8f787dfe66
Update copyright message
2023-08-22 20:11:40 -04:00
chesterip
6870e1a60c
Use the run index instead, since it's the number used in FE
2023-08-22 20:07:37 -04:00
chesterip
8b5443acdb
Fix template
2023-08-22 20:00:59 -04:00
chesterip
b8a61a6ba4
Add API endpoints for getting action jobs status
2023-08-22 19:58:55 -04:00
wxiaoguang
8f2e2878e5
Use line-height: normal by default ( #26635 )
...
Fix #26537 again because 1.15 is too small for some fonts.
2023-08-22 10:19:15 +00:00
yp05327
75689b8973
Improve repo sub menu ( #26531 )
...
Before:

After:

Icons are not in the middle of the line.
2023-08-22 09:20:09 +00:00
yp05327
c052f76266
Fix organization list in dashboard ( #26650 )
...
Fix ui problem comes from #26326
Before:

After:

2023-08-22 08:49:00 +00:00
yp05327
bd8a253220
Improve show role ( #26621 )
...
Add a general show role template.
2023-08-22 05:30:33 +00:00
wxiaoguang
7934602a4c
Improve some flex layouts ( #26649 )
...
Fix #26617
1. Separate the "flex-list" examples into a dedicated template, and add some more examples
2. Use `flex-basis` instead of `flex-shrink` for `flex-item-trailing`, to avoid wrapping the texts too aggressively
3. Some `flex-wrap: wrap;` are removed
2023-08-22 12:57:02 +08:00
Bo-Yi Wu
23addde28e
feat: implement organization secret creation API ( #26566 )
...
- Add a new `CreateSecretOption` struct for creating secrets
- Implement a `CreateOrgSecret` function to create a secret in an
organization
- Add a new route in `api.go` to handle the creation of organization
secrets
- Update the Swagger template to include the new `CreateOrgSecret` API
endpoint
---------
Signed-off-by: appleboy <appleboy.tw@gmail.com >
2023-08-22 11:20:34 +08:00
yp05327
a4a567f29f
Check disabled workflow when rerun jobs ( #26535 )
...
In GitHub, we can not rerun jobs if the workflow is disabled.
---------
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2023-08-22 10:30:02 +08:00
techknowlogick
b3f7137174
Update minimum password length requirements ( #25946 )
2023-08-21 19:27:50 +00:00
techknowlogick
02a45e8d58
cynkra is covered via oc links now ( #26641 )
2023-08-21 17:16:23 +00:00
techknowlogick
b85a57845c
update config docs url ( #26640 )
2023-08-21 17:14:49 +00:00
techknowlogick
59f837f44e
devpod use go1.21 ( #26637 )
2023-08-21 16:20:50 +00:00
delvh
3d80308b36
Use correct minio error ( #26634 )
...
Previously, `err` was defined above, checked for `err == nil` and used
nowhere else.
Hence, the result of `convertMinioErr` would always be `nil`.
This leads to a NPE further down the line.
That is not intentional, it should convert the error of the most recent
operation, not one of its predecessors.
Found through
https://discord.com/channels/322538954119184384/322538954119184384/1143185780206993550 .
2023-08-21 16:20:11 +00:00
wxiaoguang
0731abc444
Remove avatarHTML from template helpers ( #26598 )
...
The HTML code is more readable and more correct (it needs `"ui avatar"`
class)
Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-21 15:00:14 +00:00
Jason Song
8cf3b61fb9
Add optimistic lock to ActionRun table ( #26563 )
...
Should fix #26559 .
How xorm works: https://xorm.io/docs/chapter-06/1.lock/
---------
Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-21 14:07:52 +00:00
wxiaoguang
42cbe6005a
Improve the branch selector tab UI ( #26631 )
2023-08-21 13:35:02 +00:00
CaiCandong
5bd63f83e3
Improve translation of milestone filters ( #26569 )
...
https://github.com/go-gitea/gitea/issues/26567#issue-1855312074
> The terms `closest` and `furthest` don't describe the actual sorting
behavior as these two are semantically relative to the current date.
> Could we switch to `earliest` and `latest` instead?
close #26567
---------
Co-authored-by: yp05327 <576951401@qq.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-21 21:11:07 +08:00
Yarden Shoham
16dee4f1b2
Add branch_filter
to hooks API endpoints ( #26599 )
...
We now include the branch filler in the response.
- Closes #26591
# Before

# After

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-21 11:43:52 +00:00
silverwind
facdaee47b
Replace box-shadow for floating
dropdown as well ( #26581 )
...
Add `box-shadow` replacement to the `floating` dropdown variant as well,
which was missed in https://github.com/go-gitea/gitea/pull/26469 . The
Fomantic style has `!important`, so this has to have too. Also made a
tiny adjustment to shadow color on dark theme.
<img width="305" alt="Screenshot 2023-08-18 at 16 40 34"
src="https://github.com/go-gitea/gitea/assets/115237/a0aac9cb-6393-4d69-b0b3-00eaac5ccf9f ">
<img width="202" alt="Screenshot 2023-08-18 at 16 40 22"
src="https://github.com/go-gitea/gitea/assets/115237/0a5fa3aa-7452-4dbd-86ed-ccbc1c872ebb ">
Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-21 12:49:49 +02:00
yp05327
f6e7798405
Add link to job details and tooltip to commit status in repo list in dashboard ( #26326 )
...
Tooltip:

Link to the target job:

2023-08-21 15:26:10 +08:00
wxiaoguang
3be80a863b
Ignore the trailing slashes when comparing oauth2 redirect_uri ( #26597 )
...
Fix #26526
2023-08-21 12:15:55 +08:00
silverwind
3db3f5daae
Update tool dependencies ( #26607 )
...
- Updated all tool dependencies to latest versions
- Add Makefile to `swagger` files because it specifies `go-swagger`
version
- Fix lint
2023-08-20 22:59:19 +00:00
techknowlogick
653e77fd22
bump go to 1.21 ( #26608 )
...
Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-21 00:27:46 +02:00
delvh
9c80a5d508
Update 1.20.3 changelog ( #26609 )
2023-08-20 21:17:15 +02:00
TimberBro
84d05516dc
Fix NPM packages name validation ( #26595 )
...
- Added new tests to cover corner cases
- Replace existing regex with new one
Closes #26551
---
As @silverwind suggested, I started from
[validate-npm-package-name](https://github.com/npm/validate-npm-package-name ),
but found this solution too complicated.
Then I tried to fix existing regex myself, but thought, that exclude all
restricted symbols is harder, than set only allowed symbols.
Then I search a bit more and found
[package-name-regex](https://github.com/dword-design/package-name-regex )
and regex from it works for all new test cases.
Let me know, if more information or help with this PR is needed.
2023-08-20 15:06:42 +00:00
wxiaoguang
ead52dd96c
Use "input" event instead of "keyup" event for migration form ( #26602 )
...
Otherwise, "pasted" content won't update the UI.
2023-08-20 16:36:07 +02:00
wxiaoguang
79c3329502
Do not use deprecated log config options by default ( #26592 )
...
Simplify the log config
* Remove unnecessary `ROUTER` config, it defaults to the `MODE`.
* `XORM` config was deprecated
2023-08-20 01:05:29 +00:00
a1012112796
f00fdd1abd
fix reopen logic for agit flow pull request ( #26399 )
...
the head branch is meaningless for a agit flow pull request, so should
not check it when reopen it.
related: #24231
fix #26334
Signed-off-by: a1012112796 <1012112796@qq.com >
2023-08-19 11:29:34 +02:00
silverwind
5feef6d5c0
Update JS dependencies ( #26586 )
...
- Update all JS dependencies
- Adapt `ansi_up` import for ESM
- Tested Mermaid and Ansi rendering
2023-08-19 10:18:39 +02:00
lonix1
8f936488f7
docs: template variables ( #26547 )
...
Explanation for using gitea's variables in `.tmpl` files.
Thanks to @wxiaoguang for advising me on
[discord](https://discord.com/channels/322538954119184384/561007778139734027/1141217820441587722 ).
2023-08-19 00:24:27 +00:00
GiteaBot
00cf36d6c7
[skip ci] Updated translations via Crowdin
2023-08-19 00:20:23 +00:00
wxiaoguang
48c4a7e75c
Rewrite the DiffFileTreeItem and fix misalignment ( #26565 )
...
Fix some layout / user-interaction problems and close #25650 , the code
has been simplified (+46 −108)
<details>

</details>
---------
Co-authored-by: delvh <dev.lh@web.de >
2023-08-18 19:55:56 +00:00
silverwind
30e5278d1b
Allow text selection in actions step header ( #26588 )
2023-08-18 18:38:29 +00:00