Skip to content

feat: create generic git client interface#1418

Merged
tisutisu merged 1 commit into
konflux-ci:mainfrom
tnevrlka:refactor-git-clients
Oct 16, 2024
Merged

feat: create generic git client interface#1418
tisutisu merged 1 commit into
konflux-ci:mainfrom
tnevrlka:refactor-git-clients

Conversation

@tnevrlka

@tnevrlka tnevrlka commented Oct 9, 2024

Copy link
Copy Markdown
Contributor

Description

  • The common controller currently contains Github and Gitlab clients
  • Their functions differ
  • Make the clients implement a provider-agnostic Git client interface so that provider-agnostic functions can be used in tests

Issue ticket number and link

STONEBLD-2389

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

This change is not being tested in this particular revision. I've used the functionality created in this pull request in build tests, please see the following PRs: #1419, #1421

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
  • I have updated labels (if needed)

@openshift-ci

openshift-ci Bot commented Oct 9, 2024

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@tnevrlka tnevrlka force-pushed the refactor-git-clients branch from c4cc3ed to cd380d7 Compare October 9, 2024 15:03
@github-actions github-actions Bot added 5-10 min and removed 1-5 min labels Oct 9, 2024
@tnevrlka tnevrlka force-pushed the refactor-git-clients branch from cd380d7 to d841258 Compare October 9, 2024 15:20
@tnevrlka tnevrlka marked this pull request as ready for review October 9, 2024 15:31
@openshift-ci openshift-ci Bot requested review from dheerajodha and tisutisu October 9, 2024 15:31
Comment thread pkg/utils/build/git.go Outdated
@tnevrlka tnevrlka force-pushed the refactor-git-clients branch from d841258 to 71d43ff Compare October 15, 2024 13:22
- The common controller currently contains Github and Gitlab clients
- Their functions differ
- Make the clients implement a provider-agnostic Git client interface so that provider-agnostic functions can be used in tests
@tnevrlka tnevrlka force-pushed the refactor-git-clients branch from 71d43ff to 8afa6a8 Compare October 15, 2024 13:24
@mmorhun

mmorhun commented Oct 16, 2024

Copy link
Copy Markdown
Member

/lgtm
/approve

@tisutisu

Copy link
Copy Markdown
Contributor

/approve

@openshift-ci

openshift-ci Bot commented Oct 16, 2024

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flacatus, mmorhun, tisutisu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tisutisu tisutisu merged commit 7f39378 into konflux-ci:main Oct 16, 2024
tnevrlka added a commit to tnevrlka/e2e-tests that referenced this pull request Oct 17, 2024
- The common controller currently contains Github and Gitlab clients
- Their functions differ
- Make the clients implement a provider-agnostic Git client interface so that provider-agnostic functions can be used in tests
# Conflicts:
#	pkg/clients/common/controller.go
#	pkg/clients/git/git.go
#	pkg/clients/git/github.go
#	pkg/clients/git/gitlab.go
#	pkg/utils/build/git.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants