浏览代码

Add explicit mention to GitLab, fixes #948

Jordi Boggiano 6 年之前
父节点
当前提交
033842123b
共有 1 个文件被更改,包括 6 次插入0 次删除
  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>