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

More refactorings #1099

Merged
merged 9 commits into from
Dec 12, 2024
Merged

More refactorings #1099

merged 9 commits into from
Dec 12, 2024

Conversation

ccwienk
Copy link
Member

@ccwienk ccwienk commented Dec 11, 2024

some more refactorings towards making gitutil/github/release_notes packages less interwoven w/ gardener-cicd (more to follow)

As an intermediate step towards resolving dependencies from
release_notes package towards gardener-cicd / concourse-template,
pull-up nested lookups for gitutil-instances, and instead pass them in
as parameter.

GitUtil still holds a reference to `model.github.GitHubCfg`. This will
be resolved in a subsequent change.
@gardener-robot gardener-robot added needs/review Needs review size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Dec 11, 2024
@ccwienk ccwienk requested a review from TuanAnh17N December 11, 2024 10:54
@gardener-robot gardener-robot added the size/l Size of pull request is large (see gardener-robot robot/bots/size.py) label Dec 12, 2024
@gardener-robot gardener-robot added needs/second-opinion Needs second review by someone else and removed size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Dec 12, 2024
Copy link
Member

@zkdev zkdev left a comment

Choose a reason for hiding this comment

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

just a nit, overall lgtm

gitutil.py Show resolved Hide resolved
Define new type `GitCfg`, which specifies minimal cfg (username +
email address, remote-url, credentials) for retrieving and / or
interacting with a git-repository with a remote.

In pipeline-template / code intended to be run within Gardener-CICD,
derive such GitCfgs from GitHubConfig.

This change will ultimately allow creation of GitHelpers also in
environments outside of Gardener-CICD (for example GitHub-Actions).

As GitUtil is used by `release_notes`, which is planned to be re-used in
GitHub-Actions, this is a preliminary step towards that.
@ccwienk ccwienk requested a review from zkdev December 12, 2024 19:26
@ccwienk ccwienk merged commit dae77bd into master Dec 12, 2024
12 checks passed
@ccwienk ccwienk deleted the more-refactorings branch December 12, 2024 19:31
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/changes Needs (more) changes needs/review Needs review needs/second-opinion Needs second review by someone else size/l Size of pull request is large (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants