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

Move from "master" to "main" as fallback for default repo branches #2057

Closed
wants to merge 4 commits into from

Conversation

6543
Copy link
Member

@6543 6543 commented Jul 28, 2023

… and make it configurable

@6543 6543 added this to the 1.1.0 milestone Jul 28, 2023
@6543 6543 added refactor delete or replace old code breaking will break existing installations if no manual action happens labels Jul 28, 2023
@6543 6543 requested a review from anbraten July 28, 2023 22:30
@6543 6543 mentioned this pull request Jul 28, 2023
@codecov-commenter

This comment was marked as off-topic.

@@ -169,6 +169,12 @@ var flags = []cli.Flag{
Usage: "The default time in minutes for a repo in minutes before a pipeline gets killed",
Value: 60,
},
&cli.StringFlag{
EnvVars: []string{"WOODPECKER_DEFAULT_REPO_BRANCH"},
Copy link
Contributor

Choose a reason for hiding this comment

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

Docs missing?

@anbraten
Copy link
Member

@6543 I don't think we need to have that fallback at all. I checked gitea, github and gitlab and they all have values for the default-branch. For bitbucket I will check how we can get that value as well.

@6543
Copy link
Member Author

6543 commented Jul 30, 2023

yes I would prefer to just relay on the forge

@6543
Copy link
Member Author

6543 commented Jul 30, 2023

Just did not do research if forges do have a change to report it empty

@6543 6543 closed this Jul 30, 2023
@6543 6543 deleted the default_branch branch July 30, 2023 15:27
@6543 6543 removed this from the 1.1.0 milestone Jul 30, 2023
@6543
Copy link
Member Author

6543 commented Jul 30, 2023

-> #2065

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking will break existing installations if no manual action happens refactor delete or replace old code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants