function getPushedBy()

in src/BuildHistoryDisplay.js [715:729]


      function getPushedBy(build) {
        const action = build.actions.find(
          (action) => action._class === "hudson.model.CauseAction"
        );
        if (action === undefined) return "(unknown)";
        const cause = action.causes.find(
          (cause) => cause._class === "com.cloudbees.jenkins.GitHubPushCause"
        );
        if (cause === undefined) return "";
        const match = cause.shortDescription.match(
          /Started by GitHub push by (.+)/
        );
        if (match === null) return cause.shortDescription;
        return match[1];
      }