Earl Warren
8b45a4d366
Use appSubUrl for OAuth2 callback URL tip ( #28266 )
...
- When crafting the OAuth2 callbackURL take into account `appSubUrl`,
which is quite safe given that its strictly formatted.
- No integration testing as this is all done in Javascript.
- Resolves https://codeberg.org/forgejo/forgejo/issues/1795
(cherry picked from commit 27cb6b7956136f87aa78067d9adb5a4c4ce28a24)
Co-authored-by: Gusted <postmaster@gusted.xyz>
1 year ago
Earl Warren
cb8298b717
Ignore temporary files for directory size ( #28265 )
...
Co-authored-by: Gusted <postmaster@gusted.xyz>
1 year ago
John Olheiser
05b8023667
Check for v prefix on tags for release clean name ( #28257 )
1 year ago
Denys Konovalov
4d7c063f9e
Use full width for project boards ( #28225 )
...
Inspired by #28182
1 year ago
wxiaoguang
a6aed0fee6
Increase "version" when update the setting value to a same value as before ( #28243 )
...
Setting the same value should not trigger DuplicateKey error, and the
"version" should be increased
1 year ago
yp05327
8572e71a7f
Fix issue will be detected as pull request when checking `First-time contributor` ( #28237 )
...
Fix #28224
1 year ago
JakobDev
709a376c51
Fix link to `Code` tab on wiki commits ( #28041 )
...
Fixes https://codeberg.org/forgejo/forgejo/issues/1759
If you are bowing another branch than the default branch and click n the
Code tab, it will take you to the root of the branch. The `BranchName`
variable is also set when viewing a Wiki commit, so we also need to
check if we are on a Wiki.
1 year ago
yp05327
0a0e8200ec
Fix links in docs ( #28234 )
...
Follow #28191
Changes:
- `(doc/administration/config-cheat-sheet.md` is incorrect:
![image](https://github.com/go-gitea/gitea/assets/18380374/1c417dd7-61a0-49ba-8d50-871fd4c9bf20 )
- remove `../../`
1 year ago
Lunny Xiao
763938e889
Fix actions when tagging ( #28061 )
...
close https://github.com/go-gitea/gitea/issues/28053
---------
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
1 year ago
Lunny Xiao
882e502327
Fix comment permissions ( #28213 )
...
This PR will fix some missed checks for private repositories' data on
web routes and API routes.
1 year ago
CodeShakingSheep
80217cacfc
Docs: Replace deprecated IS_TLS_ENABLED mailer setting in email setup ( #28205 )
...
In the [docs for email
setup](https://docs.gitea.com/administration/email-setup )
`mailer.IS_TLS_ENABLED` is mentioned which was replaced by
`mailer.PROTOCOL` in release 1.18.0 according to
https://blog.gitea.com/release-of-1.18.0/ . This change wasn't reflected
in the docs for email setup. I just replaced the deprecated mailer
setting.
1 year ago
pitpalme
eacce14546
Fix delete-orphaned-repos ( #28200 )
...
gitea doctor failed at checking and fixing 'delete-orphaned-repos',
because table name 'user' needs quoting to be correctly recognized by at
least PostgreSQL.
fixes #28199
1 year ago
wxiaoguang
2ac2796a4c
Refactor graceful manager to use shared code ( #28073 )
...
Make "windows" and "unix" share as much code as possible. No logic
change.
1 year ago
yp05327
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?
1 year ago
Nanguan Lin
6c7744370f
Remove workaround in disk-clean.yml ( #28195 )
...
According to https://github.com/jlumbroso/free-disk-space/issues/17 , the
issue has been fixed in the main branch.
1 year ago
Lunny Xiao
df1e7d0067
Use db.Find instead of writing methods for every object ( #28084 )
...
For those simple objects, it's unnecessary to write the find and count
methods again and again.
1 year ago
NintenHero
d24a8223ce
Edit Discord Badge ( #28188 )
...
Use white Discord icon. Label the badge as "Discord". Use the official
Discord logo's color value of 5865F2.
1 year ago
Earl Warren
1075ff74b5
Use restricted sanitizer for repository description ( #28141 )
...
- Currently the repository description uses the same sanitizer as a
normal markdown document. This means that element such as heading and
images are allowed and can be abused.
- Create a minimal restricted sanitizer for the repository description,
which only allows what the postprocessor currently allows, which are
links and emojis.
- Added unit testing.
- Resolves https://codeberg.org/forgejo/forgejo/issues/1202
- Resolves https://codeberg.org/Codeberg/Community/issues/1122
(cherry picked from commit 631c87cc2347f0036a75dcd21e24429bbca28207)
Co-authored-by: Gusted <postmaster@gusted.xyz>
1 year ago
Nanguan Lin
7d1933717d
Use full width for PR comparison ( #28182 )
...
Follow-up #22844
close #28142
Before
![ksnip_20231123-183906](https://github.com/go-gitea/gitea/assets/70063547/78428a22-b0a0-45f9-9458-7fd5ec73aa29 )
After
![full](https://github.com/go-gitea/gitea/assets/70063547/047242cf-9d6c-4b3a-9f92-54102740c27e )
Co-authored-by: Giteabot <teabot@gitea.io>
1 year ago
wxiaoguang
7c0ab8b974
Make CORS work for oauth2 handlers ( #28184 )
...
Fix #25473
Although there was `m.Post("/login/oauth/access_token", CorsHandler()...`,
it never really worked, because it still lacks the "OPTIONS" handler.
1 year ago
Nanguan Lin
778d604346
Fix missing buttons ( #28179 )
...
fix #28173
regression #25948
That PR is supposed to only change the style but somehow delete a code
snippet. See the
diff(https://github.com/go-gitea/gitea/pull/25948/files#diff-7c36d66fe058f4ff9f2beaac73cf710dca45b350d0dd98daf806828a4745fe62L125-L129 )
for details.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 year ago
Nanguan Lin
37ed92d6fd
Revert "Fix EOL handling in web editor" ( #28101 )
...
Reverts go-gitea/gitea#27141
close #28097
1 year ago
yp05327
4d0eba8e0a
Fix swagger title ( #28164 )
...
![image](https://github.com/go-gitea/gitea/assets/18380374/380859b2-a643-42fd-b53e-78c93c05c826 )
Don't know why there's a `.` behind. 🤔
1 year ago
yp05327
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.
1 year ago
yp05327
d1acd7e9de
Do not display search box when there's no packages yet ( #28146 )
...
Before:
![image](https://github.com/go-gitea/gitea/assets/18380374/3012f544-7ff5-4ccb-ac80-ce24d50abe97 )
After:
![image](https://github.com/go-gitea/gitea/assets/18380374/4084312a-9ac0-4103-8c93-ea178ae24493 )
![image](https://github.com/go-gitea/gitea/assets/18380374/3c47d175-0735-476d-8979-da2bc0a4fc95 )
![image](https://github.com/go-gitea/gitea/assets/18380374/033c6a81-d1f7-4426-8063-5793d0b47462 )
1 year ago
yp05327
a6a674e26a
Add guide page to actions when there's no workflows ( #28145 )
...
Before:
![image](https://github.com/go-gitea/gitea/assets/18380374/599d40c1-9b8d-4189-9286-c9c36fb780dd )
After:
![image](https://github.com/go-gitea/gitea/assets/18380374/848a73d1-aaec-478f-93a7-adcc7ee18907 )
1 year ago
yp05327
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:
![image](https://github.com/go-gitea/gitea/assets/18380374/5f1278e0-114b-48bc-8113-8ba1404d9975 )
It comes from:
![image](https://github.com/go-gitea/gitea/assets/18380374/c2807831-e137-4229-9536-87f6114c8a5b )
The reason is that we forgot registering `ActionTaskOutput` model.
So `action_table_output` table will be missing in your db.
1 year ago
Lunny Xiao
0c0d17f17e
Fix empty action run title ( #28113 )
...
Fix #27901
1 year ago
wxiaoguang
247927a9b5
Use "is-loading" to avoid duplicate form submit for code comment ( #28143 )
...
When the form is going to be submitted, add the "is-loading" class to
show an indicator and avoid user UI events.
When the request finishes (success / error), remove the "is-loading"
class to make user can interact the UI.
1 year ago
Jason Song
0c72256ab4
Fix typo in `packages.cleanup.success` ( #28133 )
...
Follow
https://github.com/go-gitea/gitea/pull/28129#discussion_r1398971596
1 year ago
JakobDev
08552f0076
Add edit option for README.md ( #28071 )
...
Fix #28059
![grafik](https://github.com/go-gitea/gitea/assets/15185051/07adc216-954e-486b-bfda-df3bc15f2089 )
1 year ago
yp05327
eae555ff23
Remove autofocus in search box ( #28033 )
...
Mentioned here:
https://github.com/go-gitea/gitea/pull/27982#issuecomment-1807923026
1 year ago
Jason Song
0e1b381ff6
Add missing `packages.cleanup.success` ( #28129 )
...
Used at
a3348bfc4d/routers/web/admin/packages.go (L111)
<img width="1325" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/60edc1fa-eea8-4d74-a7ec-96bd5461a53f ">
1 year ago
John Olheiser
30b46fb6fa
Update docs for docusaurus v3 ( #28125 )
...
Updates the docs for usage with docusaurus v3
Signed-off-by: jolheiser <john.olheiser@gmail.com>
1 year ago
GiteaBot
a3348bfc4d
[skip ci] Updated translations via Crowdin
1 year ago
silverwind
06dcb251f3
Update JS and PY dependencies ( #28120 )
...
- Update all JS and PY dependencies minus `@mcaptcha/vanilla-glue`
- Adapt to eslint rule rename
- Regenerate all SVGs because of [new
optimizations](https://github.com/svg/svgo/releases/tag/v3.0.4 ) from
svgo.
- Tested mentions, mermaid, vue, api docs
1 year ago
KazzmanK
2de05f9432
Decrease issue font size in project template ( #28054 )
...
I propose to decrease font size. 18 is too big and looks ugly, on
windows. 14 is on par with other elements and save a bit of space.
![image](https://github.com/go-gitea/gitea/assets/13328513/bc41f65d-8f48-4fd9-8e3b-d7a73967b0aa )
![image](https://github.com/go-gitea/gitea/assets/13328513/70e78919-9b9b-4f57-a491-d746ea59c048 )
Co-authored-by: Nikolay Kobzarev <n.kobzarev@aeronavigator.ru>
1 year ago
delvh
0bf021d7c6
Require clear descriptions both for feature and breaking PRs prior to the merge ( #28112 )
...
When writing the release blog, it is really annoying and time-consuming
to re-discover and write down how a feature behaves and capture a
screenshot of it, for every single feature merged since the last
release.
This should not be the responsibility of maintainers, but rather of the
person implementing a feature in the first place.
They know best how to use the feature and how to gather screenshots for
it.
Similarly for breaking changes and their effects.
As such, let's require everything to be up-to-date and easily
understandable before merging features or breaking changes.
1 year ago
Denys Konovalov
816e46ee7c
add skip ci functionality ( #28075 )
...
Adds the possibility to skip workflow execution if the commit message
contains a string like [skip ci] or similar.
The default strings are the same as on GitHub, users can also set custom
ones in app.ini
Reference:
https://docs.github.com/en/actions/managing-workflow-runs/skipping-workflow-runs
Close #28020
1 year ago
yp05327
e88377470a
Fix project counter in organization/individual profile ( #28068 )
...
Fix #28052
Before:
![image](https://github.com/go-gitea/gitea/assets/18380374/5f299983-4b38-4d68-ac0e-4be3c62c0558 )
![image](https://github.com/go-gitea/gitea/assets/18380374/f0e12afd-483b-4882-80e9-0261beb3fe0c )
After:
![image](https://github.com/go-gitea/gitea/assets/18380374/47cccb7b-bb35-4a7d-9c5b-83133be0323a )
![image](https://github.com/go-gitea/gitea/assets/18380374/77825c0c-4bf2-4762-83a2-1a5a173cc22d )
1 year ago
sebastian-sauer
e31c6cfe6e
Fix Show/hide filetree button on small displays ( #27881 )
...
the gt-df's display:flex !important did override the display:none on small displays
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 year ago
Nanguan Lin
f63b116697
Change default size of attachments and repo files ( #28100 )
...
https://github.com/go-gitea/gitea/pull/27946 forgets to change them in
code. Sorry about that.
1 year ago
KN4CK3R
58f5fa6536
Fix Matrix and MSTeams nil dereference ( #28089 )
...
Fixes #28088
Fixes #28094
Added missing tests.
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 year ago
wxiaoguang
17d246cdcc
Fix incorrect pgsql conn builder behavior ( #28085 )
...
Fix #28083 and fix the tests
1 year ago
wxiaoguang
fce1d5d7dc
Fix system config cache expiration timing ( #28072 )
...
To avoid unnecessary database access, the `cacheTime` should always be
set if the revision has been checked.
Fix #28057
1 year ago
sebastian-sauer
49dddd87b1
Improve PR diff view on mobile ( #27883 )
...
1. Show diff stats only on large screens
these are already shown in tabs, so no need for this duplicate
information on small screens
![image](https://github.com/go-gitea/gitea/assets/1135157/1287839d-7490-42eb-a17e-d526dc0bfd9e )
![image](https://github.com/go-gitea/gitea/assets/1135157/e9dcd89d-ed4d-4945-a7aa-4e6fc6d9c3a2 )
2. Hide viewed files information on small screens
Github does the same and this gives us more free space on small screens
![image](https://github.com/go-gitea/gitea/assets/1135157/e90b042f-fffb-4f79-a5ae-cd480c9d8334 )
![image](https://github.com/go-gitea/gitea/assets/1135157/d2480ffe-58f2-4694-8ae1-a2ab0aae14d4 )
3. Review bar now doesn't wrap so we don't need the 77px even on very
small screens
(the sticky headers are still working)
![image](https://github.com/go-gitea/gitea/assets/1135157/42b19b2b-73ef-4b88-8680-c555879b363b )
1 year ago
wxiaoguang
79394b340d
Improve graceful manager code/comment ( #28063 )
...
The graceful manager has some bugs (#27643 , #28062 ). This is a
preparation for further fixes.
1 year ago
Lunny Xiao
f65977df3a
Revert "packages: Calculate package size quota using package creator ID instead of owner ID ( #28007 )" ( #28049 )
...
This reverts commit #28007 60522fc96f
.
1 year ago
6543
5ab3782f11
Restricted users only see repos in orgs which their team was assigned to ( #28025 )
...
---
*Sponsored by Kithara Software GmbH*
1 year ago
6543
d4d05f9f1b
Fix release link in changelog for v1.21.0
1 year ago