Browse Source

Add explicit mention to GitLab, fixes #948

Jordi Boggiano 6 years ago
parent
commit
033842123b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/Packagist/WebBundle/Resources/views/About/about.html.twig

+ 6 - 0
src/Packagist/WebBundle/Resources/views/About/about.html.twig

@@ -118,6 +118,11 @@ v2.0.4-p1</code></pre>
         </section>
 
         <div class="clearfix"></div>
+        <section class="col-md-6">
+            <h3>GitLab Service</h3>
+            <p>To enable the GitLab service integration, go to your GitLab repository, open the Settings > Integrations page from the menu. Search for Packagist in the list of Project Services. Check the "Active" box, enter your packagist.org username and API token. Save your changes and you're done.</p>
+        </section>
+
         <section class="col-md-6">
             <h3>Manual hook setup</h3>
             <p>If you do not use Bitbucket or GitHub there is a generic endpoint you can call manually from a git post-receive hook or similar. You have to do a <code>POST</code> request to <code>https://packagist.org/api/update-package?username={{ app.user.username|default('USERNAME') }}&amp;apiToken=API_TOKEN</code> with a request body looking like this: <code>{"repository":{"url":"PACKAGIST_PACKAGE_URL"}}</code></p>
@@ -125,6 +130,7 @@ v2.0.4-p1</code></pre>
             <pre>curl -XPOST -H'content-type:application/json' 'https://packagist.org/api/update-package?username={{ app.user.username|default('USERNAME') }}&amp;apiToken=API_TOKEN' -d'{"repository":{"url":"PACKAGIST_PACKAGE_URL"}}'</pre>
         </section>
 
+        <div class="clearfix"></div>
         <section class="col-md-6">
             <h3>API Token</h3>
             <p>You can find your API token on <a href="{{ path('fos_user_profile_show') }}">your profile page</a>.</p>