feat: add support for gitea platform #5509
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull requests adds support for the Gitea platform, which is available as a self-hosted solution as well as on gitea.com operated by DiDi Cloud. This specific implementation supports all Renovate features aside from these caveats:
Immortal
and theRenovate Ignore Notification
comment gets suppressed when closing a PR.The implementation has 100% test coverage and was successfully tested against a few real repositories on a self-hosted Gitea server running 1.11.0. It is split across three files:
index.ts
does all the actual hard work as with any other currently featured platformgitea-helper.ts
does the actual API calls and exposes them using typed functionsgitea-got-wrapper.ts
as a wrapper for thegot
libraryDuring the implementation I've noticed that
setBaseBranch
has been incorrectly type-hinted inlib/platform/common.ts
, as thebaseBranch
was not flagged as optional despite being supported and required by the current platforms / test suites. This has been fixed in the separate commit e39d221, which can be found inside this PR as well.Thank you in advance for reviewing this contribution.
Closes #4042