Add function to fetch a single repository + Fix json directives