Mark Horninger
221e99120e
fix(gitlab): avoid N+1 member lookups in Repos() ( #6991 )
2026-08-15 09:37:18 +02:00
68e4a54c0c
Update module github.com/google/go-github/v89 to v90 ( #6980 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com >
Co-authored-by: qwerty287 <qwerty287@posteo.de >
2026-08-08 09:16:18 +02:00
gerbsen and Daniel Gerber
682372d77f
Change group identifier to full_path for GitLab ( #6950 )
...
Co-authored-by: Daniel Gerber <394442-gerbsen@users.noreply.gitlab.com >
2026-08-04 14:16:35 +02:00
José Maia and glitch-ux
bfd787c9aa
fix(forgejo): treat 404 on empty repos as empty pull request list ( #6872 )
...
Co-authored-by: glitch-ux <glitch-ux@users.noreply.github.com >
2026-07-20 09:56:51 +02:00
Anay Garodia
099df99494
fix(github): resolve tag pagination loop in release hook ( #6870 )
2026-07-20 09:56:25 +02:00
6543 and Claude
fd93e64e46
Add fuzz target to make ( #6828 )
...
Co-authored-by: Claude <claude@anthropic.com >
2026-07-19 00:41:14 +02:00
40b2bc4c4f
Update module github.com/google/go-github/v88 to v89 ( #6838 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de >
2026-07-13 23:00:09 +02:00
6543 and qwerty287
8ff62b2f9e
Rework pipeline data structure: Release & Tag ( #6774 )
...
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com >
2026-06-27 17:56:45 +02:00
Weslley Rocha
e3f827bd67
Add CI_COMMIT_PULL_REQUEST_DRAFT environment variable ( #6778 )
2026-06-26 11:16:54 +02:00
6543 and Claude
0fa872e276
Add more tests in areas not well covered ( #6696 )
...
Co-authored-by: Claude <claude@anthropic.com >
2026-06-05 14:49:38 +02:00
6543
72335fa890
github dont fail on force push ( #6697 )
2026-06-04 19:21:45 +02:00
qwerty287
98faae778c
Use Gitlab username ( #6653 )
2026-05-27 14:16:25 +02:00
3993607409
Update module github.com/google/go-github/v86 to v88 ( #6626 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de >
2026-05-23 17:07:54 +02:00
6543
11f74a6291
format with gofumpt v0.10.0 ( #6573 )
2026-05-14 14:02:43 +02:00
e4dfbf86c6
Refactor server/.../step_builder into pipeline/.../builder ( #3967 )
...
Extract the `step_builder` from the server to the pipeline package.
This cleans the interfaces / structure and will allow us to re-use it in the cli to correctly support pipeline execution (things like `depends_on` support).
Co-authored-by: Anton Bracke <anton.bracke@fastleansmart.com >
Co-authored-by: 6543 <6543@obermui.de >
2026-05-13 19:08:38 +02:00
renovate[bot] and lnx01
d9c25cd601
Update module github.com/google/go-github/v85 to v86 ( #6560 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-11 12:55:51 +02:00
Edward Salter and Claude Opus 4.7
97eae443c6
fix(gitlab): preserve private flag when webhook payload omits project visibility ( #6544 )
...
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-06 00:25:30 +02:00
6543
d34649de22
Refactor: remove Auth() from Forge interface ( #6505 )
2026-04-26 15:36:12 +02:00
renovate[bot] and lnx01
fb4301c0fd
Update module github.com/google/go-github/v84 to v85 ( #6500 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-26 08:10:37 +02:00
Lê Hoàng Phương
5ed9fc6b0e
Add refname to bitbucket commit status ( #6482 )
2026-04-22 10:39:37 +02:00
Lê Hoàng Phương
d57829de3d
Remove usage of deprecated /user/permissions/repositories ( #6401 )
2026-04-07 09:48:21 +02:00
Lê Hoàng Phương
5cf626cef9
Fix parsing /user/workspaces response ( #6396 )
2026-04-07 09:17:28 +02:00
qwerty287 and 6543
79cc07265e
Unify import aliases ( #6328 )
...
Co-authored-by: 6543 <6543@obermui.de >
2026-03-28 15:45:23 +01:00
qwerty287
9e359b3e9e
Fix bitbucket api deprecations ( #6324 )
2026-03-25 14:30:29 +01:00
qwerty287
3156cd687c
Fix license headers ( #6205 )
2026-03-23 11:54:07 +01:00
6543
2bc56896f3
Refactor so storage detects if Insert fails because of unique constraint ( #6259 )
2026-03-19 13:17:56 +01:00
renovate[bot] and lnx01
12b54d89a4
fix(deps): update module gitlab.com/gitlab-org/api/client-go to v2 ( #6216 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-07 13:33:16 +01:00
renovate[bot] and lnx01
e741954d6d
fix(deps): update module codeberg.org/mvdkleijn/forgejo-sdk/forgejo/v2 to v3 ( #6215 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-07 12:44:53 +01:00
qwerty287
875b1186a3
Fix message on gitlab tag event ( #6196 )
2026-03-06 18:24:54 +01:00
Harri Eränen and Harri
1772ba091f
fix(bbdc): resolve annotated tag object SHA to commit SHA before posting build status ( #6203 )
...
Co-authored-by: Harri <harri.eranen@nordhero.com >
2026-03-06 15:43:58 +01:00
qwerty287
480f673ff7
Fix status merging with skipped pipelines ( #6176 )
2026-03-02 15:35:43 +01:00
renovate[bot] and lnx01
f3aba93c54
fix(deps): update module github.com/google/go-github/v83 to v84 ( #6172 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-28 08:30:09 +01:00
Myers Carpenter
53d01657c6
Fix OAuth token refresh race condition with singleflight ( #6153 )
2026-02-24 16:45:50 +01:00
renovate[bot] and lnx01
e7a7b1dbdd
fix(deps): update module github.com/google/go-github/v82 to v83 ( #6140 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-21 09:20:41 +01:00
qwerty287
b7c942984a
Use tabs for indentation in embedded JSON ( #6103 )
2026-02-18 13:20:34 +01:00
qwerty287
bb4146da2a
Fix BB email ( #6102 )
2026-02-11 07:42:31 +01:00
qwerty287
92a489f538
Refresh token before use for all forges ( #6062 )
2026-02-06 13:35:38 +01:00
6543
52cb9f6c21
Document required forge methods ( #6049 )
2026-02-03 17:04:24 +01:00
Kevin Web
894ba77d94
Fix OAuth token refresh in webhook handling for Bitbucket and GitHub ( #6059 )
...
## Summary
Fixes #5590
Fixes #5713
This PR fixes an issue where webhook handling fails with "failure to parse hook" error when the user's OAuth access token has expired. The root cause is that the Bitbucket and GitHub forge implementations make API calls during webhook processing without first refreshing the OAuth token.
## Problem
When a webhook arrives from Bitbucket or GitHub, the `Hook()` function (and its helper functions) make API calls to fetch additional data (changed files, repo info, etc.). These API calls use the stored OAuth access token, which may have expired.
**Before this fix:**
1. Webhook arrives
2. `Hook()` makes API calls with potentially expired token
3. API call fails with "OAuth2 access token expired"
4. Error bubbles up as HTTP 400 "failure to parse hook"
5. `forge.Refresh()` is called later in `PostHook()` - but it's too late
**Example error from logs:**
`failure to parse hook error="OAuth2 access token expired. Use your refresh token to obtain a new access token."`
## Solution
Add `forge.Refresh()` calls before making API calls in the webhook handling code paths. This follows the same pattern already used by:
- Bitbucket Data Center forge (`server/forge/bitbucketdatacenter/bitbucketdatacenter.go`)
- Other code paths like `pipeline.Create()`, `cron.go`, etc.
### Changes
**Bitbucket** (`server/forge/bitbucket/bitbucket.go`):
- Added `forge.Refresh()` in `Hook()` before API calls
**GitHub** (`server/forge/github/github.go`):
- Added `forge.Refresh()` in `loadChangedFilesFromPullRequest()`
- Added `forge.Refresh()` in `getTagCommitSHA()`
- Added `forge.Refresh()` in `loadChangedFilesFromCommits()`
## Testing
- All existing Bitbucket and GitHub forge tests pass
- Tested in production environment with Bitbucket (waited for token expiry, webhook succeeded after fix)
2026-02-03 13:34:01 +01:00
57b2449bb1
fix(deps): update golang-packages ( #6058 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de >
2026-02-03 08:26:49 +01:00
6a33483647
fix(deps): update module github.com/google/go-github/v81 to v82 ( #6047 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de >
2026-01-31 08:52:23 +01:00
6543
c3d1849673
Delete/Deactivate repo ignores missing repo at forge ( #5953 )
2026-01-11 13:00:27 +02:00
renovate[bot] and lnx01
8810f9722c
fix(deps): update module github.com/google/go-github/v80 to v81 ( #5946 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-10 14:22:28 +01:00
qwerty287
2f0684f502
Revert repos pagination for GH and BB ( #5924 )
2026-01-08 12:32:32 +01:00
qwerty287
2c82972f33
Log addon errors ( #5923 )
2026-01-08 11:28:58 +02:00
John Olheiser
e23829397c
fix: send correct argument to rpc call for name/url ( #5922 )
...
Signed-off-by: jolheiser <git@jolheiser.com >
2026-01-08 08:00:52 +01:00
renovate[bot] and lnx01
9cb353e103
fix(deps): update module github.com/google/go-github/v79 to v80 ( #5838 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-06 20:46:28 +01:00
6543
761cc67f11
server/forge: rename var to be more descriptive and test value ( #5806 )
2025-12-02 13:40:08 +01:00
18ff3b7597
fix(deps): update module gitlab.com/gitlab-org/api/client-go to v1 ( #5794 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de >
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com >
2025-11-29 09:54:07 +01:00
Erik Mogensen
88020fe1ca
fix(bitbucketdatacenter): fix CI_COMMIT_PULL_REQUEST ( #5769 )
2025-11-27 09:49:11 +01:00