Browse Source

Remove warnings about old github hooks

Jordi Boggiano 5 years ago
parent
commit
ff3b9c1b29

+ 1 - 1
src/Packagist/WebBundle/Resources/public/css/main.css

@@ -1132,7 +1132,7 @@ input:focus:invalid:focus, textarea:focus:invalid:focus, select:focus:invalid:fo
 .package .last-update .auto-update-success {
     color: #69AD21;
 }
-.package .last-update .auto-update-alert {
+.package .last-update .auto-update-danger {
     color: #cd3729;
 }
 

+ 1 - 1
src/Packagist/WebBundle/Resources/views/package/version_list.html.twig

@@ -27,7 +27,7 @@
 
     {% if showUpdated is defined and showUpdated and package.getUpdatedAt() %}
         <div class="last-update">
-            {% if ("github.com" in package.repository and package.getAutoUpdated() == 1) or not package.isAutoUpdated() %}
+            {% if not package.isAutoUpdated() %}
                 <p class="auto-update-danger">This package is <strong>not</strong> auto-updated.</p>
             {% else %}
                 <p class="auto-update-success">This package is auto-updated.</p>

+ 0 - 3
src/Packagist/WebBundle/Resources/views/package/view_package.html.twig

@@ -59,9 +59,6 @@
                             <div class="alert alert-danger">This package is not auto-updated. Please set up the <a href="{{ path('about') }}#how-to-update-packages">BitBucket Webhooks</a> for Packagist so that it gets updated whenever you push!</div>
                         {% endif %}
                     {% endif %}
-                    {% if "github.com" in package.repository and package.getAutoUpdated() == 1 and app.user and (package.maintainers.contains(app.user) or is_granted('ROLE_UPDATE_PACKAGES')) %}
-                        <div class="alert alert-danger">This package is using the legacy service integration that GitHub deprecated in January 2019 and <strong>will not auto-update anymore</strong>. Please <strong>set up the new <a href="{{ path('about') }}#how-to-update-packages">GitHub Hook</a></strong> for Packagist so that it starts updating again.</div>
-                    {% endif %}
 
                     {% if package.abandoned %}
                         <div class="alert alert-danger">