mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
UserAgent tweaks
This commit is contained in:
parent
546c5ec4b6
commit
7049802750
@ -6,11 +6,10 @@ import * as GitHubWebhookTypes from "@octokit/webhooks-types";
|
||||
import { GitHubOAuthTokenResponse, InstallationDataType } from "./Types";
|
||||
import axios from "axios";
|
||||
import qs from "querystring";
|
||||
import UserAgent from "../UserAgent";
|
||||
|
||||
const log = new LogWrapper("GithubInstance");
|
||||
|
||||
const USER_AGENT = "matrix-hookshot v0.0.1";
|
||||
|
||||
interface Installation {
|
||||
account: {
|
||||
login?: string;
|
||||
@ -44,7 +43,7 @@ export class GithubInstance {
|
||||
public static createUserOctokit(token: string) {
|
||||
return new Octokit({
|
||||
auth: token,
|
||||
userAgent: USER_AGENT,
|
||||
userAgent: UserAgent,
|
||||
});
|
||||
}
|
||||
|
||||
@ -85,7 +84,7 @@ export class GithubInstance {
|
||||
privateKey: this.privateKey,
|
||||
installationId,
|
||||
},
|
||||
userAgent: USER_AGENT,
|
||||
userAgent: UserAgent,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,6 @@ import { GithubInstance } from "../Github/GithubInstance";
|
||||
import LogWrapper from "../LogWrapper";
|
||||
import { NotificationWatcherTask } from "./NotificationWatcherTask";
|
||||
import { RequestError } from "@octokit/request-error";
|
||||
import { OctokitResponse } from "@octokit/types";
|
||||
import Metrics from "../Metrics";
|
||||
const log = new LogWrapper("GitHubWatcher");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user