Skip to content

Commit

Permalink
- Added Renovate support for the [SCM-Manager](https://scm-manager.org/)
Browse files Browse the repository at this point in the history
  - SCM-Manager is a repository management tool like GitHub
  - It is maintained as an open source project by the company [Cloudogu](https://cloudogu.com/en/)
- The SCM-Manager support is not feature complete yet, features like auto merging are still missing
- The SCM-Manager also got added to the documentation as another platform

author  Thomas Zerr <thomas.zerr@cloudogu.com> 1690877165 +0200
committer Eduard Heimbuch <eduard.heimbuch@cloudogu.com> 1706264263 +0100
  • Loading branch information
eheimbuch authored and zT-1337 committed Jan 26, 2024
1 parent 971553b commit e3780f7
Show file tree
Hide file tree
Showing 22 changed files with 1,802 additions and 11 deletions.
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 |
| 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 @@ -38,10 +38,10 @@ Major releases of Renovate are held back until the maintainers are reasonably ce

## Renovate core features not supported on all platforms

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

### GitHub.com token for changelogs

Expand Down
4 changes: 2 additions & 2 deletions docs/usage/getting-started/use-cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Example package files include:
Renovate:

1. Scans your repositories to find package files and their dependencies
1. Checks if any newer versions exist
1. Raises Pull Requests for available updates
2. Checks if any newer versions exist
3. Raises Pull Requests for available updates

The Pull Requests patch the package files directly, and include changelogs for the newer versions (if they are available).

Expand Down
6 changes: 3 additions & 3 deletions lib/config/options/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,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', 'scmm'],
},
{
name: 'dryRun',
Expand Down Expand Up @@ -780,7 +780,7 @@ const options: RenovateOptions[] = [
description: 'Username for authentication.',
stage: 'repository',
type: 'string',
supportedPlatforms: ['azure', 'bitbucket', 'bitbucket-server'],
supportedPlatforms: ['azure', 'bitbucket', 'bitbucket-server', 'scmm'],
globalOnly: true,
},
{
Expand Down Expand Up @@ -2729,7 +2729,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', 'scmm'],
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,
scmm: null,
} satisfies Record<PlatformId, Resolver | null>;

export function getPreset({
Expand Down
3 changes: 2 additions & 1 deletion lib/constants/platforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export type PlatformId =
| 'gitea'
| 'github'
| 'gitlab'
| 'local';
| 'local'
| 'scmm';

export const GITEA_API_USING_HOST_TYPES = [
'gitea',
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 './scmm';
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);
1 change: 1 addition & 0 deletions lib/modules/platform/scm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ platformScmImpls.set('gitea', DefaultGitScm);
platformScmImpls.set('github', GithubScm);
platformScmImpls.set('gitlab', DefaultGitScm);
platformScmImpls.set('local', LocalFs);
platformScmImpls.set('scmm', DefaultGitScm);

let _scm: PlatformScm | undefined;

Expand Down
Loading

0 comments on commit e3780f7

Please sign in to comment.