Skip to content

Detect default branch #301

@5ouma

Description

@5ouma

✏️ Describe the feature

Currently, I have hardcoded the default branch as "master" since the previous GitHub default branch is "master" and it will be redirected to the default branch.
However, if the master branch exists and it's not the default branch, the behavior is incorrect.

https://github.com/5ouma/reproxy/blob/main/src/libs/redirect.ts#L70-L78

✔︎ Confirm these checks

🗒️ Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions