bradleyfalzon / gopherci-web

website for gopherci.io

Home Page:https://gopherci.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken link for organization installations.

dmitshur opened this issue · comments

<a href="https://github.com/settings/installations/{{ .InstallationID }}">{{ .InstallationID }}</a>

I believe that for organizations, the URL pattern should instead be equivalent to this:

{{if eq .Type "Personal"}}
    https://github.com/settings/installations/{{ .InstallationID }}
{{else if eq .Type "Organisation"}}
    https://github.com/organizations/{{ .Name }}/settings/installations/{{ .InstallationID }}
{{end}}

Otherwise you get a 404 for organization installation links.