File tree 1 file changed +4
-5
lines changed 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 96
96
(defn- get-publiccode-url [awesome-repo]
97
97
(let [{:keys [_ full_name default_branch platform]}
98
98
(get-repo-properties awesome-repo)
99
- platform-prefixes
100
99
; ; FIXME: Provide a more generic solution
101
- { " github.com " #( format " https://raw.githubusercontent. com/%s/%s/ " % 1 % 2 )
102
- " gitlab.huma-num.fr " #( format " https://gitlab.huma-num.fr /%s/-/raw/ %s/" % 1 % 2 )}]
103
- ( when-let [prefix-fn ( get platform-prefixes platform)]
104
- (str (prefix-fn full_name default_branch) " publiccode.yml" ) )))
100
+ url-format-string ( if ( = platform " github. com" )
101
+ " https://raw.githubusercontent.com /%s/%s/"
102
+ ( str " https:// " platform " /%s/-/raw/%s/ " ) )]
103
+ (str (format url-format-string full_name default_branch) " publiccode.yml" )))
105
104
106
105
(def owners-keys-mapping
107
106
{:a :location
You can’t perform that action at this time.
0 commit comments