github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/cmd/deck/template/pr.html (about)

     1  {{define "title"}}PR Status{{end}}
     2  {{define "scripts"}}
     3      <link rel="stylesheet" href="/static/labels.css?v={{deckVersion}}">
     4      <link rel="stylesheet" href="/static/dialog-polyfill.css?v={{deckVersion}}">
     5      <script type="text/javascript" src="/static/pr_bundle.min.js?v={{deckVersion}}"></script>
     6      <script type="text/javascript" src="prowjobs.js?var=allBuilds&omit=annotations,labels,decoration_config,pod_spec"></script>
     7      <script type="text/javascript" src="tide.js?var=tideData"></script>
     8  {{end}}
     9  {{define "content"}}
    10  <div id="pr-container">
    11  
    12  </div>
    13  {{end}}
    14  {{define "extra content"}}
    15  <dialog id="search-dialog" class="pr-status-dialog mdl-dialog">
    16    <h4 class="mdl-dialog__title">GitHub search query</h4>
    17    <div class="mdl-dialog__content">
    18      <p>You can query for <strong>pull requests</strong> using GitHub search syntax.</p>
    19      <p>Notice:</p>
    20      <ol>
    21        <li>
    22          <p>The search feature is used to search <strong>pull requests</strong>. We enforce this by dropping any <code>is:issue</code> or <code>type:issue</code> token in the query and will append <code>is:pr</code> to the query if <code>is:pr</code> does not exist.</p>
    23        </li>
    24        <li>
    25          <p>If you do not mention any organization or repository in the query, we will search for pull requests in repositories that use either <strong>Prow</strong> or <strong>Tide</strong>.</p>
    26        </li>
    27        <li>
    28          <p>By default, PR Status will display all of your open pull requests that are configured with either <strong>Prow</strong> or <strong>Tide</strong>.</p>
    29        </li>
    30      </ol>
    31    </div>
    32    <div class="mdl-dialog__actions">
    33      <button type="button" class="mdl-button close">Close</button>
    34    </div>
    35  </dialog>
    36  <dialog id="status-help-dialog" class="pr-status-dialog mdl-dialog">
    37    <h4 class="mdl-dialog__title"></h4>
    38    <div class="mdl-dialog__content">
    39    </div>
    40    <div class="mdl-dialog__actions">
    41      <button type="button" class="mdl-button close">Close</button>
    42    </div>
    43  </dialog>
    44  <dialog id="query-dialog" class="pr-status-dialog mdl-dialog">
    45    <h4 class="mdl-dialog__title">Query Details</h4>
    46    <div class="mdl-dialog__content">
    47      <div id="query-detail-author" class="hidden">
    48        <p class="detail-title">Author</p>
    49        <p class="detail-data"></p>
    50      </div>
    51      <div id="query-detail-milestone" class="hidden">
    52        <p class="detail-title">Milestone</p>
    53        <p class="detail-data"></p>
    54      </div>
    55      <div id="query-detail-exclude" class="hidden">
    56        <p class="detail-title">Excluded branches</p>
    57        <p class="detail-data"></p>
    58      </div>
    59      <div id="query-detail-include" class="hidden">
    60        <p class="detail-title">Included branches</p>
    61        <p class="detail-data"></p>
    62      </div>
    63      <p class="detail-title">All required labels</p>
    64      <p id="query-all-required"></p>
    65      <p class="detail-title">All forbidden labels</p>
    66      <p id="query-all-forbidden"></p>
    67    </div>
    68    <div class="mdl-dialog__actions">
    69      <button type="button" class="mdl-button close">Close</button>
    70    </div>
    71  </dialog>
    72  <dialog id="merge-help-dialog" class="pr-status-dialog mdl-dialog">
    73    <h4 class="mdl-dialog__title">How to meet merge requirements?</h4>
    74    <div class="mdl-dialog__content">
    75      <p>To meet merge requirements, all PR's labels need to satisfy at least one of queries configured for the repo that the PR belongs to.</p>
    76      <p>The table below shows all queries for the PR's repo. Each row of the table below shows 2 parts of a query: <strong>required</strong> labels <strong>missing</strong> from the PR and <strong>forbidden</strong> labels that the PR <strong>has</strong>.</p>
    77      <p>The PR would be considered as meeting merge requirements once it <strong>obtains all required labels</strong> and <strong>removes all forbidden labels</strong> for at least one row.</p>
    78      <p>For more information, see: <a href="https://github.com/kubernetes/community/tree/master/contributors/guide">Kubernetes Contributor Guide</a> & <a href="/command-help">Command Help Page</a></p>
    79    </div>
    80    <div class="mdl-dialog__actions">
    81      <button type="button" class="mdl-button close">Close</button>
    82    </div>
    83  </dialog>
    84  {{end}}
    85  
    86  {{template "page" (settings mobileFriendly lightMode "pr" .)}}