#4047 Add build status to pull requests page
Closed 5 years ago by wattersmt. Opened 5 years ago by wattersmt.
Unknown source add_build_status  into  master

Add build status to pull requests page
Michael Watters • 5 years ago  
@@ -141,6 +141,33 @@

                              </span>

                          {% endfor %}

                  </div>

+ 

+                 {% if request.flags %}

+                 <div style='margin-top: 5px;'>

+                     <strong><p style='padding-top: 5px;'>Build status:</p></strong>

+                     {% for flag in request.flags %} 

+                         <a href="{{ flag.url }}" class="list-group-item list-group-item-action border-0 pl-0 pr-0">

+                             <span class="font-weight-bold">

+                               {{ flag.username }}

+                             </span>

+                             <div class="float-right">

+                                 <span class="badge {{ flag | flag2label }} font-size-09">

+                                 {{ flag.status }}

+                                 {%- if flag.percent %} ({{ flag.percent }}%) {%- endif %}

+                             </div>

+ 

+                             <small><div class="clearfix">

+                                 <span>{{ flag.comment }}</span>

+                                 <div title="{{ flag.date_created }}" class="float-right">

+                                     {{ flag.date_created | humanize }}</div>

+                                 </div>

+                             </small>

+                         </a>

+                     {% endfor %}

+                 </div>

+                 {% endif %}

+ 

+                 </span>

                  {% endif %}

              </div>

          </div>

This change allows a user to quickly see the build status for all open PRs.

@wattersmt Could you please rebase on current master so that tests can run?

rebased onto 684707f

5 years ago

@ngompa I've rebased and updated the code to only show status for PRs that have builds done.

I'm going to rework this a bit, will reopen when ready.

Pull-Request has been closed by wattersmt

5 years ago