yp05327 and Earl Warren
f809052193
Support the new exit code for git remote subcommands for git version >=2.30.0 ( #33129 )
...
Fix #32889
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
(cherry picked from commit 0d7d2ed39d0c0435cdc6403ee7764850154dca5a)
Conflicts:
modules/git/remote.go
trivial context conflict
2025-01-12 08:52:51 +01:00
yp05327 and Gergely Nagy
2a38208004
Fix the missing menu in organization project view page ( #32313 )
...
#29248 didn't modify the view page.
The class name is not good enough, so this is a quick fix.
Before:
org:

user:

After:
org:

user: (no change)

Co-authored-by: Giteabot <teabot@gitea.io >
(cherry picked from commit dd1f67491f5e2f798a537a61c082b1bf12e47635)
2024-11-05 09:33:15 +01:00
yp05327 and Earl Warren
af901ac7bb
Add support for searching users by email ( #30908 )
...
Fix #30898
we have an option `SearchByEmail`, so enable it, then we can search user
by email.
Also added a test for it.
(cherry picked from commit 5d6d025c9b8d2abca9ec2bfdc795d1f0c1c6592d)
2024-10-06 08:10:22 +02:00
yp05327 and Earl Warren
36af3348bc
Fix wrong status of Set up Job when first step is skipped ( #32120 )
...
Fix #32089
(cherry picked from commit 6fa962f409c84477a7a4cf35b4a38a4a93fc3224)
2024-09-29 10:38:49 +02:00
yp05327 and Gergely Nagy
5a0bc35799
Fix sort order for organization home and user profile page ( #31921 )
...
Fix #31916
In #30876 , `sortOrder` has been changed into a map, but it is only
implemented in explore.
~~But it seems that size sort order has no effect from long long ago,~~
not directly caused by the PR above.
I think it is still caused by #29231 .
In #29231 , it merged the sort orders from
`templates/explore/repo_search.tmpl` and
`templates/admin/repo/search.tmpl`.
In `templates/admin/repo/search.tmpl`, it contains size sort orders, but
not in `templates/explore/repo_search.tmpl`, which is used in non-admin
pages.
So `order by size` is added from #29231 , but the handler was not added.
---------
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
(cherry picked from commit 661a1e10f7abd3527d2abc027dec936022db9379)
2024-09-09 20:54:39 +02:00
yp05327 and Earl Warren
a8e25e907c
Add missing repository type filter parameters to pager ( #31832 )
...
Fix #31807
ps: the newly added params's value will be changed.
When the first time you selected the filter, the values of params will
be `0` or `1`
But in pager it will be `true` or `false`.
So do we have `boolToInt` function?
(cherry picked from commit 7092402a2db255ecde2c20574b973fb632c16d2e)
Conflicts:
routers/web/org/home.go
trivial conflict s/pager.AddParam/pager.AddParamString/
2024-08-19 09:26:34 +02:00
yp05327 and Earl Warren
c784a58740
Fix the display of project type for deleted projects ( #31732 )
...
Fix : #31727
After:

(cherry picked from commit 75d0b61546e00390afdd850149de525dd64336a5)
Conflicts:
options/locale/locale_en-US.ini
trivial conflict & fix excessive uppercase to unify with the other translations
2024-08-04 10:14:34 +02:00
yp05327 and Earl Warren
49eb831663
Fix Null Pointer error for CommitStatusesHideActionsURL ( #31731 )
...
Fix https://github.com/go-gitea/gitea/pull/30156#discussion_r1695247028
Forgot fixing it in #31719
(cherry picked from commit 0a11bce87f07233d5f02554b8f3b4a2aabd37769)
2024-08-04 10:14:34 +02:00
yp05327 and Earl Warren
2be49a3745
Fix loadRepository error when access user dashboard ( #31719 )
...
(cherry picked from commit 7b388630ecb4537f9bb04e55cbb10eb7cf83b9c5)
2024-08-04 10:14:34 +02:00
yp05327 and Earl Warren
d0e52fd641
Support delete user email in admin panel ( #31690 )
...



---------
Co-authored-by: Jason Song <i@wolfogre.com >
(cherry picked from commit cc044818c33ff066c4e5869c9e75de9707def6ed)
2024-07-28 09:00:29 +02:00
yp05327 and Earl Warren
b5ea092964
Fix PullRequestList.GetIssueIDs's logic ( #31352 )
...
fix a bug from #30490
`prs.GetIssueIDs()` will also be used in other places, e.g.
`InvalidateCodeComments`
so we should not add `if pr.Issue == nil` in it, or if `pr.Issue` is
already loaded, you will not get the issueID in the results list and
this is not an expected result.
So this will caused a bug:
before calling `InvalidateCodeComments`, all `pr.Issues` in `prs` are
loaded, so `issueIDs` in this function will always be `[]`.

(cherry picked from commit e61e9a36b7117bab2cb122a95d606a86527ed45d)
2024-06-16 13:42:58 +02:00
yp05327 and Earl Warren
3befabead0
Remove sqlite-viewer and using database client ( #31223 )
...
sqlite-viewer can not edit sqlite.
database client can connect to almost all common databases, which is
very useful I think. Of cause, it can edit sqlite.
https://marketplace.visualstudio.com/items?itemName=cweijan.vscode-database-client2
And for using sqlite, sqlite3 is required. So also added a new feature:
https://github.com/warrenbuckley/codespace-features
found from: https://containers.dev/features
(cherry picked from commit fc641b3a28300e13c822140556eca8d00f2b5196)
Conflicts:
.devcontainer/devcontainer.json
trivial context conflict because AZure blob support was not added
2024-06-09 11:13:39 +02:00
yp05327 and Earl Warren
1a250c7b2b
Fix incorrect default branch when adopt a repository ( #30912 )
...
Fix #30521
we should sync branches first, then detect default branch, or
`git_model.FindBranchNames` will always return empty list, and the
detection will be wrong.
(cherry picked from commit e94723f2de7d9bf12d870f5ce9ffb291a99ba090)
Conflicts:
services/repository/adopt.go
trivial conflict because
e80466f734 Resolve lint for unused parameter and unnecessary type arguments (#30750 )
was not cherry-picked
2024-05-12 20:03:10 +02:00
yp05327 and Earl Warren
6c9b8401f9
Fix misspelling of mergable ( #30896 )
...
https://github.com/go-gitea/gitea/pull/25812#issuecomment-2099833692
Follow #30573
(cherry picked from commit f7d2f695a4c57b245830a526e77fa62e99e00254)
Conflicts:
services/pull/check.go
trivial conflict because
9b2536b78fdcd3cf444a2f54857d9871e153858f Update misspell to 0.5.1 and add `misspellings.csv` (#30573 )
was not cherry-picked
2024-05-12 20:03:10 +02:00
yp05327 and Gergely Nagy
f81890fa95
Add result check in TestAPIEditUser ( #29674 )
...
Fix #29514
There are too many usage of `NewRequestWithValues`, so there's no need
to check all of them.
Just one is enough I think.
(cherry picked from commit ecd1d96f494d2400f7659165ff9376354edda395)
Conflicts:
- tests/integration/api_admin_test.go
Conflict resolved by manually applying the change to
`full_name`.
2024-05-09 19:26:21 +02:00
yp05327 and Earl Warren
6a4bc0289d
Fix no edit history after editing issue's title and content ( #30814 )
...
Fix #30807
reuse functions in services
(cherry picked from commit a50026e2f30897904704895362da0fb12c7e5b26)
Conflicts:
models/issues/issue_update.go
routers/api/v1/repo/issue.go
trivial context conflict because of 'allow setting the update date on issues and comments'
2024-05-05 12:15:40 +01:00
yp05327 and Gergely Nagy
829c3c6838
Use action user as the trigger user of schedules ( #30581 )
...
Follow https://github.com/go-gitea/gitea/pull/30357
When user push to default branch, the schedule trigger user will be the
user.
When disable then enable action units in settings, the schedule trigger
user will be action user.
When repo is a mirror, the schedule trigger user will be action user. (
before it will return error, fixed by #30357 )
As scheduled job is a cron, the trigger user should be action user from
Gitea, not a real user.
---------
Co-authored-by: Giteabot <teabot@gitea.io >
(cherry picked from commit cb6814adad4dc81a683b50826a211ce7bce731d7)
Conflicts:
- services/actions/notifier_helper.go
Conflict resolved by keeping Forgejo's version of the line.
2024-04-21 16:28:16 +02:00
yp05327 and Gergely Nagy
3662829cc9
Fix empty field login_name in API response JSON when creating user ( #30511 )
...
Fix #30508
ps: if `sourceID` is not set, `LoginName` will be ignored
(cherry picked from commit cf9061f44a439aa7775e301a7467dbda22a06eaa)
2024-04-21 11:59:16 +02:00
yp05327 and Gergely Nagy
b691a3e6b8
Convert max file name length to 255 ( #30489 )
...
Quick/Partly fix #29907
In Linux and MacOS, by default the max file name length is 255.
In windows, it depends on the version and settings, and has no file name
length limitation, but has path length limitation.
By default it is 260, considering path length is longer than filename,
so I think it is ok to do this.
For Windows, see
https://learn.microsoft.com/windows/win32/fileio/maximum-file-path-limitation?tabs=registry
For Linux, see
https://github.com/torvalds/linux/blob/master/include/uapi/linux/limits.h#L12-L13
For MacOS, see
https://discussions.apple.com/thread/254788848?sortBy=best
(cherry picked from commit 2c80421243ed1fd6f53c3e1a84c06648524f7c66)
2024-04-21 11:53:41 +02:00
yp05327 and Gergely Nagy
9987b75662
Fix network error when open/close organization/individual projects and redirect to project page ( #30387 )
...
Follow #27734

Updated:
Redirect to project page instead of project list page.
(cherry picked from commit af02b8a0e9b00a324fb92f1f73ea386dd9595c3d)
2024-04-15 20:01:36 +02:00
yp05327 and Gergely Nagy
6cc141516b
Fix mirror error when mirror repo is empty ( #30432 )
...
Fix #30424
Co-authored-by: Giteabot <teabot@gitea.io >
(cherry picked from commit b4d86912ef18c58e973ee10c4a3bc621e9bd6c52)
2024-04-15 20:01:36 +02:00
yp05327 and Gergely Nagy
e74865caba
Avoid user does not exist error when detecting schedule actions when the commit author is an external user ( #30357 )
...

When repo is a mirror, and commit author is an external user, then
`GetUserByEmail` will return error.
reproduce/test:
- mirror Gitea to your instance
- disable action and enable it again, this will trigger
`DetectAndHandleSchedules`
ps: also follow #24706 , it only fixed normal runs, not scheduled runs.
(cherry picked from commit 96d31fe0a8b88c09488989cd5459d4124dcb7983)
2024-04-15 20:01:36 +02:00
yp05327 and Gergely Nagy
84abf4bd91
Avoid running action when action unit is disabled after workflows detected ( #30331 )
...
Fix #30243
We only checking unit disabled when detecting workflows, but not in
runner `FetchTask`.
So if a workflow was detected when action unit is enabled, but disabled
later, `FetchTask` will still return these detected actions.
Global setting: repo.ENABLED and repository.`DISABLED_REPO_UNITS` will
not effect this.
(cherry picked from commit d872ce006c0400edb10a05f7555f9b08070442e3)
2024-04-15 20:01:35 +02:00
yp05327 and Gergely Nagy
473b90da53
Fix DEFAULT_SHOW_FULL_NAME=false has no effect in commit list and commit graph page ( #30096 )
...
Fix #20446
This PR will fix the username in:
repo home page

repo commit list page

repo commit graph page

pr commit page

Will not fix:
wiki revisions page:

ps: the author name is `FullName` by default
(cherry picked from commit 61036235966773a0af6b690b10b33ff8222df1d7)
2024-04-07 10:52:45 +02:00
yp05327 and Earl Warren
fa87a57b59
Load attachments for code comments ( #30124 )
...
Fix #30103
ps: comments has `LoadAttributes`, but maybe considering performance
problem, we don't call it.
(cherry picked from commit ce3c3512265df3b4940672be40065c4fb415ef95)
2024-03-30 07:17:31 +01:00
yp05327 and Earl Warren
e93e29822d
Fix duplicate migrated milestones ( #30102 )
...
Fix #17567
(cherry picked from commit 274bc00ca2c3bf5a734d74e47cc28fa8c41e3875)
2024-03-30 07:17:30 +01:00
yp05327 and Earl Warren
1360e31091
Fix gitea doctor will remove repo-avatar files when execute command storage-archives ( #30094 )
...
Fix #30037
(cherry picked from commit 9cf0f0bb040162509702ec9aaf7df6662ecc13b1)
2024-03-30 07:17:30 +01:00
yp05327 and Earl Warren
eb696438fe
Fix panic for fixBrokenRepoUnits16961 ( #30068 )
...

(cherry picked from commit 08aec2c20adae8e6f04cac08566a8decd818e5cd)
2024-03-30 07:17:30 +01:00
yp05327 and Earl Warren
18caa53859
Add muted class to author name in repo commit list ( #29989 )
...
Before:

After:

If repo is a mirror, external user's name will be white, but if user is
existed, then you will see blue names and white names together:

---------
Co-authored-by: silverwind <me@silverwind.io >
(cherry picked from commit 13921569dd5f77ee7d8352d0036ff649b03e72c8)
2024-03-30 07:17:30 +01:00
yp05327 and Earl Warren
64fcf0cb64
Update register application URL for GitLab ( #29959 )
...
Fix #26593
The old URL was updated 7 years ago. Maybe no need to hold it any more.

(cherry picked from commit 4bef1fb3e49127316596cef1d3ca103a199c0536)
2024-03-26 19:04:26 +01:00
yp05327 and Earl Warren
e8e8d14b53
Fix invalid link of the commit status when ref is tag ( #29752 )
...
Fix #29731
Caused by #24634
Also remove fixme.
ps: we can not fix the existed runs, as wrong refs are all recorded in
DB, and we can not know whether they are branch or tag:

(cherry picked from commit 98217b034076157547cf688cc10f47cd3275c872)
Conflicts:
tests/integration/actions_trigger_test.go
there is a need for more imports because the exist tests
are done differently, using CreateDeclarativeRepo
2024-03-26 19:04:25 +01:00
yp05327 and Earl Warren
869286595f
Add empty repo check in DetectAndHandleSchedules ( #29606 )
...

(cherry picked from commit 3f3335ae51d89520acce6573e870590423248c5c)
2024-03-26 16:51:56 +01:00
yp05327 and Earl Warren
ed1798f66d
Improve commit record's ui in comment list ( #26619 )
...
Before:


After:


---------
Co-authored-by: silverwind <me@silverwind.io >
(cherry picked from commit ce085b26fc5076b36c55e6a0a30ba8f11105c0bf)
2024-03-20 08:46:29 +01:00
yp05327 and Earl Warren
2da0628f18
Fix incorrect menu/link on webhook edit page ( #29709 )
...
Fix #29699
---------
Co-authored-by: silverwind <me@silverwind.io >
(cherry picked from commit 2da13675c0cfdc531044553636c3b74f2fda3eb4)
2024-03-20 08:46:29 +01:00
yp05327 and Earl Warren
b6e480fcbb
Fix inconsistent rendering of block mathematical expressions ( #29677 )
...
Fix #28735
GitHub render `\```math\``` ` as a block now.
Add `display` class will render it as a block.
After:


---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
(cherry picked from commit 8fc1a8f0eb642c574610a346e858d42c433ebe01)
2024-03-20 08:46:28 +01:00
yp05327 and Earl Warren
18e0647c84
bump python version to 3.12 in dev container ( #29670 )
...

The default version is 3.9.2, which is not supported by poetry.
---------
Co-authored-by: silverwind <me@silverwind.io >
(cherry picked from commit b253463e959c44cbd212fe1d662f2520ebfe38e6)
2024-03-11 23:36:59 +07:00
yp05327 and Earl Warren
fb77784017
Fix incorrect rendering csv file when file size is larger than UI.CSV.MaxFileSize ( #29653 )
...
Fix #29506
(cherry picked from commit 9dc8a6336edddca0f3f90392bbc398f4ceaeaf13)
2024-03-11 23:36:59 +07:00
yp05327 and Earl Warren
ee4443c998
Fix wrong header of org project view page ( #29626 )
...
Follow #29248
The project view page still using `user/overview/header.tmpl`
Before:

After:

(cherry picked from commit c6cc392b55b71ae1787e86e75b7121c3769adcbe)
2024-03-11 23:36:58 +07:00
yp05327 and Earl Warren
af19bae813
Fix workflow trigger event IssueChangeXXX bug ( #29559 )
...
Bugs from #29308
Follow #29467
partly fix #29558
(cherry picked from commit 9616dbec334aacb32c6d73b01fd749b11b1e3cdb)
2024-03-06 12:10:47 +08:00
yp05327 and Earl Warren
76070599f9
Ignore empty repo for CreateRepository in action notifier ( #29416 )
...
Fix #29415
(cherry picked from commit 403766cd81697288804fd218d68c458c6aa5b73d)
2024-03-06 12:10:43 +08:00
yp05327 and Earl Warren
480c61432a
Fix logic error from #28138 ( #29417 )
...
There's a miss in #28138 :

https://github.com/go-gitea/gitea/pull/28138/files#diff-2556e62ad7204a230c91927a3f2115e25a2b688240d0ee1de6d34f0277f37dfeR162
@lunny
Not sure about the impact of this, but it will only effect 1.22, and
maybe we should fix it ASAP.
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
(cherry picked from commit f8c1efe944c539396402fb014bbfdb67ba199ef2)
2024-03-06 12:10:43 +08:00
yp05327 and Earl Warren
d93d963c3f
Implement some action notifier functions ( #29173 )
...
Fix #29166
Add support for the following activity types of `pull_request`
- assigned
- unassigned
- review_requested
- review_request_removed
- milestoned
- demilestoned
(cherry picked from commit 1a6e1cbada27db1e3327b0d7d331492c95e24759)
2024-02-19 22:58:32 +01:00
yp05327 and Earl Warren
fd3b4afa2b
Fix broken following organization ( #29005 )
...
- following organization is broken from #28908
- add login check for the follow button in organization profile page
(cherry picked from commit 68227996a7a84a240b36c304d04c5c8d82948df8)
2024-02-17 23:24:31 +01:00
yp05327 and Earl Warren
78f6b29248
Fix gitea-action user avatar broken on edited menu ( #29190 )
...
Fix #29178
(cherry picked from commit 8e2831611c06e84dd8fedf7a0b2cce9f98d4188f)
2024-02-17 23:24:31 +01:00
yp05327 and Earl Warren
df439b6a98
Fix can not select team reviewers when reviewers is empty ( #29174 )
...
Before:

After:

Is this a bug? Maybe we don't need to fix this, as it only occurs when
there's only one user in the organization. 🤔
(cherry picked from commit 78c48d8fdde70a2874a7ed42b7762f797f432b03)
2024-02-17 23:24:30 +01:00
yp05327 and GitHub
3aed8ae034
Fix default avatar image size in PR diff page ( #28971 )
...
Fix #28941
ps: didn't test. The repo is too big to migrate.
2024-02-02 10:01:11 +00:00
yp05327 and GitHub
b9f8d75e27
Avoid sending update/delete release notice when it is draft ( #29008 )
...
Fix #27157
2024-02-02 04:18:12 +00:00
yp05327 and GitHub
64faecefe1
Fix UI Spacing Errors in mirror settings ( #28990 )
2024-02-01 00:04:23 +00:00
yp05327 and GitHub
0b1a42ce0f
Fix doc img path in profile readme ( #28994 )
...
https://gitea.com/gitea/gitea-docusaurus/actions/runs/1007/jobs/0#jobstep-9-25
2024-01-31 21:32:17 +08:00
yp05327 and GitHub
b693611b35
Don't show new pr button when page is not compare pull ( #26431 )
...
Before:

After:

(TestOrg:test is a tag not branch)
Problem:
In the template, we will not add `compare pull` class when
`PageIsComparePull` is false.
https://github.com/go-gitea/gitea/blob/a370efc13f0e1ea309e324639832832bc14cb6dc/templates/repo/diff/compare.tmpl#L2
But in the js, we are using `.repository.compare.pull` to find the
button:
https://github.com/go-gitea/gitea/blob/a370efc13f0e1ea309e324639832832bc14cb6dc/web_src/js/features/repo-legacy.js#L552-L563
So, if `PageIsComparePull` is false, the `New Pull Request` button will
be there, but has no response when we click it.
2024-01-21 15:13:00 +00:00
yp05327 and GitHub
07ba4d9f87
Fix incorrect action duration time when rerun the job before executed once ( #28364 )
...
Fix #28323
Reason was mentioned here:
https://github.com/go-gitea/gitea/issues/28323#issuecomment-1841867298
### Changes: (maybe breaking)
We can rerun jobs in Gitea, so there will be some problems in
calculating duration time.
In this PR, I use the exist `Started` and `Stopped` column to record the
last run time instead of the total time,
and add a new `PreviousDuration` column to record the previous duration
time.
You can also check the cost time of last run:

2024-01-19 14:05:49 +00:00
yp05327 and GitHub
b60a7c3358
Return responseText instead of string in some functions ( #28836 )
...
Follow
https://github.com/go-gitea/gitea/pull/28796#issuecomment-1891727591
2024-01-19 10:45:23 +08:00
yp05327 and GitHub
4674aea25b
Fix display latest sync time for pull mirrors on the repo page ( #28841 )
...
Follow #28712
1. Missing Locale word `mirror_sync`
2. Maybe forgot checking the conflict from #27760
Before:

After:

2024-01-18 18:27:07 +08:00
yp05327 and GitHub
c7e4629c02
Fix nil pointer panic when exec some gitea cli command ( #28791 )
...
panic:

After:

2024-01-15 07:43:53 +00:00
ce0225c1b8
Forbid removing the last admin user ( #28337 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2024-01-15 06:51:43 +00:00
yp05327 and GitHub
b820019fec
Fix when private user following user, private user will not be counted in his own view ( #28037 )
...
Doer: asdasasdasasdasasdasasdasasdasasdasasdas (private user)
Followed: TestUser (public user)
Before:
(From doer's view)

(From followed user's view, can see doer)

After:
(From doer's view)

2024-01-15 05:43:14 +00:00
yp05327 and GitHub
dd5693387e
Add links to owner home page in explore ( #28341 )
...
User can select access repo or owner's home page.
Before:

After:

2024-01-05 03:34:35 +00:00
yp05327 and GitHub
4ea522fecf
Only check online runner when detecting matching runners in workflows ( #28286 )
...
Mentioned:
[#28277 ](https://github.com/go-gitea/gitea/issues/28277#issuecomment-1831325276 )
We should only check online runner when detecting matching runners in
workflows,
as if runner is not online, the workflow will not run.

2023-12-18 16:06:19 +00:00
yp05327 and GitHub
3849fd2ac2
Remove unnecessary forgot password link in delete user section ( #28355 )
...
Before:
<img width="458" alt="image"
src="https://github.com/go-gitea/gitea/assets/18380374/92815496-38cc-4bb9-9182-1509a72b07f6 ">
After:

2023-12-15 14:13:55 +00:00
yp05327 and GitHub
0abb5633e3
Fix commit status in repo list ( #28412 )
...
Before:


`TestOrg/testactions` does have commit status, but won't display in
`All`
After:

Same to #26179 .
2023-12-11 06:19:57 +00:00
yp05327 and GitHub
f4561c44b1
Fix incorrect run order of action jobs ( #28367 )
...
When we pick up a job, all waiting jobs should firstly be ordered by
update time,
otherwise when there's a running job, if I rerun an older job, the older
job will run first, as it's id is smaller.
2023-12-06 22:10:05 +00:00
yp05327 and GitHub
ec90ee61ef
Fix object does not exist error when checking citation file ( #28314 )
...
Fix #28264
`DataAsync()` will be called twice.
Caused by https://github.com/go-gitea/gitea/pull/27958 .
I'm sorry, I didn't completely remove all unnecessary codes.
2023-12-06 16:51:01 +08:00
yp05327 and GitHub
004ab3758c
Fix wrong link in protect_branch_name_pattern_desc ( #28313 )
...
The current href will link to
`https://domain/owner/repo/settings/branches/github.com/gobwas/glob `
2023-12-01 19:45:04 +08:00
yp05327 and GitHub
1ae33e0bad
Fix links in docs ( #28302 )
...
Close #28287
## How to test it in local
convert Makefile L34 into:
```
cd .tmp/upstream-docs && git clean -f && git reset --hard && git fetch origin pull/28302/head:pr28302 && git switch pr28302
```
2023-12-01 19:42:42 +08:00
yp05327 and GitHub
8572e71a7f
Fix issue will be detected as pull request when checking First-time contributor ( #28237 )
...
Fix #28224
2023-11-27 10:46:55 +00:00
yp05327 and GitHub
0a0e8200ec
Fix links in docs ( #28234 )
...
Follow #28191
Changes:
- `(doc/administration/config-cheat-sheet.md` is incorrect:

- remove `../../`
2023-11-27 00:34:40 -05:00
yp05327 and GitHub
ad9aac3975
Fix some incorrect links in docs ( #28191 )
...
https://gitea.com/gitea/gitea-docusaurus/actions/runs/661/jobs/0#jobstep-9-39
I noticed that there are many warning logs in building docs.
It is causing 404 in docs.gitea.com now, so we need to fix it.
And there are also some other problems in v1.19 which can not be done in
this PR.
ps: Are there any good methods to test this in local?
2023-11-24 13:57:09 +00:00
yp05327 and GitHub
4d0eba8e0a
Fix swagger title ( #28164 )
...

Don't know why there's a `.` behind. 🤔
2023-11-22 08:09:19 +00:00
yp05327 and GitHub
2d9b91aa24
Fix the description about the default setting for action in quick start document ( #28160 )
...
Since #27054 , Actions are enabled by default. so we should also edit the
document. 😃
ps: I think this should be backport to 1.21.0.
2023-11-22 02:11:22 +00:00
yp05327 and GitHub
d1acd7e9de
Do not display search box when there's no packages yet ( #28146 )
...
Before:

After:



2023-11-21 20:03:19 +00:00
yp05327 and GitHub
a6a674e26a
Add guide page to actions when there's no workflows ( #28145 )
...
Before:

After:

2023-11-21 08:27:33 +00:00
yp05327 and GitHub
976a9926d7
Fix no ActionTaskOutput table waring ( #28149 )
...
Reproduce:
- Create a new Gitea instance
- Register a runner
- Create a repo and add a workflow
- Check the log, you will see warnings:

It comes from:

The reason is that we forgot registering `ActionTaskOutput` model.
So `action_table_output` table will be missing in your db.
2023-11-21 08:02:51 +00:00
yp05327 and GitHub
eae555ff23
Remove autofocus in search box ( #28033 )
...
Mentioned here:
https://github.com/go-gitea/gitea/pull/27982#issuecomment-1807923026
2023-11-20 08:57:46 +00:00
yp05327 and GitHub
e88377470a
Fix project counter in organization/individual profile ( #28068 )
...
Fix #28052
Before:


After:


2023-11-18 11:02:42 +08:00
yp05327 and GitHub
83c30634a4
Add word break to the repo list in admin settings page ( #28034 )
...
Before:

After:

2023-11-14 04:58:01 +00:00
089ac06969
Improve profile for Organizations ( #27982 )
...
Fixes some problems in #27955 :
- autofocus of the search box
before:
if access the home page will jump to the search box

after:
will not jump to the search box

- incorrect display of overview tab
before:

after:

- improve the permission check to the private profile repo
In #26295 , we simply added access control to the private profile.
But if user have access to the private profile repo , we should also
display the profile.
- add a button which can jump to the repo list?
I agree @wxiaoguang 's opinion here:
https://github.com/go-gitea/gitea/pull/27955#issuecomment-1803178239
But it seems that this feature is sponsored.
So can we add a button which can quickly jump to the repo list or just
move profile to the `overview` page?
---------
Co-authored-by: silverwind <me@silverwind.io >
2023-11-13 15:33:22 +01:00
yp05327 and GitHub
f48a863b99
Fix citation error when the file size is larger than 1024 bytes ( #27958 )
...
Mentioned in:
https://github.com/go-gitea/gitea/pull/27931#issuecomment-1798016960
Same to #25131 , so use the same method to fix this problem.
2023-11-08 06:40:12 +00:00
4a0103fa29
Add word-break to repo description in home page ( #27924 )
...
In #25315 , @denyskon fixed UI on mobile view.
But for the repo description, on desktop view there's no word-break.
So maybe we can just add `gt-word-break` to fix it on both mobile view
and desktop view.
Before:
desktop view:

mobile view:

After:
desktop view:

mobile view(almost same?)

---------
Co-authored-by: silverwind <me@silverwind.io >
2023-11-07 23:52:08 +00:00
yp05327 and GitHub
3a924fdc83
Add word break to release title ( #27942 )
...
Before:

After:

2023-11-07 10:53:04 +00:00
yp05327 and GitHub
7a2ff6c162
Fix edit topic UI ( #27925 )
...
Before:
desktop view:

mobile view:

after click `Save` btn:


refresh the page, you will see that `gt-m-0` is missing after save
topic:

After:
desktop view:

mobile view:

after click `Save` btn:

2023-11-06 09:23:50 +00:00
dcb648ee71
Add Hide/Show all checks button to commit status check ( #26284 )
...
Step one for a GitHub like commit status check ui:



Step two:


The design now will list all commit status checks which takes too much
space.
This is a pre-improve for #26247
---------
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2023-11-02 14:49:02 +00:00
yp05327 and GitHub
0e021cd33e
Fix display member unit in the menu bar if there are no hidden members in public org ( #27795 )
...
Follow #26363 .
I missed that org templates also using
`templates/user/overview/header.tmpl`.
You can confirm this problem in https://gitea.com/gitea/-/projects with
anonymous access.
Before: (no login)

After:

2023-10-30 09:11:16 +00:00
yp05327 and GitHub
f39256f035
Add word-break to organization name and description ( #26624 )
...
Fix #24318
Before:



After:




2023-10-25 10:40:39 +00:00
8abc1aae4a
Improve the list header in milestone page ( #27302 )
...
The ui of list header in milestone page is not same as issue and pr list
page.
And they are using different template codes which can be merged into
one.
Before:




After:


---------
Co-authored-by: puni9869 <80308335+puni9869@users.noreply.github.com >
2023-10-18 00:03:42 +00:00
yp05327 and GitHub
5a7ab86b98
Avoid run change title process when the title is same ( #27467 )
...
If user only changed the target branch or just did nothing and clicked
the `Save` button, you will see the change log as following:

This makes no sense, so we should check whether the title is surely
changed before run the `ChangeTitle`.
2023-10-06 18:00:53 +00:00
yp05327 and GitHub
393193a3e0
Fix repo count in org action settings ( #27245 )
...
Only in org action settings, repo count is missing
Before:



In other setting page:

After:



2023-09-29 15:46:07 +00:00
3945c26722
Improve tree not found page ( #26570 )
...
Before:

After:

In Github:
https://github.com/yp05327/test/blob/main/test.drawio
Updated:
UI changed


---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2023-09-29 07:42:39 +00:00
yp05327 and GitHub
e5e1d842c0
Fix protected branch icon location ( #26576 )
2023-09-27 22:21:31 +00:00
5ef5a0ade6
Fix divider in subscription page ( #27298 )
...
the divider should always display in the subscription page.
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
2023-09-27 04:00:57 +00:00
yp05327 and GitHub
65d0b7c13a
Add missing public user visibility in user details page ( #27246 )
...
It seems that `Public` user visibility is missing in the template.
Before:

After:

2023-09-25 08:27:03 +02:00
yp05327 and GitHub
076eca8158
Fix incorrect default branch label while switching between branches ( #27053 )
...
Fix #27008
2023-09-14 03:54:25 +00:00
yp05327 and GitHub
0850be6750
Fix the display of org level badges ( #26504 )
...
Follow #24654 #22705 #24232
In some pages we still have missing badges, for example:



2023-09-06 14:38:14 +08:00
yp05327 and GitHub
915cabdb14
Fix context filter has no effect in dashboard ( #26695 )
...
Fix #26686
2023-08-29 12:46:52 +00:00
yp05327 and GitHub
008f5d8cf1
Add default label in branch select list ( #26697 )
2023-08-29 12:15:19 +00:00
60ca3d04a4
Add fix incorrect can_create_org_repo for org owner team ( #26683 )
...
Related to: #8312 #26491
In migration v109, we only added a new column `CanCreateOrgRepo` in Team
table, but not initial the value of it.
This may cause bug like #26491 .
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2023-08-29 01:11:23 +00:00
d2e4039def
Add member, collaborator, contributor, and first-time contributor roles and tooltips ( #26658 )
...
GitHub like role descriptor



---------
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2023-08-24 13:06:17 +08:00
yp05327 and GitHub
7e30986667
Remove ref name in PR commits page ( #25876 )
...
The branch name display here is based on the repo's default branch which
is not correct.

For example, if I changed the default branch, the branch name here will
also be changed:


you can confirm this in :
https://try.gitea.io/yp05327/testrepo/pulls/1/commits
I think we do not need to display branch name here, as we already have
the branch info above.

2023-08-24 01:31:54 +00:00
yp05327 and GitHub
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 and GitHub
c052f76266
Fix organization list in dashboard ( #26650 )
...
Fix ui problem comes from #26326
Before:

After:

2023-08-22 08:49:00 +00:00
yp05327 and GitHub
bd8a253220
Improve show role ( #26621 )
...
Add a general show role template.
2023-08-22 05:30:33 +00:00