Michael Kriese and Earl Warren
1761dae2db
test: add logger settings tests ( #8729 )
...
fully cover existing behavior
- ref #8667
I used Github Copilot for some code autocompletions.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8729
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
Co-committed-by: Michael Kriese <michael.kriese@visualon.de >
2025-07-30 15:40:12 +02:00
Earl Warren and Earl Warren
93b13e4d52
chore(ci): send mail when daily integration tests fail ( #8727 )
...
## Testing
- 24h after this is merged
- push a commit to https://codeberg.org/forgejo-integration/forgejo/src/branch/forgejo with an error
- cancel all workflows except for https://codeberg.org/forgejo-integration/forgejo/actions?workflow=testing-integration.yml&actor=0&status=0
- verify a notification was sent to forgejo-integration-actions@forgejo.org about the error
- update the user research discussion at https://codeberg.org/forgejo/user-research/issues/64
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8727
Reviewed-by: Michael Kriese <michael.kriese@gmx.de >
Co-authored-by: Earl Warren <contact@earl-warren.org >
Co-committed-by: Earl Warren <contact@earl-warren.org >
2025-07-30 13:12:17 +02:00
Renovate Bot and Earl Warren
d3ca92df79
Update dependency forgejo/release-notes-assistant to v1.3.6 (forgejo) ( #8726 )
...
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [forgejo/release-notes-assistant](https://code.forgejo.org/forgejo/release-notes-assistant ) | patch | `v1.3.3` -> `v1.3.6` |
| [forgejo/release-notes-assistant](https://code.forgejo.org/forgejo/release-notes-assistant ) | patch | `v1.3.5` -> `v1.3.6` |
---
### Release Notes
<details>
<summary>forgejo/release-notes-assistant (forgejo/release-notes-assistant)</summary>
### [`v1.3.6`](https://code.forgejo.org/forgejo/release-notes-assistant/releases/tag/v1.3.6 )
[Compare Source](https://code.forgejo.org/forgejo/release-notes-assistant/compare/v1.3.5...v1.3.6 )
<!--start release-notes-assistant-->
<!--URL:https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant-- >
- bug fixes
- [PR](https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant/pulls/100 ): <!--number 100 --><!--line 0 --><!--description Zml4OiBjb252ZXJ0IEVPTCBcclxuIHRvIFxuIHdoZW4gZ2V0dGluZyBhIHNpbmdsZSBwdWxsIHJlcXVlc3Q=-->fix: convert EOL \r\n to \n when getting a single pull request<!--description-->
- other
- [PR](https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant/pulls/96 ): <!--number 96 --><!--line 0 --><!--description VXBkYXRlIGh0dHBzOi8vZGF0YS5mb3JnZWpvLm9yZy9hY3Rpb25zL2Zvcmdlam8tcmVsZWFzZSBhY3Rpb24gdG8gdjIuNy4w-->Update https://data.forgejo.org/actions/forgejo-release action to v2.7.0<!--description-->
<!--end release-notes-assistant-->
### [`v1.3.5`](https://code.forgejo.org/forgejo/release-notes-assistant/releases/tag/v1.3.5 )
[Compare Source](https://code.forgejo.org/forgejo/release-notes-assistant/compare/v1.3.4...v1.3.5 )
<!--start release-notes-assistant-->
<!--URL:https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant-- >
- bug fixes
- [PR](https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant/pulls/98 ): <!--number 98 --><!--line 0 --><!--description Zml4OiB0aGVyZSBjYW4gYmUgbW9yZSB0aGFuIG9uZSB0YWcgZGVjb3JhdGluZyBhIGNvbW1pdA==-->fix: there can be more than one tag decorating a commit<!--description-->
<!--end release-notes-assistant-->
### [`v1.3.4`](https://code.forgejo.org/forgejo/release-notes-assistant/releases/tag/v1.3.4 )
[Compare Source](https://code.forgejo.org/forgejo/release-notes-assistant/compare/v1.3.3...v1.3.4 )
<!--start release-notes-assistant-->
<!--URL:https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant-- >
- bug fixes
- [PR](https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant/pulls/97 ): <!--number 97 --><!--line 0 --><!--description Zml4OiAlKGRlY29yYXRlKSBpcyBub3Qgc3VwcG9ydGVkIGJ5IGdpdCAyLjM5-->fix: %(decorate) is not supported by git 2.39<!--description-->
<!--end release-notes-assistant-->
</details>
---
### Configuration
📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40My41IiwidXBkYXRlZEluVmVyIjoiNDEuNDMuNSIsInRhcmdldEJyYW5jaCI6ImZvcmdlam8iLCJsYWJlbHMiOlsiZGVwZW5kZW5jeS11cGdyYWRlIiwidGVzdC9ub3QtbmVlZGVkIl19-->
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8726
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
2025-07-29 23:43:21 +02:00
Earl Warren and Earl Warren
01f1f4ac75
chore: revert release-notes-assistant to v1.3.3 ( #8722 )
...
to reduce the number of requests to the API to obtain each pull request to the minimum.
tests are not needed because this version has been working fine over the past year
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8722
Reviewed-by: Michael Kriese <michael.kriese@gmx.de >
Co-authored-by: Earl Warren <contact@earl-warren.org >
Co-committed-by: Earl Warren <contact@earl-warren.org >
2025-07-29 10:18:58 +02:00
Gusted and Earl Warren
b2469c2a9c
fix: allow admins to always rename users ( #8715 )
...
Do not apply the rename restriction of non-local users if the doer is an admin (changes via the admin interface). This is a conscious choice and the admin knows better if they make such changes.
Regression of c59a057297
Resolves forgejo/forgejo#3657
<!--start release-notes-assistant-->
## Release notes
<!--URL:https://codeberg.org/forgejo/forgejo-- >
- Bug fixes
- [PR](https://codeberg.org/forgejo/forgejo/pulls/8715 ): <!--number 8715 --><!--line 0 --><!--description YWxsb3cgYWRtaW5zIHRvIGFsd2F5cyByZW5hbWUgdXNlcnM=-->allow admins to always rename users<!--description-->
<!--end release-notes-assistant-->
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8715
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Gusted <postmaster@gusted.xyz >
Co-committed-by: Gusted <postmaster@gusted.xyz >
2025-07-29 08:17:17 +02:00
Renovate Bot and Gusted
e2dbbbfbc6
Update dependency webpack to v5.101.0 (forgejo) ( #8717 )
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8717
Reviewed-by: Gusted <gusted@noreply.codeberg.org >
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
2025-07-29 03:54:22 +02:00
Gusted and Gusted
13e48ead92
feat: migrate action secrets to keying to store them more securely ( #8692 )
...
- Use the keying module, that was introduced in forgejo/forgejo#5041 , to store action secrets safely and securely in the database.
- Introduce a central function that sets the secret, `SetSecret` and let the caller do the update call. This is similar to how the twofactor (TOTP) models does it. Ref. https://codeberg.org/forgejo/forgejo/pulls/6074
- Add a relaxed migration, that is run inside a transaction. If it cannot decrypt a action secret, then it's deleted.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8692
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Gusted <postmaster@gusted.xyz >
Co-committed-by: Gusted <postmaster@gusted.xyz >
2025-07-29 01:03:36 +02:00
Gusted and Earl Warren
bc0d14119c
chore: add missing translation ( #8709 )
...
Ref: forgejo/forgejo#7940
> Unable to register cron task remove_resolved_reports Error: translation is missing for task "remove_resolved_reports", please add translation for "admin.dashboard.remove_resolved_reports"
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8709
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Gusted <postmaster@gusted.xyz >
Co-committed-by: Gusted <postmaster@gusted.xyz >
2025-07-28 17:27:12 +02:00
Michael Jerger and Earl Warren
388e4eb44b
fix: assorted ActivityPub code only refactors ( #8708 )
...
Fix parts of issue #8221 and part of PR #4767
Is linked to https://codeberg.org/forgejo/forgejo/pulls/8274
The commit 555f6e57ad fixes timeout forgejo/forgejo#8274 (Kommentar)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8708
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Michael Jerger <michael.jerger@meissa-gmbh.de >
Co-committed-by: Michael Jerger <michael.jerger@meissa-gmbh.de >
2025-07-28 15:17:29 +02:00
Antonin Delpeuch and 0ko
106707b40f
feat(ui): pretty-print commit counts and other numbers ( #8704 )
...
Currently on https://codeberg.org/forgejo/forgejo for instance, the commit count is shown as "23378 commits", instead of "23,378 commits".
This makes sure such numbers are printed with thousands separators if they are big enough.
Preview:
- https://codeberg.org/attachments/681add48-337b-42c0-a0ae-ac5ad4671b39
- https://codeberg.org/attachments/8b5d4e40-bdd6-4942-905f-6ddeac8509a9
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8704
Reviewed-by: Gusted <gusted@noreply.codeberg.org >
Reviewed-by: 0ko <0ko@noreply.codeberg.org >
Co-authored-by: Antonin Delpeuch <antonin@delpeuch.eu >
Co-committed-by: Antonin Delpeuch <antonin@delpeuch.eu >
2025-07-28 15:16:27 +02:00
Leni Kadali and Earl Warren
29eaab5ff4
feat: add configurable timeout for automatically removing resolved reports ( #7940 )
...
Supersedes [this PR](https://codeberg.org/lenikadali/forgejo/pulls/1 )
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7940
Reviewed-by: Otto <otto@codeberg.org >
Reviewed-by: Gusted <gusted@noreply.codeberg.org >
Co-authored-by: Leni Kadali <lenikadali@noreply.codeberg.org >
Co-committed-by: Leni Kadali <lenikadali@noreply.codeberg.org >
2025-07-28 14:52:13 +02:00
Earl Warren and Earl Warren
b2c8a1cfd3
Revert "fix: assorted ActivityPub code only refactors ( #8274 )" ( #8705 )
...
This reverts commit e271c24100 .
It was an experiment to verify that adding a delay to the test make a difference. But it does not so... reverting.
@jerger before engaging in a refactor, it is necessary to get to the bottom of this:
- Find the root cause of those failures
- Fix it in a minimal way
Refs https://codeberg.org/forgejo/forgejo/pulls/8274#issuecomment-5987215
---
- https://codeberg.org/forgejo/forgejo/actions/runs/92182/jobs/9
- https://codeberg.org/forgejo/forgejo/actions/runs/92182/jobs/10
```
--- FAIL: TestFederationHttpSigValidation (11.34s)
testlogger.go:411: 2025/07/28 00:23:46 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /workspace/forgejo/forgejo/tests/gitea-lfs-meta
testlogger.go:411: 2025/07/28 00:23:52 ...ypub/reqsignature.go:76:func1() [W] verifyHttpSignatures failed: neither "Signature" nor "Authorization" have signature parameters
testlogger.go:411: 2025/07/28 00:23:52 ...eb/routing/logger.go:102:func1() [I] router: completed GET http://127.0.0.1:3002/api/v1/activitypub/user-id/2 for test-mock:12345, 400 Bad Request in 5.3ms @ activitypub/reqsignature.go:74(activitypub.ReqHTTPUserOrInstanceSignature)
testlogger.go:411: 2025/07/28 00:23:52 ...ces/auth/httpsign.go:70:Verify() [W] Failed authentication attempt from 127.0.0.1:43244
testlogger.go:411: 2025/07/28 00:23:55 ...eb/routing/logger.go:68:func1() [W] router: slow GET /api/v1/activitypub/user-id/2 for 127.0.0.1:43244, elapsed 3684.7ms @ activitypub/reqsignature.go:74(activitypub.ReqHTTPUserOrInstanceSignature)
--- FAIL: TestFederationHttpSigValidation/SignedRequest (5.01s)
api_federation_httpsig_test.go:50:
Error Trace: /workspace/forgejo/forgejo/tests/integration/api_federation_httpsig_test.go:50
Error: Received unexpected error:
Get "http://127.0.0.1:3002/api/v1/activitypub/user-id/2 ": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Test: TestFederationHttpSigValidation/SignedRequest
--- FAIL: TestFederationHttpSigValidation/ValidateCaches (0.00s)
api_federation_httpsig_test.go:64:
Error Trace: /workspace/forgejo/forgejo/tests/integration/api_federation_httpsig_test.go:64
Error: Expected value not to be nil.
Test: TestFederationHttpSigValidation/ValidateCaches
test_utils.go:247: PrepareTestEnv:Process "GET: /api/v1/activitypub/user-id/2" cancelled
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4cc464a]
```
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8705
Reviewed-by: jerger <jerger@noreply.codeberg.org >
Co-authored-by: Earl Warren <contact@earl-warren.org >
Co-committed-by: Earl Warren <contact@earl-warren.org >
2025-07-28 10:55:04 +02:00
Renovate Bot and forgejo-renovate-action
4f0c2ec258
Update renovate to v41.43.5 (forgejo) ( #8700 )
...
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
2025-07-28 10:33:09 +02:00
Renovate Bot and Earl Warren
6f1e4be0c1
Update dependency forgejo/release-notes-assistant to v1.3.5 (forgejo) ( #8701 )
...
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [forgejo/release-notes-assistant](https://code.forgejo.org/forgejo/release-notes-assistant ) | patch | `v1.3.3` -> `v1.3.5` |
---
### Release Notes
<details>
<summary>forgejo/release-notes-assistant (forgejo/release-notes-assistant)</summary>
### [`v1.3.5`](https://code.forgejo.org/forgejo/release-notes-assistant/releases/tag/v1.3.5 )
[Compare Source](https://code.forgejo.org/forgejo/release-notes-assistant/compare/v1.3.4...v1.3.5 )
<!--start release-notes-assistant-->
<!--URL:https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant-- >
- bug fixes
- [PR](https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant/pulls/98 ): <!--number 98 --><!--line 0 --><!--description Zml4OiB0aGVyZSBjYW4gYmUgbW9yZSB0aGFuIG9uZSB0YWcgZGVjb3JhdGluZyBhIGNvbW1pdA==-->fix: there can be more than one tag decorating a commit<!--description-->
<!--end release-notes-assistant-->
### [`v1.3.4`](https://code.forgejo.org/forgejo/release-notes-assistant/releases/tag/v1.3.4 )
[Compare Source](https://code.forgejo.org/forgejo/release-notes-assistant/compare/v1.3.3...v1.3.4 )
<!--start release-notes-assistant-->
<!--URL:https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant-- >
- bug fixes
- [PR](https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant/pulls/97 ): <!--number 97 --><!--line 0 --><!--description Zml4OiAlKGRlY29yYXRlKSBpcyBub3Qgc3VwcG9ydGVkIGJ5IGdpdCAyLjM5-->fix: %(decorate) is not supported by git 2.39<!--description-->
<!--end release-notes-assistant-->
</details>
---
### Configuration
📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40Mi41IiwidXBkYXRlZEluVmVyIjoiNDEuNDIuNSIsInRhcmdldEJyYW5jaCI6ImZvcmdlam8iLCJsYWJlbHMiOlsiZGVwZW5kZW5jeS11cGdyYWRlIiwidGVzdC9ub3QtbmVlZGVkIl19-->
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8701
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
2025-07-28 09:27:32 +02:00
Renovate Bot and Earl Warren
370b498e6d
Lock file maintenance (forgejo) ( #8703 )
...
This PR contains the following updates:
| Update | Change |
|---|---|
| lockFileMaintenance | All locks refreshed |
🔧 This Pull Request updates lock files to use the latest dependency versions.
---
### Configuration
📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions ) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40Mi41IiwidXBkYXRlZEluVmVyIjoiNDEuNDIuNSIsInRhcmdldEJyYW5jaCI6ImZvcmdlam8iLCJsYWJlbHMiOlsiZGVwZW5kZW5jeS11cGdyYWRlIiwidGVzdC9ub3QtbmVlZGVkIl19-->
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8703
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
2025-07-28 08:14:35 +02:00
Gusted and Earl Warren
421cfba3cf
fix: return error when user is not repo writer ( #8690 )
...
- If the doer isn't a issue/pull writer, return a error.
- Fixes a panic (NPE), because the callers of `prepareForReplaceOrAdd` simply checked if there was a error returned to see if the user was allowed. It didn't check if a statuscode was written. This is specifically a issue when the automatic token by Forgejo actions is used.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8690
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Gusted <postmaster@gusted.xyz >
Co-committed-by: Gusted <postmaster@gusted.xyz >
2025-07-27 10:17:33 +02:00
Robert Wolff and Earl Warren
5624b9f094
fix(ui): issue comment review request targets when aggregated ( #8689 )
...
regression of !8239
### Tests
- I added test coverage for Go changes...
- [ ] in their respective `*_test.go` for unit tests.
- [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I added test coverage for JavaScript changes...
- [ ] in `web_src/js/*.test.js` if it can be unit tested.
- [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests )).
### Documentation
- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs ) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.
### Release notes
- [x] I do not want this change to show in the release notes.
- [ ] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8689
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Robert Wolff <mahlzahn@posteo.de >
Co-committed-by: Robert Wolff <mahlzahn@posteo.de >
2025-07-27 10:12:28 +02:00
Antonin Delpeuch and Earl Warren
4694cbf95b
fix: don't mark files in AGit PRs as editable ( #8642 )
...
Fixes #8639 .
For your convenience this PR is made via AGit for you to see the issue directly in Codeberg ^^
### Tests
- I added test coverage for Go changes...
- [ ] in their respective `*_test.go` for unit tests.
- [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
I am not sure how to best write a unit test for this. It looks like there isn't any AGit PR in the default test database. The integration test in `test/integration/pull_review_test.go` creates one by manually running Git commands. I could just copy all that code to do the same in another test, but I feel bad about duplicating this. Can they be sensibly migrated to some helpers module that can be reused across tests? Or can we add an AGit PR to the test database? Or can we modify the `Flow` attribute of a PR in a test just for the sake of simulating that it's an AGit one?
### Documentation
- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs ) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.
### Release notes
- [x] I do not want this change to show in the release notes.
- [ ] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8642
Reviewed-by: Gusted <gusted@noreply.codeberg.org >
Co-authored-by: Antonin Delpeuch <antonin@delpeuch.eu >
Co-committed-by: Antonin Delpeuch <antonin@delpeuch.eu >
2025-07-27 10:05:55 +02:00
Gusted and Gusted
ee35b617b7
chore: correctly prepare test env ( #8686 )
...
- Ref forgejo/forgejo#8681
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8686
Co-authored-by: Gusted <postmaster@gusted.xyz >
Co-committed-by: Gusted <postmaster@gusted.xyz >
2025-07-26 16:14:42 +02:00
Gusted and Earl Warren
d22f9d1f38
fix: show mergebox when only manual merge is allowed ( #8681 )
...
- If a repository only has the 'manual merge' strategy allowed, the mergebox should still be shown.
- The condition that checks if all merge strategies are disabled didn't check for the manual merge strategy.
- Add a integration test that demonstrates this fix is effective.
Reported-by: apteryx
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8681
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Gusted <postmaster@gusted.xyz >
Co-committed-by: Gusted <postmaster@gusted.xyz >
2025-07-26 05:47:06 +02:00
Gusted and Earl Warren
02de040a5e
feat: add tracing logs after process is complete ( #8680 )
...
- Add the written HTTP status after completing the HTTP response. This makes it easier to find that one request that returns a different status code (ref. https://codeberg.org/Codeberg/Community/issues/2049#issue-1972600 )
- Add the affected amount of rows and last insert ID after the SQL query is done, I have not yet a concrete use-case but this might help with debugging which ID corresponds to some SQL query that someone might want to take a closer look at and if some SQL query affects more than necessary amount of rows.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8680
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Gusted <postmaster@gusted.xyz >
Co-committed-by: Gusted <postmaster@gusted.xyz >
2025-07-26 05:44:58 +02:00
Gusted and Earl Warren
24014c349e
fix: store code challenge correctly in session ( #8678 )
...
- Even though the test file contains some good extensive testing, it didn't bother to actually call `/login/oauth/access_token` to see if the received code actually resulted into a access token.
- The fix itself is... well yeah self-explanatory.
- Resolves forgejo/forgejo#8669
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8678
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Gusted <postmaster@gusted.xyz >
Co-committed-by: Gusted <postmaster@gusted.xyz >
2025-07-26 05:16:55 +02:00
Lynoure Braakman and Earl Warren
b1b418a939
RELEASE-NOTES.md to refer to the release notes directory on master [skip ci] ( #8675 )
...
For any given version, the release notes in that version are lagging behind, so to reduce confusion of someone just wanting to see the release notes of this version they are looking at, changed the RELEASE-NOTES.md to refer to the release notes directory on the main branch.
I'm not 100% happy with now having that point to the main branch, and the more specific links pointing relatively, but maybe it's good enough.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8675
Reviewed-by: Robert Wolff <mahlzahn@posteo.de >
Co-authored-by: Lynoure Braakman <lynoure@noreply.codeberg.org >
Co-committed-by: Lynoure Braakman <lynoure@noreply.codeberg.org >
2025-07-25 22:21:37 +02:00
Michael Jerger and Earl Warren
e271c24100
fix: assorted ActivityPub code only refactors ( #8274 )
...
Fix parts of issue https://codeberg.org/forgejo/forgejo/issues/8221
and PR https://codeberg.org/forgejo/forgejo/pulls/4767
- PostgreSQL
- TestActivityPubPerson/SignedRequestValidation
```
--- FAIL: TestActivityPubPerson/SignedRequestValidation (5.01s)
api_activitypub_person_test.go:51:
Error Trace: /workspace/forgejo/forgejo/tests/integration/api_activitypub_person_test.go:51
Error: Received unexpected error:
Get "http://127.0.0.1:3002/api/v1/activitypub/user-id/2 ": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Test: TestActivityPubPerson/SignedRequestValidation
testlogger.go:411: 2025/06/24 00:12:27 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/activitypub/user-id/2 for 127.0.0.1:50456, 200 OK in 5032.2ms @ activitypub/person.go:21(activitypub.Person)
```
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8274
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Michael Jerger <michael.jerger@meissa-gmbh.de >
Co-committed-by: Michael Jerger <michael.jerger@meissa-gmbh.de >
2025-07-25 18:01:43 +02:00
Earl Warren
fe22e2397c
i18n: update of translations from Codeberg Translate ( #8535 )
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8535
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Reviewed-by: 0ko <0ko@noreply.codeberg.org >
2025-07-25 16:57:52 +02:00
+7
e8acd8afd3
i18n: update of translations from Codeberg Translate
...
Co-authored-by: 0ko <0ko@noreply.codeberg.org >
Co-authored-by: Benedikt Straub <benedikt-straub@web.de >
Co-authored-by: Codeberg Translate <translate@codeberg.org >
Co-authored-by: Edgarsons <edgarsons@noreply.codeberg.org >
Co-authored-by: Fjuro <fjuro@alius.cz >
Co-authored-by: Juno Takano <jutty@noreply.codeberg.org >
Co-authored-by: Lzebulon <lzebulon@noreply.codeberg.org >
Co-authored-by: SomeTr <sometr@noreply.codeberg.org >
Co-authored-by: Vyxie <kitakita@disroot.org >
Co-authored-by: Wuzzy <wuzzy@disroot.org >
Co-authored-by: Zalexanninev15 <zalexanninev15@noreply.codeberg.org >
Co-authored-by: adf19 <adf19@noreply.codeberg.org >
Co-authored-by: darkswordreams <darkswordreams@noreply.codeberg.org >
Co-authored-by: earl-warren <earl-warren@noreply.codeberg.org >
Co-authored-by: justbispo <justbispo@noreply.codeberg.org >
Co-authored-by: oatbiscuits <oatbiscuits@noreply.codeberg.org >
Co-authored-by: xtex <xtexchooser@duck.com >
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo-next/ar/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo-next/cs/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo-next/de/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo-next/fil/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo-next/fr/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo-next/hi/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo-next/lv/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo-next/nds/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo-next/pt_BR/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo-next/pt_PT/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo-next/ru/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo-next/uk/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo-next/zh_Hans/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo/ar/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo/cs/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo/de/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo/fil/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo/fr/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo/lv/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo/nds/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo/pt_BR/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo/ru/
Translate-URL: https://translate.codeberg.org/projects/forgejo/forgejo/uk/
Translation: Forgejo/forgejo
Translation: Forgejo/forgejo-next
2025-07-25 14:11:36 +00:00
Michael Kriese and Earl Warren
57148eb1e8
fix: query token auth version mismatch ( #8666 )
...
It's now scheduled for Forgejo v13
see #8633 for more context
I used Github Copilot for some auto completion of code.
## Checklist
The [contributor guide](https://forgejo.org/docs/next/contributor/ ) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md ). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org ).
### Tests
- I added test coverage for Go changes...
- [ ] in their respective `*_test.go` for unit tests.
- [ ] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I added test coverage for JavaScript changes...
- [ ] in `web_src/js/*.test.js` if it can be unit tested.
- [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests )).
### Documentation
- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs ) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.
### Release notes
- [x] I do not want this change to show in the release notes.
- [ ] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8666
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
Co-committed-by: Michael Kriese <michael.kriese@visualon.de >
2025-07-25 12:24:26 +02:00
Gusted and Earl Warren
d4e4a2a1e3
chore: move template context ( #8663 )
...
The template module now holds the **Template** context, this makes it possible for (render) function in the template module to access functions and share data between render functions.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8663
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Reviewed-by: Lucas <sclu1034@noreply.codeberg.org >
Co-authored-by: Gusted <postmaster@gusted.xyz >
Co-committed-by: Gusted <postmaster@gusted.xyz >
2025-07-25 11:55:15 +02:00
forgejo-release-manager and Earl Warren
61334f7982
chore(release-notes): Forgejo v12.0.1 [skip ci] ( #8664 )
...
https://codeberg.org/forgejo/forgejo/milestone/22237
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8664
Reviewed-by: Beowulf <beowulf@beocode.eu >
Reviewed-by: Michael Kriese <michael.kriese@gmx.de >
Co-authored-by: forgejo-release-manager <contact-forgejo-release-manager@forgejo.org >
Co-committed-by: forgejo-release-manager <contact-forgejo-release-manager@forgejo.org >
2025-07-25 11:05:03 +02:00
Renovate Bot and Earl Warren
f9c2c910d6
Update module github.com/mattn/go-sqlite3 to v1.14.29 (forgejo) ( #8660 )
...
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3 ) | `v1.14.28` -> `v1.14.29` | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>mattn/go-sqlite3 (github.com/mattn/go-sqlite3)</summary>
### [`v1.14.29`](https://github.com/mattn/go-sqlite3/compare/v1.14.28...v1.14.29 )
[Compare Source](https://github.com/mattn/go-sqlite3/compare/v1.14.28...v1.14.29 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40Mi41IiwidXBkYXRlZEluVmVyIjoiNDEuNDIuNSIsInRhcmdldEJyYW5jaCI6ImZvcmdlam8iLCJsYWJlbHMiOlsiZGVwZW5kZW5jeS11cGdyYWRlIiwidGVzdC9ub3QtbmVlZGVkIl19-->
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8660
Reviewed-by: Gusted <gusted@noreply.codeberg.org >
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
2025-07-25 06:36:59 +02:00
Renovate Bot and Earl Warren
1b32d7a874
Update module code.forgejo.org/forgejo/act to v1.33.0 (forgejo) ( #8661 )
...
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| [code.forgejo.org/forgejo/act](https://code.forgejo.org/forgejo/act ) | `v1.32.0` -> `v1.33.0` | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>forgejo/act (code.forgejo.org/forgejo/act)</summary>
### [`v1.33.0`](https://code.forgejo.org/forgejo/act/compare/v1.32.0...v1.33.0 )
[Compare Source](https://code.forgejo.org/forgejo/act/compare/v1.32.0...v1.33.0 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40Mi41IiwidXBkYXRlZEluVmVyIjoiNDEuNDIuNSIsInRhcmdldEJyYW5jaCI6ImZvcmdlam8iLCJsYWJlbHMiOlsiZGVwZW5kZW5jeS11cGdyYWRlIiwidGVzdC9ub3QtbmVlZGVkIl19-->
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8661
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
2025-07-25 06:36:01 +02:00
Otto Richter and Otto
38c83ae6e1
tests(e2e): Silence heading level warning ( #8659 )
...
The problem surfaced in and after https://codeberg.org/forgejo/forgejo/pulls/8572 , but the actual problem is the underlying mess of forms. A better fix would be https://codeberg.org/forgejo/forgejo/issues/8658 , but I want to make playwright tests pass again.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8659
Reviewed-by: Gusted <gusted@noreply.codeberg.org >
Co-authored-by: Otto Richter <git@otto.splvs.net >
Co-committed-by: Otto Richter <git@otto.splvs.net >
2025-07-25 02:39:16 +02:00
f4894b0edd
feat: add sort parameter for users/search api endpoint ( #8594 )
...
Introduces a new sort parameter to the `/users/search` API endpoint, similar to the one that already exists for the `/admin/users` endpoint.
Resolves #8499
Co-authored-by: DebuggerAndrzej <redpandaworkstation@gmail.com >
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8594
Reviewed-by: Lucas <sclu1034@noreply.codeberg.org >
Reviewed-by: Gusted <gusted@noreply.codeberg.org >
Co-authored-by: DebuggerAndrzej <debuggerandrzej@noreply.codeberg.org >
Co-committed-by: DebuggerAndrzej <debuggerandrzej@noreply.codeberg.org >
2025-07-24 22:40:27 +02:00
Earl Warren and Earl Warren
bfa9c89e6f
Revert "feat: remove API authentication methods that uses the URL query ( #7924 )" ( #8633 )
...
This reverts commit b2a3966e64 .
weblate etc. are using this method and need to be updated before the change is enforced.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8633
Reviewed-by: Michael Kriese <michael.kriese@gmx.de >
Co-authored-by: Earl Warren <contact@earl-warren.org >
Co-committed-by: Earl Warren <contact@earl-warren.org >
2025-07-24 17:19:24 +02:00
0ko and Earl Warren
87a7bf2436
fix(ui): update i18n usage in comments ( #8644 )
...
Fix regression of https://codeberg.org/forgejo/forgejo/pulls/8214 (regressing v11 feature https://codeberg.org/forgejo/forgejo/pulls/6523 )
Reporeted by @Andre601.
## Preview


## Testing
* go to https://v13.next.forgejo.org/ , log in
* create repo, add some issue labels (on `./labels`)
* create issue
* add some labels to it and then close it
* observe that what you see looks more like the 2nd screenshot than the 1st screenshot
<!--start release-notes-assistant-->
## Release notes
<!--URL:https://codeberg.org/forgejo/forgejo-- >
- Bug fixes
- [PR](https://codeberg.org/forgejo/forgejo/pulls/8644 ): <!--number 8644 --><!--line 0 --><!--description Zml4KHVpKTogdXBkYXRlIGkxOG4gdXNhZ2UgaW4gY29tbWVudHM=-->fix(ui): update i18n usage in comments<!--description-->
<!--end release-notes-assistant-->
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8644
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Reviewed-by: Robert Wolff <mahlzahn@posteo.de >
Co-authored-by: 0ko <0ko@noreply.codeberg.org >
Co-committed-by: 0ko <0ko@noreply.codeberg.org >
2025-07-24 07:17:11 +02:00
Gusted and Earl Warren
2f70869519
chore: integration test when rebase should happen ( #8635 )
...
- Follow up to forgejo/forgejo#8622
- Now the converse is also tested, a rebase should have happened and the commit IDs should differ.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8635
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Gusted <postmaster@gusted.xyz >
Co-committed-by: Gusted <postmaster@gusted.xyz >
2025-07-23 22:35:40 +02:00
Earl Warren and Earl Warren
b52cec753f
Revert "fix(ci): pull stylus from github:stylus/stylus#0.57.0 ( #8625 )" ( #8638 )
...
This reverts commit 4d06d62515 .
https://www.npmjs.com/package/stylus?activeTab=versions is back.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8638
Reviewed-by: Michael Kriese <michael.kriese@gmx.de >
Reviewed-by: Beowulf <beowulf@beocode.eu >
Co-authored-by: Earl Warren <contact@earl-warren.org >
Co-committed-by: Earl Warren <contact@earl-warren.org >
2025-07-23 22:30:39 +02:00
Michael Kriese and Earl Warren
4d20a74c04
chore(renovate): use forgejo platform ( #8629 )
...
Use the new `forgejo` platform instead of the `gitea`
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8629
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
Co-committed-by: Michael Kriese <michael.kriese@visualon.de >
2025-07-23 10:37:46 +02:00
Earl Warren and Earl Warren
4d06d62515
fix(ci): pull stylus from github:stylus/stylus#0.57.0 ( #8625 )
...
npm error 404 Not Found - GET https://registry.npmjs.org/stylus/-/stylus-0.57.0.tgz - Not found
Workaround to be reverted when the issue is fixed.
Refs https://github.com/stylus/stylus/issues/2938
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8625
Reviewed-by: Michael Kriese <michael.kriese@gmx.de >
Reviewed-by: Beowulf <beowulf@beocode.eu >
Co-authored-by: Earl Warren <contact@earl-warren.org >
Co-committed-by: Earl Warren <contact@earl-warren.org >
2025-07-23 09:17:32 +02:00
Gusted and Earl Warren
f3ccfc4969
fix: short-circuit to avoid rebasing ( #8622 )
...
- Do not try to rebase a pull request when it is zero commits behind. We can trust this number as before merging a repository the status of the pull request is mergeable and thus not in a conflict checking stage (where this would be updated).
- This resolves a issue where `git-replay` would rebase a pull request when this is not needed and causes to lose the signature of Git commits and commit IDs as shown in the pullrequest commits timeline.
- Resolves forgejo/forgejo#8619
- Add a simple integration test that simply checks that after merging a up-to-date pull request via the rebase style that the commit ID didn't change. This demonstrates that it didn't do needlessly rebasing.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8622
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Gusted <postmaster@gusted.xyz >
Co-committed-by: Gusted <postmaster@gusted.xyz >
2025-07-23 07:30:30 +02:00
Robert Wolff and Gusted
7643bdd2b5
feat(ui): add links to review request targets in issue comments ( #8239 )
...
- Add links to review request targets in issue comments
- Fix links to ghost users/orgs/teams to be empty
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8239
Reviewed-by: Gusted <gusted@noreply.codeberg.org >
Co-authored-by: Robert Wolff <mahlzahn@posteo.de >
Co-committed-by: Robert Wolff <mahlzahn@posteo.de >
2025-07-23 04:45:58 +02:00
Renovate Bot and forgejo-renovate-action
82daae4c7c
Update dependency vue to v3.5.18 (forgejo) ( #8623 )
...
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
2025-07-23 04:38:03 +02:00
oliverpool and Gusted
83ea43cf49
frontend: generic lazy loader for webcomponents ( #8510 )
...
After seeing #8111 use a webcomponent, I think that they are a neat usecase for Forgejo where most of the frontend is backend-generated, with some "island of enhancements".
I am considering using a webcomponent for the CITATION management (last occurrence of [`Blob.GetBlobContent`](https://codeberg.org/forgejo/forgejo/issues/8222 )), however I noticed that the developer experience wasn't ideal.
With this PR it would be very easy to declare a webcomponent, which will be loaded only if needed (I converted `model-viewer` and `pdf-object` to this technique).
Some cleanup in the neighbor webcomponents.
## Testing
1) Create a new repository or use an existing one.
2) Upload a `.pdf` or `.glb` file (such as https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/testdata/data/viewer/Unicode%E2%9D%A4%E2%99%BBTest.glb )
3) Open the Network inspector and view the file in the repository.
- After a short loading spinner, the PDF or 3D model should be rendered in a viewer
- the related JS should have been loaded (e.g. http://localhost:3000/assets/js/model-viewer.494bf0cd.js )
- visiting another page and check that this JS file isn't loaded
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8510
Reviewed-by: Gusted <gusted@noreply.codeberg.org >
Reviewed-by: 0ko <0ko@noreply.codeberg.org >
Reviewed-by: Beowulf <beowulf@beocode.eu >
Co-authored-by: oliverpool <git@olivier.pfad.fr >
Co-committed-by: oliverpool <git@olivier.pfad.fr >
2025-07-23 04:10:50 +02:00
Renovate Bot and Gusted
c3b18a6deb
Update module github.com/yuin/goldmark to v1.7.13 (forgejo) ( #8621 )
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8621
Reviewed-by: Gusted <gusted@noreply.codeberg.org >
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
2025-07-23 02:58:57 +02:00
0ko and Gusted
c11dd3fb46
feat(ui): improve org header with new noJS dropdown and more options ( #8572 )
...
Related: https://codeberg.org/forgejo/forgejo/pulls/6977/files#diff-fd05eba523810d46c7763db938ad5839372a074a , https://codeberg.org/forgejo/forgejo/pulls/3949 , https://codeberg.org/forgejo/forgejo/pulls/7906
* use the new noJS dropdown for extra actions in org view (currently only includes report button)
* this required some refactoring of the area because the said dropdown was not built to be placed in an area where `font-size:36px` is forced onto everything
* this greatly improves consistently with user profiles which now use this type of dropdown
* I decided against making the opener button mimicrate an actual button because it looks ok as is and is consitent with menu in user profiles and because I don't think this is a good design language to make a kebab menu opener look this way
* add icon to the entry
* add atom entry
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8572
Reviewed-by: Gusted <gusted@noreply.codeberg.org >
Reviewed-by: Beowulf <beowulf@beocode.eu >
Co-authored-by: 0ko <0ko@noreply.codeberg.org >
Co-committed-by: 0ko <0ko@noreply.codeberg.org >
2025-07-23 02:06:13 +02:00
Renovate Bot and Earl Warren
b06f4fdd63
Update dependency forgejo/release-notes-assistant to v1.3.3 (forgejo) ( #8620 )
...
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [forgejo/release-notes-assistant](https://code.forgejo.org/forgejo/release-notes-assistant ) | patch | `v1.3.2` -> `v1.3.3` |
---
### Release Notes
<details>
<summary>forgejo/release-notes-assistant (forgejo/release-notes-assistant)</summary>
### [`v1.3.3`](https://code.forgejo.org/forgejo/release-notes-assistant/releases/tag/v1.3.3 )
[Compare Source](https://code.forgejo.org/forgejo/release-notes-assistant/compare/v1.3.2...v1.3.3 )
<!--start release-notes-assistant-->
<!--URL:https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant-- >
- bug fixes
- [PR](https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant/pulls/95 ): <!--number 95 --><!--line 0 --><!--description Zml4OiBnaXQgZmV0Y2ggb24gYSBtaXJyb3IgbXVzdCBleHBsaWNpdGx5IHBydW5lIHRhZ3M=-->fix: git fetch on a mirror must explicitly prune tags<!--description-->
<!--end release-notes-assistant-->
</details>
---
### Configuration
📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40Mi41IiwidXBkYXRlZEluVmVyIjoiNDEuNDIuNSIsInRhcmdldEJyYW5jaCI6ImZvcmdlam8iLCJsYWJlbHMiOlsiZGVwZW5kZW5jeS11cGdyYWRlIiwidGVzdC9ub3QtbmVlZGVkIl19-->
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8620
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
2025-07-23 01:12:08 +02:00
0fb9fc752b
Update module code.forgejo.org/forgejo/act to v1.32.0 (forgejo) ( #8502 )
...
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| [code.forgejo.org/forgejo/act](https://code.forgejo.org/forgejo/act ) | `v1.29.0` -> `v1.32.0` | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>forgejo/act (code.forgejo.org/forgejo/act)</summary>
### [`v1.32.0`](https://code.forgejo.org/forgejo/act/compare/v1.31.0...v1.32.0 )
[Compare Source](https://code.forgejo.org/forgejo/act/compare/v1.31.0...v1.32.0 )
### [`v1.31.0`](https://code.forgejo.org/forgejo/act/compare/v1.30.0...v1.31.0 )
[Compare Source](https://code.forgejo.org/forgejo/act/compare/v1.30.0...v1.31.0 )
### [`v1.30.0`](https://code.forgejo.org/forgejo/act/compare/v1.29.0...v1.30.0 )
[Compare Source](https://code.forgejo.org/forgejo/act/compare/v1.29.0...v1.30.0 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4yMy4yIiwidXBkYXRlZEluVmVyIjoiNDEuNDIuMiIsInRhcmdldEJyYW5jaCI6ImZvcmdlam8iLCJsYWJlbHMiOlsiZGVwZW5kZW5jeS11cGdyYWRlIiwidGVzdC9ub3QtbmVlZGVkIl19-->
<!--start release-notes-assistant-->
## Release notes
<!--URL:https://codeberg.org/forgejo/forgejo-- >
- Breaking features
- [PR](https://codeberg.org/forgejo/forgejo/pulls/8502 ): <!--number 8502 --><!--line 0 --><!--description Rm9yZ2VqbyBBY3Rpb25zIHdvcmtmbG93cyBhcmUgdmVyaWZpZWQgd2l0aCBhIFlBTUwgc2NoZW1hIGFuZCBjb21tb24gZXJyb3JzIHN1Y2ggYXMgdXNpbmcgYW4gaW5jb3JyZWN0IGNvbnRleHQgKGUuZy4gYCR7eyBiYWRjb250ZXh0LkZPUkdFSk9fUkVQT1NJVE9SWSB9fWApIG9yIGEgdHlwbyBpbiBhIHJlcXVpcmVkIGtleXdvcmQgKGUuZy4gYHJ1aW5zLW9uOmAgaW5zdGVhZCBvZiBgcnVucy1vbjpgKSB3aWxsIGJlIHJlcG9ydGVkIGluIHRoZSBhY3Rpb24gcGFnZSBhbmQgdGhlIHdlYiBwYWdlIHRoYXQgZGlzcGxheXMgdGhlIGZpbGUgaW4gdGhlIHJlcG9zaXRvcnkuIEl0IGlzIHJlY29tbWVuZGVkIHRvIHZlcmlmeSBleGlzdGluZyB3b3JrZmxvd3MgYXJlIHN1Y2Nlc3NmdWxseSB2ZXJpZmllZCBwcmlvciB0byB1cGdyYWRpbmcsIFthcyBleHBsYWluZWQgaW4gdGhlIEZvcmdlam8gcnVubmVyIHJlbGVhc2Ugbm90ZXNdKGh0dHBzOi8vY29kZS5mb3JnZWpvLm9yZy9mb3JnZWpvL3J1bm5lci9zcmMvYnJhbmNoL21haW4vUkVMRUFTRS1OT1RFUy5tZCM4LTAtMCku-->Forgejo Actions workflows are verified with a YAML schema and common errors such as using an incorrect context (e.g. `${{ badcontext.FORGEJO_REPOSITORY }}`) or a typo in a required keyword (e.g. `ruins-on:` instead of `runs-on:`) will be reported in the action page and the web page that displays the file in the repository. It is recommended to verify existing workflows are successfully verified prior to upgrading, [as explained in the Forgejo runner release notes](https://code.forgejo.org/forgejo/runner/src/branch/main/RELEASE-NOTES.md#8-0-0 ).<!--description-->
<!--end release-notes-assistant-->
Co-authored-by: Earl Warren <contact@earl-warren.org >
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8502
Reviewed-by: Michael Kriese <michael.kriese@gmx.de >
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
2025-07-23 01:01:31 +02:00
floss4good and Otto
d87e2e7e40
feat: Admin interface for abuse reports ( #7905 )
...
- Implementation of milestone 5. from **Task F. Moderation features: Reporting** (part of [amendment of the workplan](https://codeberg.org/forgejo/sustainability/src/branch/main/2022-12-01-nlnet/2025-02-07-extended-workplan.md#task-f-moderation-features-reporting ) for NLnet 2022-12-035):
`5. Forgejo admins can see a list of reports`
There is a lot of room for improvements, but it was decided to start with a basic version so that feedback can be collected from real-life usages (based on which the UI might change a lot).
- Also covers milestone 2. from same **Task F. Moderation features: Reporting**:
`2. Reports from multiple users are combined in the database and don't create additional reports.`
But instead of combining the reports when stored, they are grouped when retrieved (it was concluded _that it might be preferable to take care of the deduplication while implementing the admin interface_; see https://codeberg.org/forgejo/forgejo/pulls/7939#issuecomment-4841754 for more details).
---
Follow-up of !6977
### See also:
- forgejo/design#30
---
This adds a new _Moderation reports_ section (/admin/moderation/reports) within the _Site administration_ page, where administrators can see an overview with the submitted abuse reports that are still open (not yet handled in any way). When multiple reports exist for the same content (submitted by distinct users) only the first one will be shown in the list and a counter can be seen on the right side (indicating the number of open reports for the same content type and ID). Clicking on the counter or the icon from the right side will open the details page where a list with all the reports (when multiple) linked to the reported content is available, as well as any shadow copy saved for the current report(s).
The new section is available only when moderation in enabled ([moderation] ENABLED config is set as true within app.ini).
Discussions regarding the UI/UX started with https://codeberg.org/forgejo/design/issues/30#issuecomment-2908849
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7905
Reviewed-by: Otto <otto@codeberg.org >
Reviewed-by: jerger <jerger@noreply.codeberg.org >
Co-authored-by: floss4good <floss4good@disroot.org >
Co-committed-by: floss4good <floss4good@disroot.org >
2025-07-23 00:20:15 +02:00
Renovate Bot and Gusted
c17dd6c5b3
Update module github.com/go-webauthn/webauthn to v0.13.4 (forgejo) ( #8578 )
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8578
Reviewed-by: Gusted <gusted@noreply.codeberg.org >
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org >
2025-07-22 23:55:46 +02:00
Gusted and Earl Warren
6007f2d3d5
fix: make the action feed resilient to database inconsistencies ( #8617 )
...
This reverts commit 7380eac5a2 .
Resolves forgejo/forgejo#8612
It is possible for the action feed to reference deleted repositories the
`INNER JOIN` will make sure that these are filtered out. We cannot
filter these out after the fact, because the value of `count` will still
be incorrect.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8617
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org >
Co-authored-by: Gusted <postmaster@gusted.xyz >
Co-committed-by: Gusted <postmaster@gusted.xyz >
2025-07-22 23:40:30 +02:00