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

Fetch branches (or CI_REPO_DEFAULT_BRANCH) #193

Open
johanvdw opened this issue Dec 24, 2024 · 1 comment
Open

Fetch branches (or CI_REPO_DEFAULT_BRANCH) #193

johanvdw opened this issue Dec 24, 2024 · 1 comment

Comments

@johanvdw
Copy link
Contributor

johanvdw commented Dec 24, 2024

I previously had a small drone plugin (code here) to compare what would be the size difference between a new commit and the default branch.
To enable that calculation, the plugin would also fetch the original branch and then compare sizes.
When moving to woodpecker, this no longer works because netrc is not injected in normal steps anymore.
I think it would be nice to be able to also fetch the default branch, or all branches similar to how tags can be fetched.

I can probably write a PR for this, but I'd first like to confirm I didn't miss an easy option to do the same thing already.

@johanvdw johanvdw changed the title Fetch branches (( Fetch branches (or CI_REPO_DEFAULT_BRANCH) Dec 24, 2024
@qwerty287
Copy link
Contributor

In v3 it will be possible to define plugins per repo that get the netrc creds as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants