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: Add Gitea support #744

Merged
merged 80 commits into from
Aug 9, 2022
Merged

feat: Add Gitea support #744

merged 80 commits into from
Aug 9, 2022

Conversation

olblak
Copy link
Member

@olblak olblak commented Jun 29, 2022

Add gitea support

Fix #737 #523

  • Add new resource gitea/release to interact with Gitea releases, where:
    • [source] can retrieve a release
    • [condition] can test if a release exist
    • [target] can create a release
  • Add new resource gitea/branch to interact with Gitea branches via the API
    • [source] can retrieve a branch
    • [condition] can test if a branch exists
    • [target] creating branches won't be supported in this PR
  • Add new resource gitea/tag to interact with Gitea tags via the API
    • [source] can retrieve a tag
    • [condition] can test if a tag exists
    • [target] creating tags via API won't be supported in this PR
  • Add new resource pullrequest resourcegitea to interact with Gitea pullrequest via the API
  • Documentation

Test

To test this pull request, you can run the following commands:

go build -o ./bin/updatecli . && ./bin/updatecli apply --config e2e/updatecli.d/success.d/gitea/

Additional Information

To avoid collision between gitea and github scm temporary directory, it now contains the service.
So github will clone repositories in /tmp/updatecli/github/... and gitea in /tmp/updatecli/gitea/...

Tradeoff

Now that I am implementing the integration with a second git service, I realize that having a specific scm resource per git service add no additional value.

Potential improvement

Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
olblak added 18 commits July 1, 2022 08:31
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Gitea scm initialisation

Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
@olblak olblak marked this pull request as ready for review July 1, 2022 12:44
@olblak olblak added this to the 0.30.0 milestone Jul 25, 2022
olblak and others added 17 commits July 26, 2022 09:22
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scm-gittea
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Feature Request: Add SCM gittea support
2 participants