Github Issue to Originator

Assigns github issues to originator

Version vom 21.08.2023. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Github Issue to Originator
// @match       https://github.com/*/*/issues/*
// @require     https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js
// @grant       none
// @version     1.0.1
// @author      karthick-oc
// @description Assigns github issues to originator
// @namespace https://greasyfork.org/users/1153239
// ==/UserScript==

(function() {
    'use strict';

    show_originator_option();

    function show_originator_option() {
        let _author = document.querySelector(".author").innerHTML;
        console.log(_author);
        $('#assignees-select-menu').parent().before('<a id="orginator-btn" href="#">Assign to originator</a>');
        $('#orginator-btn').click(function() {
            $('#assignees-select-menu summary').click();
            $('#assignee-filter-field').val(_author);
            $('[data-filterable-for="assignee-filter-field"] label')[0].click();
        });
    }

  $("body").on( "mousemove", function(event) {
      if ($('#orginator-btn').length == 0)
      {
        show_originator_option();
      }
    });

})();