Skip to content

Commit

Permalink
web: Add support for strict title matching
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed Jul 23, 2022
1 parent f902b98 commit ad3f7bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web/src/giscus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ export class GiscusWidget extends LitElement {
@property({ reflect: true })
term?: string;

/**
* Use strict title matching.
*/
@property({ reflect: true })
strict: BooleanString = '0';

/**
* Enable reactions to the main post of the discussion.
*/
Expand Down Expand Up @@ -212,6 +218,7 @@ export class GiscusWidget extends LitElement {
categoryId: this.categoryId,
term: this.getTerm(),
number: +this.getNumber(),
strict: this.strict === '1',
reactionsEnabled: this.reactionsEnabled === '1',
emitMetadata: this.emitMetadata === '1',
inputPosition: this.inputPosition,
Expand Down Expand Up @@ -384,6 +391,7 @@ interface ISetConfigMessage {
term?: string;
description?: string;
number?: number;
strict?: boolean;
reactionsEnabled?: boolean;
emitMetadata?: boolean;
inputPosition?: InputPosition;
Expand Down

0 comments on commit ad3f7bc

Please sign in to comment.