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

Conversation

zT-1337
Copy link

@zT-1337 zT-1337 commented Jan 26, 2024

Changes

  • Added Renovate support for the SCM-Manager
    • SCM-Manager is a repository management tool like GitHub
    • It is maintained as an open source project by the company Cloudogu
  • 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

Context

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@CLAassistant
Copy link

CLAassistant commented Jan 26, 2024

CLA assistant check
All committers have signed the CLA.

@zT-1337 zT-1337 changed the title Support for the SCM-Manager as a new platform feat/scm-manager-support: Added Support for the SCM-Manager Jan 26, 2024
@zT-1337 zT-1337 changed the title feat/scm-manager-support: Added Support for the SCM-Manager feat: Added Support for the SCM-Manager Jan 26, 2024
  - 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
@zT-1337 zT-1337 marked this pull request as ready for review January 26, 2024 10:44
docs/usage/getting-started/use-cases.md Outdated Show resolved Hide resolved
lib/modules/platform/scmm/index.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/types.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/scm-client.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/index.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/index.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/index.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/readme.md Outdated Show resolved Hide resolved
lib/config/options/index.ts Outdated Show resolved Hide resolved
docs/usage/bot-comparison.md Show resolved Hide resolved
lib/modules/platform/scmm/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/utils.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/utils.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/utils.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/utils.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scmm/utils.ts Outdated Show resolved Hide resolved
@zT-1337 zT-1337 changed the title feat: Added Support for the SCM-Manager feat: add support for the SCM-manager Feb 15, 2024
docs/usage/getting-started/running.md Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/index.ts Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/index.ts Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/mapper.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/readme.md Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/readme.md Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/readme.md Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/readme.md Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/readme.md Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
zT-1337 and others added 8 commits February 23, 2024 14:04
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
lib/modules/platform/scm-manager/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/index.spec.ts Outdated Show resolved Hide resolved
Comment on lines +282 to +298
[[], pullRequest.source, pullRequest.title, 'all', null],
[[pullRequest], 'invalid branchName', pullRequest.title, 'all', null],
[[pullRequest], pullRequest.source, 'invalid title', 'all', null],
[[pullRequest], pullRequest.source, null, 'all', renovatePr],
[[pullRequest], pullRequest.source, undefined, 'all', renovatePr],
[[pullRequest], pullRequest.source, pullRequest.title, 'all', renovatePr],
[
[pullRequest],
pullRequest.source,
pullRequest.title,
'open',
renovatePr,
],
[[pullRequest], pullRequest.source, pullRequest.title, '!open', null],
[[pullRequest], pullRequest.source, pullRequest.title, 'closed', null],
])(
'search within %p for %p, %p, %p with result %p',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code looks hard to understand and maintain.

I don't know what 'search within %p for %p, %p, %p with result %p', means here.

Maybe a maintainer can suggest improvements?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The %p is a string formatter. It injects the test parameters depending on the position of the formatter. So the first test case would be printed as search within [] for feature/test, The PullRequest, all, null. This would help to identify for which parameters the test case failed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any suggestions on how to improve this?

[[pullRequest], 'invalid branchName', null],
[[pullRequest], pullRequest.source, renovatePr],
])(
'search within %p for %p with result %p',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here with three references to %p.

lib/modules/platform/scm-manager/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/readme.md Outdated Show resolved Hide resolved
zT-1337 and others added 5 commits August 5, 2024 08:51
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
lib/modules/platform/scm-manager/index.ts Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/index.ts Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/index.ts Outdated Show resolved Hide resolved

const result = {
defaultBranch: config.defaultBranch,
isFork: false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
isFork: false,

false is the default value. no fork support on scam manager?

Copy link
Author

@zT-1337 zT-1337 Aug 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the scm-manager does not provide a support for forking.
Just deleting this line, does not work because TypeScript would complain about the missing property, because it is not defined as an optional.

export interface RepoResult {
  defaultBranch: string;
  isFork: boolean;
  repoFingerprint: string;
}

lib/modules/platform/scm-manager/index.ts Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/index.ts Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/index.ts Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/index.ts Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/index.ts Outdated Show resolved Hide resolved
lib/modules/platform/scm-manager/index.ts Outdated Show resolved Hide resolved
zT-1337 and others added 12 commits August 15, 2024 13:57
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants