public function postPackagesChangelog(PackageChangelog $request)
    {
        $changelog_uri = $request->input('uri');
        $changelog_body = $request->input('body');
        $changelog_tag = $request->input('tag');

        if (! is_null($changelog_body) && ! is_null($changelog_tag))
            return $this->getChangelogFromApi($changelog_uri, $changelog_body, $changelog_tag);

        return $this->getChangelogFromFile($changelog_uri);
    }