-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Background
We changed the edit button to point to the editable links in GitHub. It used to be:
https://github.com/canonical/snapcraft/blob/8.11.1/docs/index.rst
For projects where versions were based on tags, the user could see the state of the repo at that tag. While it wasn't ideal, because there was no editable interface, at least the user could see the code.
It's since become:
https://github.com/canonical/snapcraft/edit/8.11.1/docs/index.rst
Now the button fails critically because the link is a 404.
Request
Tag-based versions are the most common case for semantically-versioned projects, so we must support them.
- Make the edit button detect the project's tags.
- When the project has tags, point to a branch (usually
hotfix-semver) where the editing interface is available.
This will likely require some manual configuration where the project maps hotfix branch semantics to tags, because there's no way to guarantee that a tag has an available branch associated with it.