Making WordPress.org


Ignore:
Timestamp:
07/16/2020 01:38:46 AM (6 years ago)
Author:
dd32
Message:

Trac: PRs: Transform Github comments to Trac syntax in addition to the PR description.
This also converts links and images to Trac syntax.

Fixes #5308.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/dotorg/trac/pr/webhook.php

    r9900 r10072  
    8282                        $trac = get_trac_instance( $pr_data->trac_ticket[0] );
    8383
    84                         $pr_description = format_pr_desc_for_trac_comment( $pr_data );
     84                        $pr_description = format_pr_desc_for_trac_comment( $pr_data->body );
    8585                        $attributes     = [];
    8686
     
    181181                        $payload->comment->html_url,
    182182                        'PR #' . $payload->issue->number,
    183                         $payload->comment->body
     183                        format_github_content_for_trac_comment( $payload->comment->body )
    184184                );
    185185
Note: See TracChangeset for help on using the changeset viewer.