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: Gitea client add create file function #1547
feat: Gitea client add create file function #1547
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/goreleaser/goreleaser/1pzsx4glh |
b2e13d8
to
35609d8
Compare
Codecov Report
@@ Coverage Diff @@
## master #1547 +/- ##
==========================================
- Coverage 81.76% 81.73% -0.04%
==========================================
Files 73 73
Lines 3834 3866 +32
==========================================
+ Hits 3135 3160 +25
- Misses 574 580 +6
- Partials 125 126 +1
Continue to review full report at Codecov.
|
@caarlos0 I removed dummy test and add a real one now CI works only problem is codecov now thinks this pull is bad :/ |
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.
Thanks for the PR, this looks like a good start. However there's some more work that would need to be done in order to actually support gitea in Homebrew and Scoop.
Specifically the brews
config section currently only supports GitHub and GitLab:
goreleaser/pkg/config/config.go
Lines 81 to 82 in c31cc85
GitHub Repo `yaml:",omitempty"` | |
GitLab Repo `yaml:",omitempty"` |
I think the best way forward would be refactoring the Homebrew packaging/publishing so that it is more aligned with Scoop, which is more git-host agnostic:
goreleaser/pkg/config/config.go
Line 105 in c31cc85
Bucket Repo `yaml:",omitempty"` |
That may require planning some deprecations though.
@caarlos0 What are your thoughts on the deprecation?
@radeksimko avter you have looked at the commits, If I should squash them just tell |
I think it should be fine, yes... |
@radeksimko @caarlos0 current state? |
as @radeksimko mentioned, this pr alone does nothing... need the changes on brew/scoop pipe as well... |
hmm ok feel free to cherry-pick this :) |
Update:
brew tap mavogel/gitea-tools ssh://git@localhost:222/mavogel/homebrew-tap.git
brew install mavogel/gitea-tools/release-testing So happy to have it successfully tested in the wild for brews 🎉 |
@mavogel pleace do :) - I'm happy to follow up on that specific issue on a new created issue in the sdk repository :) |
This comment has been minimized.
This comment has been minimized.
@radeksimko added |
@caarlos0 do you squash-merge or should i swash it? |
f5c1390
to
2b9a42c
Compare
@caarlos0 thanks for the advice - done |
@6543 : there you go: https://gitea.com/gitea/go-sdk/issues/459 @caarlos0 : for the testing setup there was a lot of manual work to do until I discovered this recent setup of gitea. IMHO it would make sense to add this and some additional steps (like homebrew-tap repo creation) to the docs. For |
you mean as documentation? I think it makes sense to put somewhere, or at least link to it somewhere, yes 🤔 |
something missing? |
Thanks everyone |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
implement for brew and scoop support for Gitea-hosted repos