Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(platform): add support for the SCM-manager #26866

Open
wants to merge 64 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
e3780f7
- Added Renovate support for the [SCM-Manager](https://scm-manager.org/)
eheimbuch Aug 1, 2023
f0a024e
Reverted numbering change in markdown docs
zT-1337 Jan 29, 2024
01b68fb
Changed from type to interface, if possible
zT-1337 Jan 29, 2024
acb5d94
Removed axios dependency and using the http layer of renovate instead
zT-1337 Jan 29, 2024
ca1e24e
Fixed not using scmm specific mime types for accept header
zT-1337 Jan 30, 2024
46071f5
Use git from test/util instead
zT-1337 Feb 15, 2024
f92e243
Add dummy tests for no ops
zT-1337 Feb 15, 2024
bf656b9
Fix some phrasing and spelling issues
zT-1337 Feb 15, 2024
fca81b1
Change scmm to scm-manager and fix SCM-Manager specific content type
zT-1337 Feb 19, 2024
26afe5d
Add supported major versions, review plugin requirement, write permis…
zT-1337 Feb 19, 2024
dc65178
Change using actual host rules instead of mocking it
zT-1337 Feb 19, 2024
b6bf89a
Change use http mocks for testing
zT-1337 Feb 23, 2024
eb0a6a8
Update docs/usage/getting-started/running.md
zT-1337 Feb 23, 2024
c1cab04
Update lib/modules/platform/scm-manager/index.ts
zT-1337 Feb 23, 2024
62ab7bc
Update lib/modules/platform/scm-manager/mapper.spec.ts
zT-1337 Feb 23, 2024
cba62ca
Update lib/modules/platform/scm-manager/readme.md
zT-1337 Feb 23, 2024
5b99a06
Update lib/modules/platform/scm-manager/readme.md
zT-1337 Feb 23, 2024
22b3bc8
Update lib/modules/platform/scm-manager/readme.md
zT-1337 Feb 23, 2024
53bdd87
Update lib/modules/platform/scm-manager/readme.md
zT-1337 Feb 23, 2024
376c79a
Update lib/modules/platform/scm-manager/readme.md
zT-1337 Feb 23, 2024
ae53231
Fix scm-manager docs link
zT-1337 Feb 23, 2024
344c1a3
Merge branch 'main' into feat/scm-manager-support
zT-1337 May 2, 2024
5431ffc
Fix linting
zT-1337 May 2, 2024
404f77d
Fix linting
zT-1337 May 2, 2024
3e1a721
Throw errors if username or token is not provided by the host rules
zT-1337 May 2, 2024
808c7d4
Replace NO-OP with Not implemented
zT-1337 May 2, 2024
af6d959
Remove objects from log messages
zT-1337 May 2, 2024
a733bdb
Fix linting
zT-1337 May 2, 2024
0f11d6b
Fix path to platform config options
zT-1337 May 6, 2024
1906e39
Merge branch 'main' into feat/scm-manager-support
zT-1337 May 6, 2024
f598a60
Fix link to self-host-configuration docs
zT-1337 May 7, 2024
4f89f29
Fix link to self-host-configuration docs
zT-1337 May 7, 2024
6d736cf
Remove the link to the platform config option, because the tests keep…
zT-1337 May 7, 2024
dbf381c
Merge branch 'main' into feat/scm-manager-support
zT-1337 May 7, 2024
c6c0212
Merge branch 'main' into feat/scm-manager-support
zT-1337 Jul 24, 2024
2c92044
Fix link to self-host-configuration docs
zT-1337 Jul 24, 2024
19edcb3
Remove not needed type cast
zT-1337 Jul 24, 2024
bd0e4f4
Fix type check of protocol links
zT-1337 Jul 24, 2024
2b20b20
Move scm-manager into util http folder
zT-1337 Jul 24, 2024
5647da2
Apply linting
zT-1337 Jul 24, 2024
15e547d
Add maxBodyLength function and its test
zT-1337 Jul 24, 2024
76f7971
Add test case if protocol links are not an array of links
zT-1337 Jul 24, 2024
55b3b91
Use zod schema for pagination
zT-1337 Jul 24, 2024
62db5dc
Apply linting
zT-1337 Jul 24, 2024
5f4b6fd
Refactor typing with zod schema
zT-1337 Jul 24, 2024
9262317
Merge branch 'main' into feat/scm-manager-support
zT-1337 Jul 24, 2024
483d12f
Merge branch 'main' into feat/scm-manager-support
pfeuffer Aug 2, 2024
79ebdec
Fix test description
zT-1337 Aug 5, 2024
15405ff
Fix test description
zT-1337 Aug 5, 2024
b277086
Fix test description
zT-1337 Aug 5, 2024
25d20bc
Fix test description
zT-1337 Aug 5, 2024
c721319
Update readme
zT-1337 Aug 5, 2024
fbab830
Add try catch around fetching the current user
zT-1337 Aug 15, 2024
c1a6591
Switch log statement from info to debug
zT-1337 Aug 15, 2024
01a8c4f
Switch log statement from info to trace
zT-1337 Aug 15, 2024
aa96216
Switch log statement from debug to trace
zT-1337 Aug 15, 2024
d3e49f9
Switch log statement from info to trace
zT-1337 Aug 15, 2024
9c5b633
Switch log statement from info to trace
zT-1337 Aug 15, 2024
2f0873c
Switch log statement from info to trace
zT-1337 Aug 15, 2024
a2aa0c0
Merge branch 'main' into feat/scm-manager-support
zT-1337 Aug 15, 2024
88af97f
Fix linting errors
zT-1337 Aug 15, 2024
743594f
Remove credentials check in initRepo
zT-1337 Aug 15, 2024
a1452b5
Merge branch 'main' into feat/scm-manager-support
zT-1337 Aug 29, 2024
8b981a2
Fix imports
zT-1337 Oct 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/usage/bot-comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ If you see anything wrong on this page, please let us know by creating a [Discus
| Dependency Dashboard | Yes | No |
zT-1337 marked this conversation as resolved.
Show resolved Hide resolved
| Grouped updates | Yes, use community-provided groups, or create your own | Yes, create [`groups`](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#groups) manually |
| Upgrades common monorepo packages at once | Yes | No |
| Officially supported platforms | GitHub, GitLab, Bitbucket, Azure, Gitea, see [full list](./index.md#supported-platforms) | GitHub only |
| Officially supported platforms | GitHub, GitLab, Bitbucket, Azure, Gitea, SCM-Manager, see [full list](./index.md#supported-platforms) | GitHub only |
| Supported languages | [List for Renovate](./modules/manager/index.md) | [List for Dependabot](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/about-dependabot-version-updates#supported-repositories-and-ecosystems) |
| Show changelogs | Yes | Yes |
| Compatibility score badges | Four badges showing: Age, Adoption, Passing, Confidence | One badge with overall compatibility score |
Expand Down
8 changes: 4 additions & 4 deletions docs/usage/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ Follow these steps to see which version the Mend Renovate app is on:

## Renovate core features not supported on all platforms

| Feature | Platforms which lack feature | See Renovate issue(s) |
| --------------------- | ----------------------------------------------- | ------------------------------------------------------------ |
| Dependency Dashboard | Azure, Bitbucket, Bitbucket Server, Gerrit | [#9592](https://github.com/renovatebot/renovate/issues/9592) |
| The Mend Renovate App | Azure, Bitbucket Server, Forgejo, Gitea, GitLab | |
| Feature | Platforms which lack feature | See Renovate issue(s) |
| --------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
| Dependency Dashboard | Azure, Bitbucket, Bitbucket Server, Gerrit, SCM-Manager | [#9592](https://github.com/renovatebot/renovate/issues/9592) |
| The Mend Renovate App | Azure, Bitbucket Server, Forgejo, Gitea, GitLab, SCM-Manager | |

## Major platform features not supported by Renovate

Expand Down
1 change: 1 addition & 0 deletions docs/usage/getting-started/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ Read the platform-specific docs to learn how to setup authentication on your pla
- [Gitea and Forgejo](../modules/platform/gitea/index.md)
- [github.com and GitHub Enterprise Server](../modules/platform/github/index.md)
- [GitLab](../modules/platform/gitlab/index.md)
- [SCM-Manager](../modules/platform/scm-manager/index.md)

### GitHub.com token for changelogs

Expand Down
11 changes: 8 additions & 3 deletions lib/config/options/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ const options: RenovateOptions[] = [
'If set to `true` then Renovate creates draft PRs, instead of normal status PRs.',
type: 'boolean',
default: false,
supportedPlatforms: ['azure', 'gitea', 'github', 'gitlab'],
supportedPlatforms: ['azure', 'gitea', 'github', 'gitlab', 'scm-manager'],
},
{
name: 'dryRun',
Expand Down Expand Up @@ -917,7 +917,12 @@ const options: RenovateOptions[] = [
description: 'Username for authentication.',
stage: 'repository',
type: 'string',
supportedPlatforms: ['azure', 'bitbucket', 'bitbucket-server'],
supportedPlatforms: [
'azure',
'bitbucket',
'bitbucket-server',
'scm-manager',
],
globalOnly: true,
},
{
Expand Down Expand Up @@ -2819,7 +2824,7 @@ const options: RenovateOptions[] = [
description:
'Overrides the default resolution for Git remote, e.g. to switch GitLab from HTTPS to SSH-based.',
type: 'string',
supportedPlatforms: ['gitlab', 'bitbucket-server'],
supportedPlatforms: ['gitlab', 'bitbucket-server', 'scm-manager'],
allowedValues: ['default', 'ssh', 'endpoint'],
default: 'default',
stage: 'repository',
Expand Down
1 change: 1 addition & 0 deletions lib/config/presets/local/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const resolvers = {
github,
gitlab,
local: null,
'scm-manager': null,
} satisfies Record<PlatformId, Resolver | null>;

export function getPreset({
Expand Down
1 change: 1 addition & 0 deletions lib/constants/platforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const PLATFORM_HOST_TYPES = [
'github',
'gitlab',
'local',
'scm-manager',
] as const;

export type PlatformId = (typeof PLATFORM_HOST_TYPES)[number];
Expand Down
2 changes: 2 additions & 0 deletions lib/modules/platform/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import * as gitea from './gitea';
import * as github from './github';
import * as gitlab from './gitlab';
import * as local from './local';
import * as scmm from './scm-manager';
import type { Platform } from './types';

const api = new Map<PlatformId, Platform>();
Expand All @@ -22,3 +23,4 @@ api.set(gitea.id, gitea);
api.set(github.id, github);
api.set(gitlab.id, gitlab);
api.set(local.id, local);
api.set(scmm.id, scmm);
Loading
Loading