Making WordPress.org

Changeset 9695 for sites/trunk


Ignore:
Timestamp:
04/03/2020 04:55:32 AM (6 years ago)
Author:
dd32
Message:

Trac: Enable GitHub PR support for Meta Trac.

See https://github.com/WordPress/wordpress.org/pull/4.
See #4903.

Location:
sites/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk

    • Property svn:global-ignores set to
      .gitignore
      .git
  • sites/trunk/api.wordpress.org/public_html/dotorg/trac/pr/functions.php

    r9564 r9695  
    177177        // For now, we assume everything is destined for the Core Trac.
    178178        switch ( $pr->base->repo->full_name ) {
     179                case 'WordPress/wordpress.org':
     180                        $trac = 'meta';
     181                        break;
    179182                case 'WordPress/wordpress-develop':
    180183                default:
  • sites/trunk/trac.wordpress.org/templates/site.html

    r9629 r9695  
    55
    66<?python
    7         scripts_version = '139'
     7        scripts_version = '140'
    88        project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0]
    99        wporg_endpoint = 'https://make.wordpress.org/' + project_slug + '/'
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

    r9628 r9695  
    15501550                                authenticated = !! ( wpTracCurrentUser && wpTracCurrentUser !== "anonymous" ),
    15511551                                trac = false, ticket = 0,
    1552                                 container;
     1552                                primaryGitRepo, primaryGitRepoDesc, container;
    15531553
    15541554                        function init() {
     
    15561556                                if ( $body.hasClass( 'core' ) ) {
    15571557                                        trac = 'core';
     1558                                        primaryGitRepo = 'WordPress/wordpress-develop';
     1559                                        primaryGitRepoDesc = 'WordPress GitHub mirror';
     1560                                } else if ( $body.hasClass( 'meta' ) ) {
     1561                                        trac = 'meta';
     1562                                        primaryGitRepo = 'WordPress/wordpress.org';
     1563                                        primaryGitRepoDesc = 'WordPress.org Meta GitHub mirror';
    15581564                                }
    15591565
     
    15961602                                        } else {
    15971603                                                // Change the loading placeholder
    1598                                                 prContainer.find( '.loading div' ).html( 'To link a Pull Request to this ticket, create a new Pull Request in the <a href="https://github.com/WordPress/wordpress-develop">WordPress GitHub mirror</a> and include this ticket’s URL in the description.' );
     1604                                                prContainer.find( '.loading div' ).html( 'To link a Pull Request to this ticket, create a new Pull Request in the <a href="https://github.com/' + primaryGitRepo + '">' + primaryGitRepoDesc + '</a> and include this ticket’s URL in the description.' );
    15991605                                        }
    16001606                                });
Note: See TracChangeset for help on using the changeset viewer.