-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
base: main
Are you sure you want to change the base?
Conversation
- 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
4a0f4a0
to
e3780f7
Compare
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>
[[], 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', |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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
.
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>
|
||
const result = { | ||
defaultBranch: config.defaultBranch, | ||
isFork: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isFork: false, |
false is the default value. no fork support on scam manager?
There was a problem hiding this comment.
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;
}
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>
Changes
Context
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: