Skip to content

Add links back to bugs.python.org #28

Closed

Description

@brettcannon

When the bpo-\d+ pattern is picked up in a comment we should rewrite it to be linked to bugs.python.org appropriately. And if the link is detected in the title then a link should be added as a comment on the PR.

Activity

  1. soltysh commented on Feb 24, 2017

    @soltysh
    Collaborator

    Sign me up for this :)

  2. brettcannon commented on Feb 24, 2017

    @brettcannon
    MemberAuthor

    And FYI we have a PSF account on Heroku so I would just write any bot to be hosted there to make writing this easier. (I also wonder if there isn't a bot somewhere that does this already? Quite possibly not but a quick Google search wouldn't hurt.)

  3. soltysh commented on Feb 25, 2017

    @soltysh
    Collaborator

    Roger that.

  4. jaraco commented on Mar 25, 2017

    @jaraco
    Member

    Is there currently any art on which this effort could be based or does it need to be engineered from scratch?

  5. jaraco commented on Mar 25, 2017

    @jaraco
    Member

    Until we have a service that can re-write the source, I've developed this greasemonkey script that will inject links:

    // ==UserScript==
    // @name Link bugs.python.org
    // @include https://github.com/python/*
    // @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
    // @grant none
    // ==/UserScript==
    
    $(".comment-body").html(
        function () {
           return $(this).html().replace(/(bpo-(\d+))/, '<a href="https://bugs.python.org/issue$2">$1</a>');
        }
    );
    
  6. brettcannon commented on Mar 25, 2017

    @brettcannon
    MemberAuthor

    @jaraco it doesn't need to be from scratch, it just needs to be easily deployed and maintained.

    I should also mention that there's a possibility of making this a status check where the "Details" link would point to the issue itself (it's an idea I have in the back of my head that I'm still thinking through).

  7. ezio-melotti commented on Mar 29, 2017

    @ezio-melotti
    Member
  8. brettcannon commented on Apr 10, 2017

    @brettcannon
    MemberAuthor

    Bedevere is now doing this indirectly through a status check for issue numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions