inveniosoftware / inveniosoftware/invenio-github

Create Citation.cff points to no longer default branch "MASTER"

Open
#92 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Browser & OS: Chrome96: Windows 10

## Describe the bug
A clear and concise description of what the bug is.
New github repositories does not have the MASTER branch, rather MAIN.
The badge for the "Create CITATION.rff" on github repository settings still points to the MASTER-branch, giving a not-found condition
## Steps to Reproduce
1. Visit Settings for github repository without an attached Citation.cff-file ( my case: https://zenodo.org/account/settings/github/repository/bjartelund/PsychOrNot#)
2. Attempt to create one by pressing the "Create CITATION.cff" badge leads to not found page (404) on GitHub.
![zenodo404-github](https://user-images.githubusercontent.com/13436038/146360261-cef906cd-71b2-4f10-bf30-c7df0f1fcc09.png)

I tried skimming through the github page to make a patch, but could not find this code.

## Expected behavior
Should lead to the create new file page of github

## Additional context
The problem is in the hardcoded `master` in [this line](https://github.com/inveniosoftware/invenio-github/blob/master/invenio_github/templates/invenio_github/settings/view.html#L176).

Kudos to @bjartelund

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.