Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions 8 lib/ci-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ export class CIHelper {
public readonly notes: GitNotes;
protected readonly mail2commit: MailCommitMapping;
protected readonly github: GitHubGlue;
protected readonly gggConfig: string;
protected commit2mailNotes: GitNotes | undefined;
protected testing: boolean;
private gggNotesUpdated: boolean;
private mail2CommitMapUpdated: boolean;

public constructor(workDir?: string, skipUpdate?: boolean) {
public constructor(workDir?: string, skipUpdate?: boolean,
gggConfig = ".") {
this.gggConfig = gggConfig;
this.workDir = workDir;
this.notes = new GitNotes(workDir);
this.gggNotesUpdated = !!skipUpdate;
Expand Down Expand Up @@ -524,7 +527,8 @@ export class CIHelper {
};

try {
const gitGitGadget = await GitGitGadget.get(".");
const gitGitGadget = await GitGitGadget.get(this.gggConfig,
this.workDir);
if (!gitGitGadget.isUserAllowed(comment.author)) {
throw new Error(`User ${
comment.author} is not permitted to use GitGitGadget`);
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.