ce085b26fc
Improve commit record's ui in comment list ( #26619 )
...
Before:


After:


---------
Co-authored-by: silverwind <me@silverwind.io >
2024-03-14 19:01:16 +00:00
2da13675c0
Fix incorrect menu/link on webhook edit page ( #29709 )
...
Fix #29699
---------
Co-authored-by: silverwind <me@silverwind.io >
2024-03-14 01:37:15 +00:00
8fc1a8f0eb
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 >
2024-03-11 05:00:50 +00:00
b253463e95
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 >
2024-03-08 16:10:01 +01:00
yp05327 and GitHub
9dc8a6336e
Fix incorrect rendering csv file when file size is larger than UI.CSV.MaxFileSize ( #29653 )
...
Fix #29506
2024-03-08 08:44:50 +00:00
yp05327 and GitHub
c6cc392b55
Fix wrong header of org project view page ( #29626 )
...
Follow #29248
The project view page still using `user/overview/header.tmpl`
Before:

After:

2024-03-06 10:23:27 +00:00
a2b0fb1a64
Fix wrong line number in code search result ( #29260 )
...
Fix #29136
Before: The result is a table and all line numbers are all in one row.
After: Use a separate table column for the line numbers.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-03-06 07:24:43 +00:00
yp05327 and GitHub
3f3335ae51
Add empty repo check in DetectAndHandleSchedules ( #29606 )
...

2024-03-05 14:47:07 +00:00
yp05327 and GitHub
9616dbec33
Fix workflow trigger event IssueChangeXXX bug ( #29559 )
...
Bugs from #29308
Follow #29467
partly fix #29558
2024-03-03 18:37:41 +00:00
yp05327 and GitHub
403766cd81
Ignore empty repo for CreateRepository in action notifier ( #29416 )
...
Fix #29415
2024-02-26 09:38:15 +00:00
f8c1efe944
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 >
2024-02-26 08:10:14 +00:00
yp05327 and GitHub
1a6e1cbada
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
2024-02-18 10:58:46 +00:00
yp05327 and GitHub
68227996a7
Fix broken following organization ( #29005 )
...
- following organization is broken from #28908
- add login check for the follow button in organization profile page
2024-02-17 13:13:37 +08:00
yp05327 and GitHub
8e2831611c
Fix gitea-action user avatar broken on edited menu ( #29190 )
...
Fix #29178
2024-02-16 09:50:20 +00:00
yp05327 and GitHub
78c48d8fdd
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. 🤔
2024-02-15 11:30:11 +00: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
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
yp05327 and GitHub
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
yp05327 and GitHub
9665622378
Differentiate better between user settings and admin settings ( #26538 )
...
User settings page and admin settings page are too similar. I thinlk
this will be better of using `User Settings` and `Admin Settings` as the
navbar's title.
Before:


After:


2023-08-16 10:12:03 +00:00
yp05327 and GitHub
82f6e3d845
Improve deadline icon location in milestone list page ( #26532 )
2023-08-16 16:22:25 +08:00
yp05327 and GitHub
bc930f332f
Fix typo of RunerOwnerID ( #26508 )
2023-08-15 23:10:40 +00:00
8703b6c954
Improve clickable area in repo action view page ( #26115 )
...
Before:

After:

In current design, the clickable area is too small, and it is hard to
find the correct clickable area as the area with background color (div
with class name `job-brief-item selected`) is bigger than it.
---------
Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-16 00:44:43 +02:00
7f8028e5a1
Fix display problems of members and teams unit ( #26363 )
...
Fix:
- display member count and team count in the menu bar

- Also display member unit in the menu bar if there are no hidden
members in public org

- hidden member board when there's no seeable members.
In this org, we only have hidden members:

We will hidden the member board when doer is not the member of this org

Before:

If you click the number in the members board, you will access the
members page, which is not expected.

---------
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-15 16:00:35 +02:00
yp05327 and GitHub
9fc68b680f
Fix 404 error when remove self from an organization ( #26362 )
...
Same to #24322
Not only `leave` action but also `remove` action should check whether
user still belongs to the org.
2023-08-12 07:02:22 +00:00
yp05327 and GitHub
918d0f033d
Fix the display of orgs listed in user profile ( #26424 )
...
Before:

After:

In #26214 , we changed each row's display into `flex` which caused this
problem.


In old version:

Maybe we can add paddings here?

In old version;

2023-08-11 03:28:36 +08:00
e5011a0e6d
Remove commit load branches and tags in wiki repo ( #26304 )
...
If click `load branches and tags`, you will get 500 error from backend,
as it is a wiki repo.


Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-04 15:49:43 +00:00
945a0cb96b
Add highlight to selected repos in milestone dashboard ( #26300 )
...
Before:

After:

Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-04 15:16:56 +00:00
30eae5a40c
Fix incorrect color of selected assignees when create issue ( #26324 )
...
Before:

After:

Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-04 14:14:30 +00:00
yp05327 and GitHub
6832a8eb06
Add locale for deleted head branch ( #26296 )
...
As title.
It will be displayed in:

2023-08-03 22:07:15 +00:00
d74c2228e3
Remove nonsense <a> for commit status check icon ( #26287 )
...
We are using `<a>` for commit status check icon with no link. So it is
clickable but this is no sense.
I think we can convert this to `div`.

Co-authored-by: Giteabot <teabot@gitea.io >
2023-08-03 19:58:41 +02:00
yp05327 and GitHub
36732005b4
Disable download action logs button when there's no logs ( #26114 )
...
If there's no logs, you can also click the download button, then you
will get `job is not started` page

https://gitea.com/yp05327/testrepo/actions/runs/38
After:
If there's no steps displayed, the download button will be disabled.

2023-07-26 20:51:26 +02:00
yp05327 and GitHub
1c6c38fa6e
Improve display of Labels/Projects/Assignees sort options ( #25886 )
...
Labels:
Before: (no highlights)

After:


Projects:
Before: (no highlights)

After:


Assignee:
Before: (no highlights)

After:


2023-07-26 13:00:50 +00:00
yp05327 and GitHub
f9e5d980bc
Fix wrong branch name in rename branch modal ( #26146 )
...
Before:

After:

2023-07-26 11:26:17 +00:00
yp05327 and GitHub
74ca4377ff
Drop the correct deleted branch table ( #26028 )
...
There's a typo in #22743
The correct table name is `deleted_branch` not `deleted_branches`
2023-07-26 08:41:33 +08:00
7a687caca4
Fix wrong commit status in web ui ( #26121 )
...
Before:

After:

There's a bug in the recent logic, `CalcCommitStatus` will always return
the first item of `statuses` or error status, because `state` is defined
with default value which should be `CommitStatusSuccess`
Then
``` golang
if status.State.NoBetterThan(state) {
```
this `if` will always return false unless `status.State =
CommitStatusError` which makes no sense.
So `lastStatus` will always be `nil` or error status.
Then we will always return the first item of `statuses` here or only
return error status, and this is why in the first picture the commit
status is `Success` but not `Failure`.
https://github.com/go-gitea/gitea/blob/af1ffbcd63569df8646b20c524378f25710f129e/models/git/commit_status.go#L204-L211
Co-authored-by: Giteabot <teabot@gitea.io >
2023-07-25 12:46:02 +00:00
yp05327 and GitHub
d817b199ca
Fix wrong workflow status when rerun a job in an already finished workflow ( #26119 )
...
Before:

After:

After workflow finished, if you rerun a single job, the workflow status
will become to `Running` which is not correct as no jobs are running in
this workflow.
2023-07-25 09:13:36 +00:00
yp05327 and GitHub
d57e55cd47
Fix escape problems in the branch selector ( #25875 )
...
Fix #25865
2023-07-21 06:18:40 +00:00
yp05327 and GitHub
3add4ca216
Fix incorrect milestone count when provide a keyword ( #25880 )
...
You can confirm this issue in:
https://try.gitea.io/yp05327/testrepo/milestones?state=open&q=a
There's no milestone, but the count is 1.

2023-07-16 03:43:51 +00:00
yp05327 and GitHub
ec35af470c
Avoid opening/closing PRs which are already merged ( #25883 )
...
We can select PRs to open/close them by one click, but we forgot to
check whether it is merged.
You can get an opening merged PR:

You can confirm this in:
https://try.gitea.io/yp05327/testrepo/pulls/5
2023-07-15 22:10:49 +00:00
dc679fc9fa
Fix incorrect release count ( #25879 )
...
Release count is not correct:
https://try.gitea.io/yp05327/testrepo/tags

https://try.gitea.io/yp05327/testrepo/releases

https://try.gitea.io/yp05327/testrepo/releases/tag/testtag

We already have correct release count, no need to calculate it again.
https://github.com/go-gitea/gitea/blob/c5e187c389b35b9e080a3187b93a775a3c81e585/modules/context/repo.go#L547
Co-authored-by: Giteabot <teabot@gitea.io >
2023-07-14 08:47:17 +00:00
yp05327 and GitHub
1c8073b483
Add Github related extensions in devcontainer ( #25800 )
2023-07-14 15:58:02 +08:00
yp05327 and GitHub
52f46919dc
Add error info if no user can fork the repo ( #25820 )
...
Before: (Owner list is empty)

After: (Disable the button and show the error info)

2023-07-14 15:56:20 +08:00
yp05327 and GitHub
61c9268c56
Fix wrong usage of PathEscapeSegments in branch list page ( #25864 )
...
Before:

emmm, don't know how to write a good title to describe this issue.
If you have a good idea, I can change the title.
The fix code is copied from L122. Not sure it is right or not.
@lunny
Maybe `DefaultBranchBranch` is also typo?
Two `Branch` in variable name .
2023-07-14 06:08:38 +00:00
8b89563bf1
Fix empty project displayed in issue sidebar ( #25802 )
...
Before:

After:

This issue comes from the change in #25468 .
`LoadProject` will always return at least one record, so we use
`ProjectID` to check whether an issue is linked to a project in the old
code.
As other `issue.LoadXXX` functions, we need to check the return value
from `xorm.Session.Get`.
In recent unit tests, we only test `issueList.LoadAttributes()` but
don't test `issue.LoadAttributes()`. So I added a new test for
`issue.LoadAttributes()` in this PR.
---------
Co-authored-by: Denys Konovalov <privat@denyskon.de >
2023-07-12 16:10:35 +02:00
yp05327 and GitHub
44572e9243
Fix incorrect oldest sort in project list ( #25806 )
...
sort type `oldest` should be `Asc`.
Added a test for this.
2023-07-11 20:47:50 +02:00
yp05327 and GitHub
a95a7bcdf3
Add git-lfs support to devcontainer ( #25385 )
2023-06-20 19:28:46 +00:00