Skip to content

Can't create wiki with repo using main branch #238

@lambchr

Description

@lambchr

We have enjoyed using your tool to release our TF modules, it has been working really well! We tried adding it to a new repo in our org but it uses main instead of master as a branch name. This threw the following error:

Error: Command failed: /usr/bin/git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/master*:refs/remotes/origin/master* +refs/tags/master*:refs/tags/master*

These seem to be hardcoded in various places in the src/wiki.ts file. We worked around the issue by using the --disable-wiki flag.

Could you add something like a --target-branch flag that defaults to master? This would ensure backwards compatibility but allow us to specify the main branch instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions