diff --git a/README.md b/README.md index 4bca0428..103231f4 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Be sure to review all `*.test.*` files for implementation details. } }, "wordValue": 0.1, - "formattingMultiplier": 1 + "multiplier": 1 }, "reward": 0.8, "relevance": 0.5 @@ -42,11 +42,11 @@ Be sure to review all `*.test.*` files for implementation details. } ``` -Reward formula: `((count * wordValue) * (score * formattingMultiplier) * n) * relevance + task.reward = total` +Reward formula: `((count * wordValue) * (score * multiplier) * n) * relevance + task.reward = total` ## Plugin configuration -Here is a possible valid configuration to enable this plugin. See [these files](./src/configuration) for more details. +Here is a possible valid configuration to enable this plugin. See [these files](./src/configuration/) for more details. ```yaml plugin: ubiquibot/conversation-rewards @@ -61,70 +61,91 @@ with: requirePriceLabel: true contentEvaluator: multipliers: - - select: [ISSUE_SPECIFICATION] + - role: [ISSUE_SPECIFICATION] relevance: 1 - - select: [PULL_AUTHOR] + - role: [PULL_AUTHOR] relevance: 1 - - select: [PULL_ASSIGNEE] + - role: [PULL_ASSIGNEE] relevance: 1 - - select: [PULL_COLLABORATOR] + - role: [PULL_COLLABORATOR] relevance: 1 - - select: [PULL_CONTRIBUTOR] + - role: [PULL_CONTRIBUTOR] relevance: 1 userExtractor: redeemTask: true - dataPurge: + dataPurge: {} formattingEvaluator: - scores: - br: 0 - code: 1 - p: 1 - em: 0 - img: 0 - strong: 0 - blockquote: 0 - h1: 1 - h2: 1 - h3: 1 - h4: 1 - h5: 1 - h6: 1 - a: 1 - li: 1 - td: 1 - hr: 0 - multipliers: - - select: [ISSUE_SPECIFICATION] - formattingMultiplier: 1 - wordValue: 0.1 - - select: [ISSUE_AUTHOR] - formattingMultiplier: 1 - wordValue: 0.2 - - select: [ISSUE_ASSIGNEE] - formattingMultiplier: 0 - wordValue: 0 - - select: [ISSUE_COLLABORATOR] - formattingMultiplier: 1 - wordValue: 0.1 - - select: [ISSUE_CONTRIBUTOR] - formattingMultiplier: 0.25 - wordValue: 0.1 - - select: [PULL_SPECIFICATION] - formattingMultiplier: 0 - wordValue: 0 - - select: [PULL_AUTHOR] - formattingMultiplier: 2 - wordValue: 0.2 - - select: [PULL_ASSIGNEE] - formattingMultiplier: 1 - wordValue: 0.1 - - select: [PULL_COLLABORATOR] - formattingMultiplier: 1 - wordValue: 0.1 - - select: [PULL_CONTRIBUTOR] - formattingMultiplier: 0.25 - wordValue: 0.1 - permitGeneration: + multipliers: + - role: [ ISSUE_SPECIFICATION ] + multiplier: 1 + rewards: + regex: + "\\b\\w+\\b": 0.1 + scores: # Scores can be set for each item differently + br: 0 + code: 1 + p: 1 + em: 0 + img: 0 + strong: 0 + blockquote: 0 + h1: 1 + h2: 1 + h3: 1 + h4: 1 + h5: 1 + h6: 1 + a: 1 + li: 1 + ul: 1 + td: 1 + hr: 0 + - role: [ISSUE_AUTHOR] + multiplier: 1 + rewards: + regex: + "\\b\\w+\\b": 0.2 + - role: [ISSUE_ASSIGNEE] + multiplier: 0 + rewards: + regex: + "\\b\\w+\\b": 0 + - role: [ISSUE_COLLABORATOR] + multiplier: 1 + rewards: + regex: + "\\b\\w+\\b": 0.1 + - role: [ISSUE_CONTRIBUTOR] + multiplier: 0.25 + rewards: + regex: + "\\b\\w+\\b": 0.1 + - role: [PULL_SPECIFICATION] + multiplier: 0 + rewards: + regex: + "\\b\\w+\\b": 0 + - role: [PULL_AUTHOR] + multiplier: 2 + rewards: + regex: + "\\b\\w+\\b": 0.2 + - role: [PULL_ASSIGNEE] + multiplier: 1 + rewards: + regex: + "\\b\\w+\\b": 0.1 + - role: [PULL_COLLABORATOR] + multiplier: 1 + rewards: + regex: + "\\b\\w+\\b": 0.1 + - role: [PULL_CONTRIBUTOR] + multiplier: 0.25 + rewards: + regex: + "\\b\\w+\\b": 0.1 + permitGeneration: {} githubComment: post: true debug: false diff --git a/package.json b/package.json index 91ff64b3..5cccbc73 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,6 @@ "ethers": "^6.13.0", "js-tiktoken": "1.0.14", "jsdom": "24.0.0", - "lodash": "4.17.21", "markdown-it": "14.1.0", "openai": "4.56.0", "tsx": "4.7.1", diff --git a/src/configuration/config-reader.ts b/src/configuration/config-reader.ts index 0fb31c30..dbc65ba7 100644 --- a/src/configuration/config-reader.ts +++ b/src/configuration/config-reader.ts @@ -1,21 +1,22 @@ +import { Value } from "@sinclair/typebox/value"; import program from "../parser/command-line"; import { IncentivesConfiguration, incentivesConfigurationSchema, validateIncentivesConfiguration } from "./incentives"; -import { Value } from "@sinclair/typebox/value"; -import { merge } from "lodash"; let configuration: IncentivesConfiguration | null = null; try { - const defaultConf = Value.Create(incentivesConfigurationSchema); - configuration = Value.Decode(incentivesConfigurationSchema, defaultConf); + configuration = Value.Default(incentivesConfigurationSchema, {}) as IncentivesConfiguration; } catch (e) { console.error(e); } if (program.settings) { - const settings = merge(configuration, JSON.parse(program.settings)); + const settings = Value.Default( + incentivesConfigurationSchema, + JSON.parse(program.settings) + ) as IncentivesConfiguration; if (validateIncentivesConfiguration.test(settings)) { - configuration = settings; + configuration = Value.Decode(incentivesConfigurationSchema, settings); } else { console.warn("Invalid incentives configuration detected, will revert to defaults."); for (const error of validateIncentivesConfiguration.errors(settings)) { @@ -23,5 +24,4 @@ if (program.settings) { } } } - export default configuration as IncentivesConfiguration; diff --git a/src/configuration/content-evaluator-config.ts b/src/configuration/content-evaluator-config.ts index 5e3dc623..6e60a35a 100644 --- a/src/configuration/content-evaluator-config.ts +++ b/src/configuration/content-evaluator-config.ts @@ -7,29 +7,29 @@ export const contentEvaluatorConfigurationType = Type.Object({ */ multipliers: Type.Array( Type.Object({ - select: Type.Array(commentType), + role: Type.Array(commentType), relevance: Type.Optional(Type.Number()), }), { default: [ { - select: ["ISSUE_SPECIFICATION"], + role: ["ISSUE_SPECIFICATION"], relevance: 1, }, { - select: ["PULL_AUTHOR"], + role: ["PULL_AUTHOR"], relevance: 1, }, { - select: ["PULL_ASSIGNEE"], + role: ["PULL_ASSIGNEE"], relevance: 1, }, { - select: ["PULL_COLLABORATOR"], + role: ["PULL_COLLABORATOR"], relevance: 1, }, { - select: ["PULL_CONTRIBUTOR"], + role: ["PULL_CONTRIBUTOR"], relevance: 1, }, ], diff --git a/src/configuration/data-collection-config.ts b/src/configuration/data-collection-config.ts index 9100df01..a2534f24 100644 --- a/src/configuration/data-collection-config.ts +++ b/src/configuration/data-collection-config.ts @@ -1,14 +1,17 @@ import { Static, Type } from "@sinclair/typebox"; -export const dataCollectionConfigurationType = Type.Object({ - /** - * The maximum amount of retries on failure. - */ - maxAttempts: Type.Number({ default: 10, minimum: 1 }), - /** - * The delay between each retry, in milliseconds. - */ - delayMs: Type.Number({ default: 1000, minimum: 100 }), -}); +export const dataCollectionConfigurationType = Type.Object( + { + /** + * The maximum amount of retries on failure. + */ + maxAttempts: Type.Number({ default: 10, minimum: 1 }), + /** + * The delay between each retry, in milliseconds. + */ + delayMs: Type.Number({ default: 1000, minimum: 100 }), + }, + { default: {} } +); export type DataCollectionConfiguration = Static; diff --git a/src/configuration/formatting-evaluator-config.ts b/src/configuration/formatting-evaluator-config.ts index 10f582c2..0a9161bd 100644 --- a/src/configuration/formatting-evaluator-config.ts +++ b/src/configuration/formatting-evaluator-config.ts @@ -7,95 +7,111 @@ export const commentType = Type.Union( ) ); -export const formattingEvaluatorConfigurationType = Type.Object({ - /** - * Multipliers applied to different parts of the comment body content - */ - multipliers: Type.Array( - Type.Object({ - select: Type.Array(commentType), - formattingMultiplier: Type.Number(), - wordValue: Type.Number(), - }), - { - default: [ - { - select: ["ISSUE_SPECIFICATION"], - formattingMultiplier: 1, - wordValue: 0.1, - }, - { - select: ["ISSUE_AUTHOR"], - formattingMultiplier: 1, - wordValue: 0.2, - }, - { - select: ["ISSUE_ASSIGNEE"], - formattingMultiplier: 0, - wordValue: 0, - }, - { - select: ["ISSUE_COLLABORATOR"], - formattingMultiplier: 1, - wordValue: 0.1, - }, - { - select: ["ISSUE_CONTRIBUTOR"], - formattingMultiplier: 0.25, - wordValue: 0.1, - }, - { - select: ["PULL_SPECIFICATION"], - formattingMultiplier: 0, - wordValue: 0, - }, - { - select: ["PULL_AUTHOR"], - formattingMultiplier: 2, - wordValue: 0.2, - }, - { - select: ["PULL_ASSIGNEE"], - formattingMultiplier: 1, - wordValue: 0.1, - }, - { - select: ["PULL_COLLABORATOR"], - formattingMultiplier: 1, - wordValue: 0.1, - }, - { - select: ["PULL_CONTRIBUTOR"], - formattingMultiplier: 0.25, - wordValue: 0.1, - }, - ], - } - ), - /** - * Attributed score per HTML entity - */ - scores: Type.Record(Type.String(), Type.Number(), { - default: { - br: 0, - code: 1, - p: 1, - em: 0, - img: 0, - strong: 0, - blockquote: 0, - h1: 1, - h2: 1, - h3: 1, - h4: 1, - h5: 1, - h6: 1, - a: 1, - li: 1, - td: 1, - hr: 0, - }, - }), +const regexType = Type.Record(Type.String(), Type.Number(), { minProperties: 1 }); + +/** + * Attributed score per HTML entity + */ +const htmlType = Type.Record(Type.String(), Type.Number(), { + default: { + br: 0, + code: 1, + p: 1, + em: 0, + img: 0, + strong: 0, + blockquote: 0, + h1: 1, + h2: 1, + h3: 1, + h4: 1, + h5: 1, + h6: 1, + a: 1, + li: 1, + ul: 1, + td: 1, + hr: 0, + }, }); +const rewardsType = Type.Object( + { + html: htmlType, + regex: regexType, + }, + { default: {} } +); + +export const formattingEvaluatorConfigurationType = Type.Object( + { + /** + * Multipliers applied to different parts of the comment body content + */ + multipliers: Type.Array( + Type.Object({ + role: Type.Array(commentType, { minItems: 1 }), + multiplier: Type.Number(), + rewards: rewardsType, + }), + { + minItems: 1, + default: [ + { + role: ["ISSUE_SPECIFICATION"], + multiplier: 1, + rewards: { regex: { "\\b\\w+\\b": 0.1 } }, + }, + { + role: ["ISSUE_AUTHOR"], + multiplier: 1, + rewards: { regex: { "\\b\\w+\\b": 0.2 } }, + }, + { + role: ["ISSUE_ASSIGNEE"], + multiplier: 0, + rewards: { regex: { "\\b\\w+\\b": 0 } }, + }, + { + role: ["ISSUE_COLLABORATOR"], + multiplier: 1, + rewards: { regex: { "\\b\\w+\\b": 0.1 } }, + }, + { + role: ["ISSUE_CONTRIBUTOR"], + multiplier: 0.25, + rewards: { regex: { "\\b\\w+\\b": 0.1 } }, + }, + { + role: ["PULL_SPECIFICATION"], + multiplier: 0, + rewards: { regex: { "\\b\\w+\\b": 0 } }, + }, + { + role: ["PULL_AUTHOR"], + multiplier: 2, + rewards: { regex: { "\\b\\w+\\b": 0.2 } }, + }, + { + role: ["PULL_ASSIGNEE"], + multiplier: 1, + rewards: { regex: { "\\b\\w+\\b": 0.1 } }, + }, + { + role: ["PULL_COLLABORATOR"], + multiplier: 1, + rewards: { regex: { "\\b\\w+\\b": 0.1 } }, + }, + { + role: ["PULL_CONTRIBUTOR"], + multiplier: 0.25, + rewards: { regex: { "\\b\\w+\\b": 0.1 } }, + }, + ], + } + ), + }, + { default: {} } +); + export type FormattingEvaluatorConfiguration = Static; diff --git a/src/configuration/github-comment-config.ts b/src/configuration/github-comment-config.ts index 577e18fc..d5e52163 100644 --- a/src/configuration/github-comment-config.ts +++ b/src/configuration/github-comment-config.ts @@ -1,14 +1,17 @@ import { Static, Type } from "@sinclair/typebox"; -export const githubCommentConfigurationType = Type.Object({ - /** - * Enables posting to the related GitHub Issue - */ - post: Type.Boolean({ default: true }), - /** - * Enables debug by creating a local html file of the rendered comment - */ - debug: Type.Boolean({ default: false }), -}); +export const githubCommentConfigurationType = Type.Object( + { + /** + * Enables posting to the related GitHub Issue + */ + post: Type.Boolean({ default: true }), + /** + * Enables debug by creating a local html file of the rendered comment + */ + debug: Type.Boolean({ default: false }), + }, + { default: {} } +); export type GithubCommentConfiguration = Static; diff --git a/src/configuration/incentives.ts b/src/configuration/incentives.ts index 52417988..ac31d884 100644 --- a/src/configuration/incentives.ts +++ b/src/configuration/incentives.ts @@ -8,37 +8,43 @@ import { githubCommentConfigurationType } from "./github-comment-config"; import { permitGenerationConfigurationType } from "./permit-generation-configuration"; import { userExtractorConfigurationType } from "./user-extractor-config"; -export const incentivesConfigurationSchema = T.Object({ - /** - * Network ID to run in, default to 100 - */ - evmNetworkId: T.Number({ default: 100 }), - /** - * The encrypted key to use for permit generation - */ - evmPrivateEncrypted: T.String(), - /** - * Reward token for ERC20 permits, default WXDAI for gnosis chain - */ - erc20RewardToken: T.String({ default: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d" }), - incentives: T.Object({ +export const incentivesConfigurationSchema = T.Object( + { /** - * Optionally specify a file to write the results in + * Network ID to run in, default to 100 */ - file: T.Optional(T.String()), + evmNetworkId: T.Number({ default: 100 }), /** - * If set to true, the plugin runs even if the price label is missing, and will evaluate comments. + * The encrypted key to use for permit generation */ - requirePriceLabel: T.Boolean({ default: true }), - contentEvaluator: T.Union([contentEvaluatorConfigurationType, T.Null()]), - userExtractor: T.Union([userExtractorConfigurationType, T.Null()]), - dataPurge: T.Union([dataPurgeConfigurationType, T.Null()]), - formattingEvaluator: T.Union([formattingEvaluatorConfigurationType, T.Null()]), - permitGeneration: T.Union([permitGenerationConfigurationType, T.Null()]), - githubComment: T.Union([githubCommentConfigurationType, T.Null()]), - }), - dataCollection: dataCollectionConfigurationType, -}); + evmPrivateEncrypted: T.String(), + /** + * Reward token for ERC20 permits, default WXDAI for gnosis chain + */ + erc20RewardToken: T.String({ default: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d" }), + incentives: T.Object( + { + /** + * Optionally specify a file to write the results in + */ + file: T.Optional(T.String()), + /** + * If set to false, the plugin runs even if the price label is missing, and will evaluate comments. + */ + requirePriceLabel: T.Boolean({ default: true }), + contentEvaluator: T.Union([contentEvaluatorConfigurationType, T.Null()], { default: null }), + userExtractor: T.Union([userExtractorConfigurationType, T.Null()], { default: null }), + dataPurge: T.Union([dataPurgeConfigurationType, T.Null()], { default: null }), + formattingEvaluator: T.Union([formattingEvaluatorConfigurationType, T.Null()], { default: null }), + permitGeneration: T.Union([permitGenerationConfigurationType, T.Null()], { default: null }), + githubComment: T.Union([githubCommentConfigurationType, T.Null()], { default: null }), + }, + { default: {} } + ), + dataCollection: dataCollectionConfigurationType, + }, + { default: {} } +); export const validateIncentivesConfiguration = new StandardValidator(incentivesConfigurationSchema); diff --git a/src/parser/content-evaluator-module.ts b/src/parser/content-evaluator-module.ts index 614049d4..ec306e5c 100644 --- a/src/parser/content-evaluator-module.ts +++ b/src/parser/content-evaluator-module.ts @@ -36,7 +36,7 @@ export class ContentEvaluatorModule implements Module { this._fixedRelevances = this._configuration.multipliers.reduce((acc, curr) => { return { ...acc, - [curr.select.reduce((a, b) => this._getEnumValue(b) | a, 0)]: curr.relevance, + [curr.role.reduce((a, b) => this._getEnumValue(b) | a, 0)]: curr.relevance, }; }, {}); } @@ -44,7 +44,7 @@ export class ContentEvaluatorModule implements Module { get enabled(): boolean { if (!Value.Check(contentEvaluatorConfigurationType, this._configuration)) { - console.warn("Invalid configuration detected for ContentEvaluatorModule, disabling."); + console.warn("Invalid / missing configuration detected for ContentEvaluatorModule, disabling."); return false; } return true; diff --git a/src/parser/data-purge-module.ts b/src/parser/data-purge-module.ts index 89abd66d..b329c809 100644 --- a/src/parser/data-purge-module.ts +++ b/src/parser/data-purge-module.ts @@ -12,7 +12,7 @@ export class DataPurgeModule implements Module { get enabled(): boolean { if (!Value.Check(dataPurgeConfigurationType, this._configuration)) { - console.warn("Invalid configuration detected for DataPurgeModule, disabling."); + console.warn("Invalid / missing configuration detected for DataPurgeModule, disabling."); return false; } return true; diff --git a/src/parser/formatting-evaluator-module.ts b/src/parser/formatting-evaluator-module.ts index 4fb5671c..973d902c 100644 --- a/src/parser/formatting-evaluator-module.ts +++ b/src/parser/formatting-evaluator-module.ts @@ -8,19 +8,21 @@ import { FormattingEvaluatorConfiguration, formattingEvaluatorConfigurationType, } from "../configuration/formatting-evaluator-config"; +import logger from "../helpers/logger"; import { IssueActivity } from "../issue-activity"; import { GithubCommentScore, Module, Result } from "./processor"; interface Multiplier { - formattingMultiplier: number; - wordValue: number; + multiplier: number; + html: FormattingEvaluatorConfiguration["multipliers"][0]["rewards"]["html"]; + regex: FormattingEvaluatorConfiguration["multipliers"][0]["rewards"]["regex"]; } export class FormattingEvaluatorModule implements Module { private readonly _configuration: FormattingEvaluatorConfiguration | null = configuration.incentives.formattingEvaluator; private readonly _md = new MarkdownIt(); - private readonly _multipliers: { [k: string]: Multiplier } = {}; + private readonly _multipliers: { [k: number]: Multiplier } = {}; _getEnumValue(key: CommentType) { let res = 0; @@ -36,9 +38,10 @@ export class FormattingEvaluatorModule implements Module { this._multipliers = this._configuration.multipliers.reduce((acc, curr) => { return { ...acc, - [curr.select.reduce((a, b) => this._getEnumValue(b) | a, 0)]: { - wordValue: curr.wordValue, - formattingMultiplier: curr.formattingMultiplier, + [curr.role.reduce((a, b) => this._getEnumValue(b) | a, 0)]: { + html: curr.rewards.html, + multiplier: curr.multiplier, + regex: curr.rewards.regex, }, }; }, {}); @@ -53,24 +56,26 @@ export class FormattingEvaluatorModule implements Module { const comment = comments[i]; // Count with html elements if any, otherwise just treat it as plain text const { formatting } = this._getFormattingScore(comment); - const multiplierFactor = this._multipliers?.[comment.type] ?? { wordValue: 0, formattingMultiplier: 0 }; + const multiplierFactor = this._multipliers?.[comment.type] ?? { multiplier: 0 }; const formattingTotal = formatting - ? Object.values(formatting).reduce( - (acc, curr) => - acc.add( - new Decimal(curr.score) - .mul(multiplierFactor.formattingMultiplier) - .mul(curr.count) - .mul(multiplierFactor.wordValue) - ), - new Decimal(0) - ) + ? Object.values(formatting).reduce((acc, curr) => { + let sum = new Decimal(0); + for (const symbol of Object.keys(curr.symbols)) { + sum = sum.add( + new Decimal(curr.symbols[symbol].count) + .mul(curr.symbols[symbol].multiplier) + .mul(multiplierFactor.multiplier) + .mul(curr.score) + ); + } + return acc.add(sum); + }, new Decimal(0)) : new Decimal(0); comment.score = { ...comment.score, formatting: { content: formatting, - ...multiplierFactor, + multiplier: multiplierFactor.multiplier, }, reward: (comment.score?.reward ? formattingTotal.add(comment.score.reward) : formattingTotal).toNumber(), }; @@ -81,7 +86,7 @@ export class FormattingEvaluatorModule implements Module { get enabled(): boolean { if (!Value.Check(formattingEvaluatorConfigurationType, this._configuration)) { - console.warn("Invalid configuration detected for FormattingEvaluatorModule, disabling."); + console.warn("Invalid / missing configuration detected for FormattingEvaluatorModule, disabling."); return false; } return true; @@ -91,30 +96,43 @@ export class FormattingEvaluatorModule implements Module { const html = this._md.render(comment.content); const temp = new JSDOM(html); if (temp.window.document.body) { - const res = this.classifyTagsWithWordCount(temp.window.document.body); + const res = this.classifyTagsWithWordCount(temp.window.document.body, comment.type); return { formatting: res }; } else { throw new Error(`Could not create DOM for comment [${comment}]`); } } - _countWords(text: string): number { - return text.trim().split(/\s+/).length; + _countWords(regexes: FormattingEvaluatorConfiguration["multipliers"][0]["rewards"]["regex"], text: string) { + const counts: { [p: string]: { count: number; multiplier: number } } = {}; + for (const [regex, multiplier] of Object.entries(regexes)) { + const match = text.trim().match(new RegExp(regex, "g")); + counts[regex] = { + count: match?.length || 1, + multiplier, + }; + } + return counts; } - classifyTagsWithWordCount(htmlElement: HTMLElement) { - const tagWordCount: Record = {}; + classifyTagsWithWordCount(htmlElement: HTMLElement, commentType: GithubCommentScore["type"]) { + const tagWordCount: Record< + string, + { symbols: { [p: string]: { count: number; multiplier: number } }; score: number } + > = {}; const elements = htmlElement.getElementsByTagName("*"); for (const element of elements) { const tagName = element.tagName.toLowerCase(); - const wordCount = this._countWords(element.textContent || ""); + const wordCount = this._countWords(this._multipliers[commentType].regex, element.textContent || ""); let score = 0; - if (this._configuration?.scores?.[tagName] !== undefined) { - score = this._configuration.scores[tagName]; + if (this._multipliers[commentType]?.html[tagName] !== undefined) { + score = this._multipliers[commentType].html[tagName]; + } else { + logger.error(`Could not find multiplier for comment [${commentType}], <${tagName}>`); } tagWordCount[tagName] = { - count: (tagWordCount[tagName]?.count || 0) + wordCount, + symbols: wordCount, score, }; } diff --git a/src/parser/github-comment-module.ts b/src/parser/github-comment-module.ts index 6f05942a..da9ef3a5 100644 --- a/src/parser/github-comment-module.ts +++ b/src/parser/github-comment-module.ts @@ -69,7 +69,7 @@ export class GithubCommentModule implements Module { get enabled(): boolean { if (!Value.Check(githubCommentConfigurationType, this._configuration)) { - logger.error("Invalid configuration detected for GithubContentModule, disabling."); + logger.error("Invalid / missing configuration detected for GithubContentModule, disabling."); return false; } return true; @@ -175,14 +175,7 @@ export class GithubCommentModule implements Module {
- ${Object.values(commentScore.score?.formatting?.content || {}).reduce((acc, curr) => { - const multiplier = commentScore.score?.formatting - ? new Decimal(commentScore.score.formatting.formattingMultiplier).mul( - commentScore.score.formatting.wordValue - ) - : new Decimal(0); - return acc.add(multiplier.mul(curr.score * curr.count)); - }, new Decimal(0))} + ${new Decimal(commentScore.score?.reward || 0).div(new Decimal(commentScore.score?.relevance || 1))}
${formatting}
diff --git a/src/parser/permit-generation-module.ts b/src/parser/permit-generation-module.ts index 93430130..19eb1ea5 100644 --- a/src/parser/permit-generation-module.ts +++ b/src/parser/permit-generation-module.ts @@ -269,7 +269,7 @@ export class PermitGenerationModule implements Module { get enabled(): boolean { if (!Value.Check(permitGenerationConfigurationType, this._configuration)) { - console.warn("Invalid configuration detected for PermitGenerationModule, disabling."); + console.warn("Invalid / missing configuration detected for PermitGenerationModule, disabling."); return false; } return true; diff --git a/src/parser/processor.ts b/src/parser/processor.ts index f0418f5c..9a95b3df 100644 --- a/src/parser/processor.ts +++ b/src/parser/processor.ts @@ -96,9 +96,8 @@ export interface GithubCommentScore { type: CommentKind | CommentAssociation; score?: { formatting?: { - content: Record; - formattingMultiplier: number; - wordValue: number; + content: Record; + multiplier: number; }; relevance?: number; clarity?: number; diff --git a/src/parser/user-extractor-module.ts b/src/parser/user-extractor-module.ts index 6d37a104..bdaf7373 100644 --- a/src/parser/user-extractor-module.ts +++ b/src/parser/user-extractor-module.ts @@ -15,7 +15,7 @@ export class UserExtractorModule implements Module { get enabled(): boolean { if (!Value.Check(userExtractorConfigurationType, this._configuration)) { - console.warn("Invalid configuration detected for UserExtractorModule, disabling."); + console.warn("Invalid / missing configuration detected for UserExtractorModule, disabling."); return false; } return true; diff --git a/tests/__mocks__/db-seed.json b/tests/__mocks__/db-seed.json index b80378aa..c14ff56a 100644 --- a/tests/__mocks__/db-seed.json +++ b/tests/__mocks__/db-seed.json @@ -101,6 +101,39 @@ "following": 5, "created_at": "2021-08-11T05:22:33Z", "updated_at": "2024-02-05T14:11:36Z" + }, + { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false, + "name": "Mentlegen", + "company": "@ubiquity", + "location": "South Korea", + "email": null, + "hireable": true, + "bio": null, + "twitter_username": null, + "public_repos": 52, + "public_gists": 0, + "followers": 51, + "following": 72, + "created_at": "2014-11-17T19:03:33Z", + "updated_at": "2024-07-06T13:13:06Z" } ], "wallets": [ @@ -118,6 +151,11 @@ "id": 3, "userId": 88761781, "address": "0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4" + }, + { + "id": 4, + "userId": 9807008, + "address": "0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4" } ], "locations": [ diff --git a/tests/__mocks__/handlers.ts b/tests/__mocks__/handlers.ts index 6adb29a0..1fa70b4f 100644 --- a/tests/__mocks__/handlers.ts +++ b/tests/__mocks__/handlers.ts @@ -1,30 +1,43 @@ import { http, HttpResponse } from "msw"; -import issueGet from "./routes/issue-get.json"; -import issueEventsGet from "./routes/issue-events-get.json"; -import issueEvents2Get from "./routes/issue-events-2-get.json"; -import issueCommentsGet from "./routes/issue-comments-get.json"; +import { db } from "./db"; +import issue22CommentsGet from "./routes/issue-22-comments-get.json"; +import issue22Get from "./routes/issue-22-get.json"; import issue25CommentsGet from "./routes/issue-25-comments-get.json"; +import issue69EventsGet from "./routes/issue-69-events-get.json"; +import issue69CommentsGet from "./routes/issue-69-comments-get.json"; +import issue69Get from "./routes/issue-69-get.json"; +import issueEvents2Get from "./routes/issue-events-2-get.json"; +import issueEventsGet from "./routes/issue-events-get.json"; import issueTimelineGet from "./routes/issue-timeline-get.json"; +import issue69TimelineGet from "./routes/issue-69-timeline-get.json"; +import pullsCommentsGet from "./routes/pulls-comments-get.json"; import pullsGet from "./routes/pulls-get.json"; import pullsReviewsGet from "./routes/pulls-reviews-get.json"; -import pullsCommentsGet from "./routes/pulls-comments-get.json"; -import { db } from "./db"; /** * Intercepts the routes and returns a custom payload */ export const handlers = [ http.get("https://api.github.com/repos/ubiquibot/comment-incentives/issues/22", () => { - return HttpResponse.json(issueGet); + return HttpResponse.json(issue22Get); + }), + http.get("https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", () => { + return HttpResponse.json(issue69Get); }), http.get("https://api.github.com/repos/ubiquibot/comment-incentives", () => { - return HttpResponse.json(issueGet); + return HttpResponse.json(issue22Get); }), http.get("https://api.github.com/repos/ubiquibot/comment-incentives/issues/22/events", ({ params: { page } }) => { return HttpResponse.json(!page ? issueEventsGet : issueEvents2Get); }), + http.get("https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69/events", () => { + return HttpResponse.json(issue69EventsGet); + }), http.get("https://api.github.com/repos/ubiquibot/comment-incentives/issues/22/comments", () => { - return HttpResponse.json(issueCommentsGet); + return HttpResponse.json(issue22CommentsGet); + }), + http.get("https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69/comments", () => { + return HttpResponse.json(issue69CommentsGet); }), http.get("https://api.github.com/repos/ubiquibot/comment-incentives/issues/25/comments", () => { return HttpResponse.json(issue25CommentsGet); @@ -32,6 +45,9 @@ export const handlers = [ http.get("https://api.github.com/repos/ubiquibot/comment-incentives/issues/22/timeline", () => { return HttpResponse.json(issueTimelineGet); }), + http.get("https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69/timeline", () => { + return HttpResponse.json(issue69TimelineGet); + }), http.get("https://api.github.com/repos/ubiquibot/comment-incentives/pulls/25", () => { return HttpResponse.json(pullsGet); }), @@ -50,7 +66,7 @@ export const handlers = [ }, }); if (!user) { - return HttpResponse.json("User was not found", { status: 404 }); + return HttpResponse.json("[mock] User was not found", { status: 404 }); } return HttpResponse.json(user); }), diff --git a/tests/__mocks__/results/content-evaluator-results.json b/tests/__mocks__/results/content-evaluator-results.json index d9357df9..0a37f140 100644 --- a/tests/__mocks__/results/content-evaluator-results.json +++ b/tests/__mocks__/results/content-evaluator-results.json @@ -1,504 +1,642 @@ { - "gitcoindev": { - "userId": 88761781, - "total": 47.5, - "task": { - "reward": 37.5, - "multiplier": 1 - }, + "0x4007": { "comments": [ { - "id": 1949333227, - "content": "@molecula451 I tried to override X25519_PRIVATE_KEY but it did not help. It seems that https://github.com/ubiquibot/production/blob/1937a6ba75588f51d1bf07fed1f6384f79090465/.github/ubiquibot-config.yml#L2 takes precedence over https://github.com/ubiquibot/comment-incentives/blob/main/.github/ubiquibot-config.yml#L2 (I see the first one in logs).", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949333227", - "type": "ISSUE_ASSIGNEE", + "content": "Link below for conversation context. It was to me. Anyways you need to create a new private key for this task!", + "id": 1948930217, "score": { "formatting": { "content": { "p": { - "count": 26, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 21, + "multiplier": 0.2 + } + } } }, - "wordValue": 0, - "formattingMultiplier": 0 + "multiplier": 1 }, - "reward": 0, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 3.36 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948930217" }, { - "id": 1730006888, - "content": "The new evmPrivateKeyEncrypted generated for address 0x3a2E44e10AbEf5CB4a6E492c5ba93d30068d2D95 (no funds).\r\nResolves: https://github.com/ubiquibot/comment-incentives/issues/22", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25", - "type": "PULL_SPECIFICATION", + "content": "In the repository secrets I think I need to change the key to match @gitcoindev's", + "id": 1949201722, "score": { "formatting": { "content": { "p": { - "count": 11, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 16, + "multiplier": 0.2 + } + } } }, - "wordValue": 0, - "formattingMultiplier": 0 + "multiplier": 1 }, - "reward": 0, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 2.56 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949201722" }, { - "id": 1949044575, - "content": "@pavlovcik @molecula451 please check now again, I added to docs.", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044575", - "type": "PULL_AUTHOR", + "content": "I just changed it to `627H-BcWbcp_O3YmQGIA6MqgxVsFuplFCA9DK3iC7GQ`\r\nI hope that it doesn't break production for some reason (it should get it from Netlify secrets, but not sure if we implemented this correctly!)\r\nI fear that we might need to build a feature for this to support development key pair and production. Unfortunately I'm already winding down for the day so I'll leave you guys to try and investigate.", + "id": 1949203681, "score": { "formatting": { "content": { + "code": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.2 + } + } + }, "p": { - "count": 10, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 71, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 2 + "multiplier": 1 }, - "reward": 4, - "relevance": 1 - } + "relevance": 0.8, + "reward": 11.68 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949203681" }, { - "id": 1949046925, - "content": "No way, full details are available in plain sight, only for test in production purposes", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949046925", - "type": "PULL_AUTHOR", + "content": "I don't understand what you mean by this", + "id": 1949633751, "score": { "formatting": { "content": { "p": { - "count": 15, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 9, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 2 + "multiplier": 1 }, - "reward": 6, - "relevance": 1 - } - } - ] - }, - "molecula451": { - "total": 1.875, - "userId": 41552663, - "comments": [ + "relevance": 0.8, + "reward": 1.44 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949633751" + }, { - "id": 1948916343, - "content": "pavlovcik i think we need to update a bit the readme\r\n![image_2024-02-16_131036879](https://github.com/ubiquibot/comment-incentives/assets/41552663/41516d66-4666-47d7-9efe-517fb26293dd)\r\ndm what to whom?", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948916343", - "type": "ISSUE_CONTRIBUTOR", + "content": "I'll investigate more on my computer later.", + "id": 1949639054, "score": { "formatting": { "content": { "p": { - "count": 15, - "score": 1 - }, - "img": { - "count": 1, - "score": 0 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 8, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.3, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 1.28 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639054" }, { - "id": 1948989989, - "content": "let us know when done", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948989989", - "type": "ISSUE_CONTRIBUTOR", + "content": "Will it be an issue if I revert to the commit and secret that I had before?\nIt was the production x25519 key in the GitHub repository secrets when it was working like eight hours ago. \nPosting this message before checking on my computer to get you before you log off.", + "id": 1949642845, "score": { "formatting": { "content": { "p": { - "count": 5, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 51, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.1, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 8.16 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949642845" }, { - "id": 1949195772, - "content": "https://github.com/ubiquibot/comment-incentives/actions/runs/7935268560 invalid input sounds unexpected @gitcoindev ??", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949195772", - "type": "ISSUE_CONTRIBUTOR", + "content": "Can somebody work on generating a new `X25519_PRIVATE_KEY` for the ubiquibot organization? We need to share it for development purposes.\r\n1. Generate a new key\r\n2. Encrypt a new `evmPrivateKeyEncrypted` (no funds!) and add to the org bot config\r\n3. Add the shared test key to the `comment-incentives` readme. \r\nhttps://github.com/ubiquibot/comment-incentives/pull/21/commits/567419d9688e92edf698f64c697f1a7cafe1d02e\r\n_Originally posted by @pavlovcik in https://github.com/ubiquibot/comment-incentives/issues/19#issuecomment-1948876653_", + "id": 2139000633, "score": { "formatting": { "content": { + "code": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.1 + } + } + }, + "em": { + "score": 0, + "symbols": { + "\\b\\w+\\b": { + "count": 15, + "multiplier": 0.1 + } + } + }, + "li": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 35, + "multiplier": 0.1 + } + } + }, + "ol": { + "score": 0, + "symbols": { + "\\b\\w+\\b": { + "count": 52, + "multiplier": 0.1 + } + } + }, "p": { - "count": 7, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 20, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.14, - "relevance": 0.8 - } + "relevance": 1, + "reward": 5.7 + }, + "type": "ISSUE_SPECIFICATION", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22" }, { - "id": 1949564869, - "content": "@pavlovcik permitted with hard debug (tho no funds in the private key)", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949564869", - "type": "ISSUE_CONTRIBUTOR", + "content": "Need to document a private key too", + "id": 1949021356, "score": { "formatting": { "content": { "p": { - "count": 12, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 7, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.24, - "relevance": 0.8 - } + "relevance": 1, + "reward": 0.7 + }, + "type": "PULL_COLLABORATOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949021356" }, { - "id": 1949635137, - "content": "pavlovcik i re-generated the X25519 to trigger the permit, what you don't understand? using a private key i own, but also did many commits to reach the root cause", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949635137", - "type": "ISSUE_CONTRIBUTOR", + "content": "I was editing this right now but was too slow to push.", + "id": 1949196677, "score": { "formatting": { "content": { "p": { - "count": 29, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 12, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.58, - "relevance": 0.8 - } + "relevance": 1, + "reward": 1.2 + }, + "type": "PULL_COLLABORATOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196677" }, { - "id": 1949639196, - "content": "sure thing", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639196", - "type": "ISSUE_CONTRIBUTOR", + "content": "I am quoting some code!\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n
\r\n

[ 0.28 WXDAI ]

@gentlementlegen
Contributions Overview
View Contribution Count Reward
Issue Specification 1 0.1
Issue Comment 7 0.18
Conversation Incentives
Comment Formatting Relevance Reward
issue 2
0.2
p:\r\n  count: 2\r\n  score: 1\r\n
0.5 0.1
test
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
```hey```
0.4
p:\r\n  count: 1\r\n  score: 1\r\ncode:\r\n  count: 1\r\n  score: 1\r\n
- -
``` heyo ```
0.4
p:\r\n  count: 1\r\n  score: 1\r\ncode:\r\n  count: 1\r\n  score: 1\r\n
- -
gr
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
te
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
fwe
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
te
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
0.9 0.18
\r\n
\r\n
\r\n[😂](https://emojipedia.org/face-with-tears-of-joy)\r\n- elem 1\r\n- elem 2", + "id": 1949196678, "score": { "formatting": { "content": { + "a": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } + }, + "code": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } + }, + "li": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.1 + } + } + }, "p": { - "count": 2, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 641, + "multiplier": 0.1 + } + } + }, + "ul": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 4, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.04, - "relevance": 0.8 - } - }, + "relevance": 1, + "reward": 64.9 + }, + "type": "PULL_COLLABORATOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196678" + } + ], + "total": 100.98, + "userId": 4975670 + }, + "gitcoindev": { + "comments": [ { - "id": 1949038563, - "content": "indeed", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949038563", - "type": "PULL_CONTRIBUTOR", + "content": "@molecula451 I tried to override X25519_PRIVATE_KEY but it did not help. It seems that https://github.com/ubiquibot/production/blob/1937a6ba75588f51d1bf07fed1f6384f79090465/.github/ubiquibot-config.yml#L2 takes precedence over https://github.com/ubiquibot/comment-incentives/blob/main/.github/ubiquibot-config.yml#L2 (I see the first one in logs).", + "id": 1949333227, "score": { "formatting": { "content": { "p": { - "count": 1, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 49, + "multiplier": 0 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 0 }, - "reward": 0.025, - "relevance": 1 - } + "relevance": 0.8, + "reward": 0 + }, + "type": "ISSUE_ASSIGNEE", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949333227" }, { - "id": 1949044855, - "content": "go to go pavlovick, we'll be using this one for test only or test in production (lmao) ?", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044855", - "type": "PULL_CONTRIBUTOR", + "content": "The new evmPrivateKeyEncrypted generated for address 0x3a2E44e10AbEf5CB4a6E492c5ba93d30068d2D95 (no funds).\r\nResolves: https://github.com/ubiquibot/comment-incentives/issues/22", + "id": 1730006888, "score": { "formatting": { "content": { "p": { - "count": 18, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 18, + "multiplier": 0 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 0 }, - "reward": 0.45, - "relevance": 1 - } - } - ] - }, - "0x4007": { - "total": 68, - "userId": 4975670, - "comments": [ + "relevance": 0.8, + "reward": 0 + }, + "type": "PULL_SPECIFICATION", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25" + }, { - "id": 1948930217, - "content": "Link below for conversation context. It was to me. Anyways you need to create a new private key for this task!", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948930217", - "type": "ISSUE_AUTHOR", + "content": "@pavlovcik @molecula451 please check now again, I added to docs.", + "id": 1949044575, "score": { "formatting": { "content": { "p": { - "count": 21, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 10, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 2 }, - "reward": 3.36, - "relevance": 0.8 - } + "relevance": 1, + "reward": 4 + }, + "type": "PULL_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044575" }, { - "id": 1949201722, - "content": "In the repository secrets I think I need to change the key to match @gitcoindev's", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949201722", - "type": "ISSUE_AUTHOR", + "content": "No way, full details are available in plain sight, only for test in production purposes", + "id": 1949046925, "score": { "formatting": { "content": { "p": { - "count": 15, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 15, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 2 }, - "reward": 2.4, - "relevance": 0.8 - } - }, + "relevance": 1, + "reward": 6 + }, + "type": "PULL_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949046925" + } + ], + "task": { + "multiplier": 1, + "reward": 37.5 + }, + "total": 47.5, + "userId": 88761781 + }, + "molecula451": { + "comments": [ { - "id": 1949203681, - "content": "I just changed it to `627H-BcWbcp_O3YmQGIA6MqgxVsFuplFCA9DK3iC7GQ`\r\nI hope that it doesn't break production for some reason (it should get it from Netlify secrets, but not sure if we implemented this correctly!)\r\nI fear that we might need to build a feature for this to support development key pair and production. Unfortunately I'm already winding down for the day so I'll leave you guys to try and investigate.", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949203681", - "type": "ISSUE_AUTHOR", + "content": "pavlovcik i think we need to update a bit the readme\r\n![image_2024-02-16_131036879](https://github.com/ubiquibot/comment-incentives/assets/41552663/41516d66-4666-47d7-9efe-517fb26293dd)\r\ndm what to whom?", + "id": 1948916343, "score": { "formatting": { "content": { - "p": { - "count": 67, - "score": 1 + "img": { + "score": 0, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } }, - "code": { - "count": 1, - "score": 1 + "p": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 15, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 10.88, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 0.3 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948916343" }, { - "id": 1949633751, - "content": "I don't understand what you mean by this", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949633751", - "type": "ISSUE_AUTHOR", + "content": "let us know when done", + "id": 1948989989, "score": { "formatting": { "content": { "p": { - "count": 8, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 5, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 1.28, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 0.1 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948989989" }, { - "id": 1949639054, - "content": "I'll investigate more on my computer later.", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639054", - "type": "ISSUE_AUTHOR", + "content": "https://github.com/ubiquibot/comment-incentives/actions/runs/7935268560 invalid input sounds unexpected @gitcoindev ??", + "id": 1949195772, "score": { "formatting": { "content": { "p": { - "count": 7, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 14, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 1.12, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 0.28 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949195772" }, { - "id": 1949642845, - "content": "Will it be an issue if I revert to the commit and secret that I had before?\nIt was the production x25519 key in the GitHub repository secrets when it was working like eight hours ago. \nPosting this message before checking on my computer to get you before you log off.", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949642845", - "type": "ISSUE_AUTHOR", + "content": "@pavlovcik permitted with hard debug (tho no funds in the private key)", + "id": 1949564869, "score": { "formatting": { "content": { "p": { - "count": 51, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 12, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 8.16, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 0.24 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949564869" }, { - "id": 2139000633, - "content": "Can somebody work on generating a new `X25519_PRIVATE_KEY` for the ubiquibot organization? We need to share it for development purposes.\r\n1. Generate a new key\r\n2. Encrypt a new `evmPrivateKeyEncrypted` (no funds!) and add to the org bot config\r\n3. Add the shared test key to the `comment-incentives` readme. \r\nhttps://github.com/ubiquibot/comment-incentives/pull/21/commits/567419d9688e92edf698f64c697f1a7cafe1d02e\r\n_Originally posted by @pavlovcik in https://github.com/ubiquibot/comment-incentives/issues/19#issuecomment-1948876653_", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22", - "type": "ISSUE_SPECIFICATION", + "content": "pavlovcik i re-generated the X25519 to trigger the permit, what you don't understand? using a private key i own, but also did many commits to reach the root cause", + "id": 1949635137, "score": { "formatting": { "content": { "p": { - "count": 20, - "score": 1 - }, - "code": { - "count": 3, - "score": 1 - }, - "ol": { - "count": 33, - "score": 0 - }, - "li": { - "count": 33, - "score": 1 - }, - "em": { - "count": 6, - "score": 0 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 31, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 5.6, - "relevance": 1 - } + "relevance": 0.8, + "reward": 0.62 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949635137" }, { - "id": 1949021356, - "content": "Need to document a private key too", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949021356", - "type": "PULL_COLLABORATOR", + "content": "sure thing", + "id": 1949639196, "score": { "formatting": { "content": { "p": { - "count": 7, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 0.7, - "relevance": 1 - } + "relevance": 0.8, + "reward": 0.04 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639196" }, { - "id": 1949196677, - "content": "I was editing this right now but was too slow to push.", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196677", - "type": "PULL_COLLABORATOR", + "content": "indeed", + "id": 1949038563, "score": { "formatting": { "content": { "p": { - "count": 12, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 1.2, - "relevance": 1 - } + "relevance": 1, + "reward": 0.025 + }, + "type": "PULL_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949038563" }, { - "id": 1949196678, - "content": "I am quoting some code!\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n
\r\n

[ 0.28 WXDAI ]

@gentlementlegen
Contributions Overview
View Contribution Count Reward
Issue Specification 1 0.1
Issue Comment 7 0.18
Conversation Incentives
Comment Formatting Relevance Reward
issue 2
0.2
p:\r\n  count: 2\r\n  score: 1\r\n
0.5 0.1
test
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
```hey```
0.4
p:\r\n  count: 1\r\n  score: 1\r\ncode:\r\n  count: 1\r\n  score: 1\r\n
- -
``` heyo ```
0.4
p:\r\n  count: 1\r\n  score: 1\r\ncode:\r\n  count: 1\r\n  score: 1\r\n
- -
gr
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
te
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
fwe
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
te
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
0.9 0.18
\r\n
\r\n
\r\n[😂](https://emojipedia.org/face-with-tears-of-joy)\r\n- elem 1\r\n- elem 2", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196678", - "type": "PULL_COLLABORATOR", + "content": "go to go pavlovick, we'll be using this one for test only or test in production (lmao) ?", + "id": 1949044855, "score": { "formatting": { "content": { "p": { - "count": 326, - "score": 1 - }, - "code": { - "count": 2, - "score": 1 - }, - "a": { - "count": 1, - "score": 1 - }, - "ul": { - "count": 4, - "score": 0 - }, - "li": { - "count": 4, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 18, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 33.3, - "relevance": 1 - } + "relevance": 1, + "reward": 0.45 + }, + "type": "PULL_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044855" } - ] + ], + "total": 2.055, + "userId": 41552663 } } diff --git a/tests/__mocks__/results/formatting-evaluator-results.json b/tests/__mocks__/results/formatting-evaluator-results.json index 06c46489..9e0e9a9d 100644 --- a/tests/__mocks__/results/formatting-evaluator-results.json +++ b/tests/__mocks__/results/formatting-evaluator-results.json @@ -1,482 +1,620 @@ { - "gitcoindev": { - "userId": 88761781, - "total": 47.5, - "task": { - "reward": 37.5, - "multiplier": 1 - }, + "0x4007": { "comments": [ { - "id": 1949333227, - "content": "@molecula451 I tried to override X25519_PRIVATE_KEY but it did not help. It seems that https://github.com/ubiquibot/production/blob/1937a6ba75588f51d1bf07fed1f6384f79090465/.github/ubiquibot-config.yml#L2 takes precedence over https://github.com/ubiquibot/comment-incentives/blob/main/.github/ubiquibot-config.yml#L2 (I see the first one in logs).", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949333227", - "type": "ISSUE_ASSIGNEE", + "content": "Link below for conversation context. It was to me. Anyways you need to create a new private key for this task!", + "id": 1948930217, "score": { "formatting": { "content": { "p": { - "count": 26, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 21, + "multiplier": 0.2 + } + } } }, - "wordValue": 0, - "formattingMultiplier": 0 + "multiplier": 1 }, - "reward": 0 - } + "reward": 4.2 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948930217" }, { - "id": 1730006888, - "content": "The new evmPrivateKeyEncrypted generated for address 0x3a2E44e10AbEf5CB4a6E492c5ba93d30068d2D95 (no funds).\r\nResolves: https://github.com/ubiquibot/comment-incentives/issues/22", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25", - "type": "PULL_SPECIFICATION", + "content": "In the repository secrets I think I need to change the key to match @gitcoindev's", + "id": 1949201722, "score": { "formatting": { "content": { "p": { - "count": 11, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 16, + "multiplier": 0.2 + } + } } }, - "wordValue": 0, - "formattingMultiplier": 0 + "multiplier": 1 }, - "reward": 0 - } + "reward": 3.2 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949201722" }, { - "id": 1949044575, - "content": "@pavlovcik @molecula451 please check now again, I added to docs.", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044575", - "type": "PULL_AUTHOR", + "content": "I just changed it to `627H-BcWbcp_O3YmQGIA6MqgxVsFuplFCA9DK3iC7GQ`\r\nI hope that it doesn't break production for some reason (it should get it from Netlify secrets, but not sure if we implemented this correctly!)\r\nI fear that we might need to build a feature for this to support development key pair and production. Unfortunately I'm already winding down for the day so I'll leave you guys to try and investigate.", + "id": 1949203681, "score": { "formatting": { "content": { + "code": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.2 + } + } + }, "p": { - "count": 10, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 71, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 2 + "multiplier": 1 }, - "reward": 4 - } + "reward": 14.6 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949203681" }, { - "id": 1949046925, - "content": "No way, full details are available in plain sight, only for test in production purposes", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949046925", - "type": "PULL_AUTHOR", + "content": "I don't understand what you mean by this", + "id": 1949633751, "score": { "formatting": { "content": { "p": { - "count": 15, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 9, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 2 + "multiplier": 1 }, - "reward": 6 - } - } - ] - }, - "molecula451": { - "total": 2.225, - "userId": 41552663, - "comments": [ + "reward": 1.8 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949633751" + }, { - "id": 1948916343, - "content": "pavlovcik i think we need to update a bit the readme\r\n![image_2024-02-16_131036879](https://github.com/ubiquibot/comment-incentives/assets/41552663/41516d66-4666-47d7-9efe-517fb26293dd)\r\ndm what to whom?", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948916343", - "type": "ISSUE_CONTRIBUTOR", + "content": "I'll investigate more on my computer later.", + "id": 1949639054, "score": { "formatting": { "content": { "p": { - "count": 15, - "score": 1 - }, - "img": { - "count": 1, - "score": 0 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 8, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.375 - } + "reward": 1.6 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639054" }, { - "id": 1948989989, - "content": "let us know when done", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948989989", - "type": "ISSUE_CONTRIBUTOR", + "content": "Will it be an issue if I revert to the commit and secret that I had before?\nIt was the production x25519 key in the GitHub repository secrets when it was working like eight hours ago. \nPosting this message before checking on my computer to get you before you log off.", + "id": 1949642845, "score": { "formatting": { "content": { "p": { - "count": 5, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 51, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.125 - } + "reward": 10.2 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949642845" }, { - "id": 1949195772, - "content": "https://github.com/ubiquibot/comment-incentives/actions/runs/7935268560 invalid input sounds unexpected @gitcoindev ??", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949195772", - "type": "ISSUE_CONTRIBUTOR", + "content": "Can somebody work on generating a new `X25519_PRIVATE_KEY` for the ubiquibot organization? We need to share it for development purposes.\r\n1. Generate a new key\r\n2. Encrypt a new `evmPrivateKeyEncrypted` (no funds!) and add to the org bot config\r\n3. Add the shared test key to the `comment-incentives` readme. \r\nhttps://github.com/ubiquibot/comment-incentives/pull/21/commits/567419d9688e92edf698f64c697f1a7cafe1d02e\r\n_Originally posted by @pavlovcik in https://github.com/ubiquibot/comment-incentives/issues/19#issuecomment-1948876653_", + "id": 2139000633, "score": { "formatting": { "content": { + "code": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.1 + } + } + }, + "em": { + "score": 0, + "symbols": { + "\\b\\w+\\b": { + "count": 15, + "multiplier": 0.1 + } + } + }, + "li": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 35, + "multiplier": 0.1 + } + } + }, + "ol": { + "score": 0, + "symbols": { + "\\b\\w+\\b": { + "count": 52, + "multiplier": 0.1 + } + } + }, "p": { - "count": 7, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 20, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.175 - } + "reward": 5.7 + }, + "type": "ISSUE_SPECIFICATION", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22" }, { - "id": 1949564869, - "content": "@pavlovcik permitted with hard debug (tho no funds in the private key)", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949564869", - "type": "ISSUE_CONTRIBUTOR", + "content": "Need to document a private key too", + "id": 1949021356, "score": { "formatting": { "content": { "p": { - "count": 12, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 7, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.3 - } + "reward": 0.7 + }, + "type": "PULL_COLLABORATOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949021356" }, { - "id": 1949635137, - "content": "pavlovcik i re-generated the X25519 to trigger the permit, what you don't understand? using a private key i own, but also did many commits to reach the root cause", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949635137", - "type": "ISSUE_CONTRIBUTOR", + "content": "I was editing this right now but was too slow to push.", + "id": 1949196677, "score": { "formatting": { "content": { "p": { - "count": 29, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 12, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.725 - } + "reward": 1.2 + }, + "type": "PULL_COLLABORATOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196677" }, { - "id": 1949639196, - "content": "sure thing", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639196", - "type": "ISSUE_CONTRIBUTOR", + "content": "I am quoting some code!\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n
\r\n

[ 0.28 WXDAI ]

@gentlementlegen
Contributions Overview
View Contribution Count Reward
Issue Specification 1 0.1
Issue Comment 7 0.18
Conversation Incentives
Comment Formatting Relevance Reward
issue 2
0.2
p:\r\n  count: 2\r\n  score: 1\r\n
0.5 0.1
test
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
```hey```
0.4
p:\r\n  count: 1\r\n  score: 1\r\ncode:\r\n  count: 1\r\n  score: 1\r\n
- -
``` heyo ```
0.4
p:\r\n  count: 1\r\n  score: 1\r\ncode:\r\n  count: 1\r\n  score: 1\r\n
- -
gr
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
te
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
fwe
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
te
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
0.9 0.18
\r\n
\r\n
\r\n[😂](https://emojipedia.org/face-with-tears-of-joy)\r\n- elem 1\r\n- elem 2", + "id": 1949196678, "score": { "formatting": { "content": { + "a": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } + }, + "code": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } + }, + "li": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.1 + } + } + }, "p": { - "count": 2, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 641, + "multiplier": 0.1 + } + } + }, + "ul": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 4, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.05 - } - }, + "reward": 64.9 + }, + "type": "PULL_COLLABORATOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196678" + } + ], + "total": 108.1, + "userId": 4975670 + }, + "gitcoindev": { + "comments": [ { - "id": 1949038563, - "content": "indeed", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949038563", - "type": "PULL_CONTRIBUTOR", + "content": "@molecula451 I tried to override X25519_PRIVATE_KEY but it did not help. It seems that https://github.com/ubiquibot/production/blob/1937a6ba75588f51d1bf07fed1f6384f79090465/.github/ubiquibot-config.yml#L2 takes precedence over https://github.com/ubiquibot/comment-incentives/blob/main/.github/ubiquibot-config.yml#L2 (I see the first one in logs).", + "id": 1949333227, "score": { "formatting": { "content": { "p": { - "count": 1, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 49, + "multiplier": 0 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 0 }, - "reward": 0.025 - } + "reward": 0 + }, + "type": "ISSUE_ASSIGNEE", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949333227" }, { - "id": 1949044855, - "content": "go to go pavlovick, we'll be using this one for test only or test in production (lmao) ?", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044855", - "type": "PULL_CONTRIBUTOR", + "content": "The new evmPrivateKeyEncrypted generated for address 0x3a2E44e10AbEf5CB4a6E492c5ba93d30068d2D95 (no funds).\r\nResolves: https://github.com/ubiquibot/comment-incentives/issues/22", + "id": 1730006888, "score": { "formatting": { "content": { "p": { - "count": 18, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 18, + "multiplier": 0 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 0 }, - "reward": 0.45 - } - } - ] - }, - "0x4007": { - "total": 74.8, - "userId": 4975670, - "comments": [ + "reward": 0 + }, + "type": "PULL_SPECIFICATION", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25" + }, { - "id": 1948930217, - "content": "Link below for conversation context. It was to me. Anyways you need to create a new private key for this task!", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948930217", - "type": "ISSUE_AUTHOR", + "content": "@pavlovcik @molecula451 please check now again, I added to docs.", + "id": 1949044575, "score": { "formatting": { "content": { "p": { - "count": 21, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 10, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 2 }, - "reward": 4.2 - } + "reward": 4 + }, + "type": "PULL_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044575" }, { - "id": 1949201722, - "content": "In the repository secrets I think I need to change the key to match @gitcoindev's", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949201722", - "type": "ISSUE_AUTHOR", + "content": "No way, full details are available in plain sight, only for test in production purposes", + "id": 1949046925, "score": { "formatting": { "content": { "p": { - "count": 15, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 15, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 2 }, - "reward": 3 - } - }, + "reward": 6 + }, + "type": "PULL_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949046925" + } + ], + "task": { + "multiplier": 1, + "reward": 37.5 + }, + "total": 47.5, + "userId": 88761781 + }, + "molecula451": { + "comments": [ { - "id": 1949203681, - "content": "I just changed it to `627H-BcWbcp_O3YmQGIA6MqgxVsFuplFCA9DK3iC7GQ`\r\nI hope that it doesn't break production for some reason (it should get it from Netlify secrets, but not sure if we implemented this correctly!)\r\nI fear that we might need to build a feature for this to support development key pair and production. Unfortunately I'm already winding down for the day so I'll leave you guys to try and investigate.", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949203681", - "type": "ISSUE_AUTHOR", + "content": "pavlovcik i think we need to update a bit the readme\r\n![image_2024-02-16_131036879](https://github.com/ubiquibot/comment-incentives/assets/41552663/41516d66-4666-47d7-9efe-517fb26293dd)\r\ndm what to whom?", + "id": 1948916343, "score": { "formatting": { "content": { - "p": { - "count": 67, - "score": 1 + "img": { + "score": 0, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } }, - "code": { - "count": 1, - "score": 1 + "p": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 15, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 13.6 - } + "reward": 0.375 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948916343" }, { - "id": 1949633751, - "content": "I don't understand what you mean by this", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949633751", - "type": "ISSUE_AUTHOR", + "content": "let us know when done", + "id": 1948989989, "score": { "formatting": { "content": { "p": { - "count": 8, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 5, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 1.6 - } + "reward": 0.125 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948989989" }, { - "id": 1949639054, - "content": "I'll investigate more on my computer later.", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639054", - "type": "ISSUE_AUTHOR", + "content": "https://github.com/ubiquibot/comment-incentives/actions/runs/7935268560 invalid input sounds unexpected @gitcoindev ??", + "id": 1949195772, "score": { "formatting": { "content": { "p": { - "count": 7, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 14, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 1.4 - } + "reward": 0.35 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949195772" }, { - "id": 1949642845, - "content": "Will it be an issue if I revert to the commit and secret that I had before?\nIt was the production x25519 key in the GitHub repository secrets when it was working like eight hours ago. \nPosting this message before checking on my computer to get you before you log off.", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949642845", - "type": "ISSUE_AUTHOR", + "content": "@pavlovcik permitted with hard debug (tho no funds in the private key)", + "id": 1949564869, "score": { "formatting": { "content": { "p": { - "count": 51, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 12, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 10.2 - } + "reward": 0.3 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949564869" }, { - "id": 2139000633, - "content": "Can somebody work on generating a new `X25519_PRIVATE_KEY` for the ubiquibot organization? We need to share it for development purposes.\r\n1. Generate a new key\r\n2. Encrypt a new `evmPrivateKeyEncrypted` (no funds!) and add to the org bot config\r\n3. Add the shared test key to the `comment-incentives` readme. \r\nhttps://github.com/ubiquibot/comment-incentives/pull/21/commits/567419d9688e92edf698f64c697f1a7cafe1d02e\r\n_Originally posted by @pavlovcik in https://github.com/ubiquibot/comment-incentives/issues/19#issuecomment-1948876653_", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22", - "type": "ISSUE_SPECIFICATION", + "content": "pavlovcik i re-generated the X25519 to trigger the permit, what you don't understand? using a private key i own, but also did many commits to reach the root cause", + "id": 1949635137, "score": { "formatting": { "content": { "p": { - "count": 20, - "score": 1 - }, - "code": { - "count": 3, - "score": 1 - }, - "ol": { - "count": 33, - "score": 0 - }, - "li": { - "count": 33, - "score": 1 - }, - "em": { - "count": 6, - "score": 0 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 31, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 5.6 - } + "reward": 0.775 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949635137" }, { - "id": 1949021356, - "content": "Need to document a private key too", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949021356", - "type": "PULL_COLLABORATOR", + "content": "sure thing", + "id": 1949639196, "score": { "formatting": { "content": { "p": { - "count": 7, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 0.7 - } + "reward": 0.05 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639196" }, { - "id": 1949196677, - "content": "I was editing this right now but was too slow to push.", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196677", - "type": "PULL_COLLABORATOR", + "content": "indeed", + "id": 1949038563, "score": { "formatting": { "content": { "p": { - "count": 12, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 1.2 - } + "reward": 0.025 + }, + "type": "PULL_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949038563" }, { - "id": 1949196678, - "content": "I am quoting some code!\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n
\r\n

[ 0.28 WXDAI ]

@gentlementlegen
Contributions Overview
View Contribution Count Reward
Issue Specification 1 0.1
Issue Comment 7 0.18
Conversation Incentives
Comment Formatting Relevance Reward
issue 2
0.2
p:\r\n  count: 2\r\n  score: 1\r\n
0.5 0.1
test
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
```hey```
0.4
p:\r\n  count: 1\r\n  score: 1\r\ncode:\r\n  count: 1\r\n  score: 1\r\n
- -
``` heyo ```
0.4
p:\r\n  count: 1\r\n  score: 1\r\ncode:\r\n  count: 1\r\n  score: 1\r\n
- -
gr
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
te
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
fwe
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
te
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
0.9 0.18
\r\n
\r\n
\r\n[😂](https://emojipedia.org/face-with-tears-of-joy)\r\n- elem 1\r\n- elem 2", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196678", - "type": "PULL_COLLABORATOR", + "content": "go to go pavlovick, we'll be using this one for test only or test in production (lmao) ?", + "id": 1949044855, "score": { "formatting": { "content": { "p": { - "count": 326, - "score": 1 - }, - "code": { - "count": 2, - "score": 1 - }, - "a": { - "count": 1, - "score": 1 - }, - "ul": { - "count": 4, - "score": 0 - }, - "li": { - "count": 4, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 18, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 33.3 - } + "reward": 0.45 + }, + "type": "PULL_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044855" } - ] + ], + "total": 2.45, + "userId": 41552663 } } diff --git a/tests/__mocks__/results/github-comment-results.json b/tests/__mocks__/results/github-comment-results.json index 9e3ab4ae..09f2236f 100644 --- a/tests/__mocks__/results/github-comment-results.json +++ b/tests/__mocks__/results/github-comment-results.json @@ -8,12 +8,16 @@ "formatting": { "content": { "p": { - "count": 21, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 21, + "multiplier": 0.2 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.2 + "multiplier": 1 }, "relevance": 0.8, "reward": 3.36 @@ -28,15 +32,19 @@ "formatting": { "content": { "p": { - "count": 15, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 16, + "multiplier": 0.2 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.2 + "multiplier": 1 }, "relevance": 0.8, - "reward": 2.4 + "reward": 2.56 }, "type": "ISSUE_AUTHOR", "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949201722" @@ -48,19 +56,28 @@ "formatting": { "content": { "code": { - "count": 1, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.2 + } + } }, "p": { - "count": 67, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 71, + "multiplier": 0.2 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.2 + "multiplier": 1 }, "relevance": 0.8, - "reward": 10.88 + "reward": 11.68 }, "type": "ISSUE_AUTHOR", "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949203681" @@ -72,15 +89,19 @@ "formatting": { "content": { "p": { - "count": 8, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 9, + "multiplier": 0.2 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.2 + "multiplier": 1 }, "relevance": 0.8, - "reward": 1.28 + "reward": 1.44 }, "type": "ISSUE_AUTHOR", "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949633751" @@ -92,15 +113,19 @@ "formatting": { "content": { "p": { - "count": 7, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 8, + "multiplier": 0.2 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.2 + "multiplier": 1 }, "relevance": 0.8, - "reward": 1.12 + "reward": 1.28 }, "type": "ISSUE_AUTHOR", "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639054" @@ -112,12 +137,16 @@ "formatting": { "content": { "p": { - "count": 51, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 51, + "multiplier": 0.2 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.2 + "multiplier": 1 }, "relevance": 0.8, "reward": 8.16 @@ -132,31 +161,55 @@ "formatting": { "content": { "code": { - "count": 3, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.1 + } + } }, "em": { - "count": 6, - "score": 0 + "score": 0, + "symbols": { + "\\b\\w+\\b": { + "count": 15, + "multiplier": 0.1 + } + } }, "li": { - "count": 33, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 35, + "multiplier": 0.1 + } + } }, "ol": { - "count": 33, - "score": 0 + "score": 0, + "symbols": { + "\\b\\w+\\b": { + "count": 52, + "multiplier": 0.1 + } + } }, "p": { - "count": 20, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 20, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.1 + "multiplier": 1 }, "relevance": 1, - "reward": 5.6 + "reward": 5.7 }, "type": "ISSUE_SPECIFICATION", "url": "https://github.com/ubiquibot/comment-incentives/issues/22" @@ -168,12 +221,16 @@ "formatting": { "content": { "p": { - "count": 7, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 7, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.1 + "multiplier": 1 }, "relevance": 1, "reward": 0.7 @@ -188,12 +245,16 @@ "formatting": { "content": { "p": { - "count": 12, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 12, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.1 + "multiplier": 1 }, "relevance": 1, "reward": 1.2 @@ -208,39 +269,63 @@ "formatting": { "content": { "a": { - "count": 1, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } }, "code": { - "count": 2, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } }, "li": { - "count": 4, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.1 + } + } }, "p": { - "count": 326, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 641, + "multiplier": 0.1 + } + } }, "ul": { - "count": 4, - "score": 0 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 4, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.1 + "multiplier": 1 }, "relevance": 1, - "reward": 33.3 + "reward": 64.9 }, "type": "PULL_COLLABORATOR", "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196678" } ], - "evaluationCommentHtml": "

[ 68 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Specification 1 5.6
Issue Comment 6 27.2
Review Comment 3 35.2
Conversation Incentives
Comment Formatting Relevance Reward
Can somebody work on generating a new `X25519_PRIVATE_KEY …
5.6
content:
  p:
    count: 20
    score: 1
  code:
    count: 3
    score: 1
  ol:
    count: 33
    score: 0
  li:
    count: 33
    score: 1
  em:
    count: 6
    score: 0
wordValue: 0.1
formattingMultiplier: 1
1 5.6
Link below for conversation context. It was to me. Anyways you n…
4.2
content:
  p:
    count: 21
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 3.36
In the repository secrets I think I need to change the key to ma…
3
content:
  p:
    count: 15
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 2.4
I just changed it to `627H-BcWbcp_O3YmQGIA6MqgxVsFuplFCA9DK3…
13.6
content:
  p:
    count: 67
    score: 1
  code:
    count: 1
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 10.88
I don't understand what you mean by this
1.6
content:
  p:
    count: 8
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 1.28
I'll investigate more on my computer later.
1.4
content:
  p:
    count: 7
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 1.12
Will it be an issue if I revert to the commit and secret that I …
10.2
content:
  p:
    count: 51
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 8.16
Need to document a private key too
0.7
content:
  p:
    count: 7
    score: 1
wordValue: 0.1
formattingMultiplier: 1
1 0.7
I was editing this right now but was too slow to push.
1.2
content:
  p:
    count: 12
    score: 1
wordValue: 0.1
formattingMultiplier: 1
1 1.2
I am quoting some code! <task-lists sortable=\"\"> <tab…
33.3
content:
  p:
    count: 326
    score: 1
  code:
    count: 2
    score: 1
  a:
    count: 1
    score: 1
  ul:
    count: 4
    score: 0
  li:
    count: 4
    score: 1
wordValue: 0.1
formattingMultiplier: 1
1 33.3
", - "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI2ODAwMDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjEzOTgwNzc0NDc2OTc2NzY0NTA0ODk5MjU5NjcyODM3NDI0NzU0ODkxMTY5NDMxMDE4MzYyNTI4MjAzMTI5OTY5NTkwODgyMDgxNjEiLCJkZWFkbGluZSI6IjU3ODk2MDQ0NjE4NjU4MDk3NzExNzg1NDkyNTA0MzQzOTUzOTI2NjM0OTkyMzMyODIwMjgyMDE5NzI4NzkyMDAzOTU2NTY0ODE5OTY3In0sInRyYW5zZmVyRGV0YWlscyI6eyJ0byI6IjB4NEQwNzA0ZjQwMEQ1N0JhOTNlRWE4ODc2NUMzRmNEQkQ4MjZkQ0ZjNCIsInJlcXVlc3RlZEFtb3VudCI6IjY4MDAwMDAwMDAwMDAwMDAwMDAwIn0sIm93bmVyIjoiMHhkOTUzMEYzZmJCRWExMWJlRDAxREMwOUU3OTMxOGYyZjIwMjIzNzE2Iiwic2lnbmF0dXJlIjoiMHgzM2YxMjhmMmYzN2M4YjMyYTliMjEzNTZlZjkwNTQyNjE4MmQ0MmRhZjMzYzExZWNmZTVlMGM2NjM1ZTAxMzUzNWNmNmRkZWJjZWMzNjc2ODBiYTJjMGZlMWI5MzQxNmMwNDgyMzBiYjIxYmFmNDk0ZTM1MWZjYThkMmY3YTA0YTFiIiwibmV0d29ya0lkIjoxMDB9XQ==", - "total": 68, + "evaluationCommentHtml": "

[ 100.98 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Specification 1 5.7
Issue Comment 6 28.48
Review Comment 3 66.8
Conversation Incentives
Comment Formatting Relevance Reward
Can somebody work on generating a new `X25519_PRIVATE_KEY …
5.7
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 20
        multiplier: 0.1
    score: 1
  code:
    symbols:
      \\b\\w+\\b:
        count: 2
        multiplier: 0.1
    score: 1
  ol:
    symbols:
      \\b\\w+\\b:
        count: 52
        multiplier: 0.1
    score: 0
  li:
    symbols:
      \\b\\w+\\b:
        count: 35
        multiplier: 0.1
    score: 1
  em:
    symbols:
      \\b\\w+\\b:
        count: 15
        multiplier: 0.1
    score: 0
multiplier: 1
1 5.7
Link below for conversation context. It was to me. Anyways you n…
4.2
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 21
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 3.36
In the repository secrets I think I need to change the key to ma…
3.2
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 16
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 2.56
I just changed it to `627H-BcWbcp_O3YmQGIA6MqgxVsFuplFCA9DK3…
14.6
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 71
        multiplier: 0.2
    score: 1
  code:
    symbols:
      \\b\\w+\\b:
        count: 2
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 11.68
I don't understand what you mean by this
1.8
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 9
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 1.44
I'll investigate more on my computer later.
1.6
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 8
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 1.28
Will it be an issue if I revert to the commit and secret that I …
10.2
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 51
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 8.16
Need to document a private key too
0.7
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 7
        multiplier: 0.1
    score: 1
multiplier: 1
1 0.7
I was editing this right now but was too slow to push.
1.2
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 12
        multiplier: 0.1
    score: 1
multiplier: 1
1 1.2
I am quoting some code! <task-lists sortable=\"\"> <tab…
64.9
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 641
        multiplier: 0.1
    score: 1
  code:
    symbols:
      \\b\\w+\\b:
        count: 1
        multiplier: 0.1
    score: 1
  a:
    symbols:
      \\b\\w+\\b:
        count: 1
        multiplier: 0.1
    score: 1
  ul:
    symbols:
      \\b\\w+\\b:
        count: 4
        multiplier: 0.1
    score: 1
  li:
    symbols:
      \\b\\w+\\b:
        count: 2
        multiplier: 0.1
    score: 1
multiplier: 1
1 64.9
", + "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIxMDA5ODAwMDAwMDAwMDAwMDAwMDAifSwibm9uY2UiOiIxMzk4MDc3NDQ3Njk3Njc2NDUwNDg5OTI1OTY3MjgzNzQyNDc1NDg5MTE2OTQzMTAxODM2MjUyODIwMzEyOTk2OTU5MDg4MjA4MTYxIiwiZGVhZGxpbmUiOiI1Nzg5NjA0NDYxODY1ODA5NzcxMTc4NTQ5MjUwNDM0Mzk1MzkyNjYzNDk5MjMzMjgyMDI4MjAxOTcyODc5MjAwMzk1NjU2NDgxOTk2NyJ9LCJ0cmFuc2ZlckRldGFpbHMiOnsidG8iOiIweDREMDcwNGY0MDBENTdCYTkzZUVhODg3NjVDM0ZjREJEODI2ZENGYzQiLCJyZXF1ZXN0ZWRBbW91bnQiOiIxMDA5ODAwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweDM1MTczYjc5YzA4NjY3YTU0NTljZjY1ZjA0NjQ4YjQ5MWQ4ZDQyNDcyYTE0NmUwNDUxYzc0NTU4NmM3MTVhMTU3ODMxZGJhOTIzZWFlNDEwY2Q1YTU3NjNlNDdjNWVkODAyZmQzN2I2ZWNlZDk1MmUwYWM3ZGIxYzc0N2UyMjI2MWIiLCJuZXR3b3JrSWQiOjEwMH1d", + "total": 100.98, "userId": 4975670 }, "gitcoindev": { @@ -252,12 +337,16 @@ "formatting": { "content": { "p": { - "count": 26, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 49, + "multiplier": 0 + } + } } }, - "formattingMultiplier": 0, - "wordValue": 0 + "multiplier": 0 }, "relevance": 0.8, "reward": 0 @@ -272,12 +361,16 @@ "formatting": { "content": { "p": { - "count": 11, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 18, + "multiplier": 0 + } + } } }, - "formattingMultiplier": 0, - "wordValue": 0 + "multiplier": 0 }, "relevance": 0.8, "reward": 0 @@ -292,12 +385,16 @@ "formatting": { "content": { "p": { - "count": 10, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 10, + "multiplier": 0.2 + } + } } }, - "formattingMultiplier": 2, - "wordValue": 0.2 + "multiplier": 2 }, "relevance": 1, "reward": 4 @@ -312,12 +409,16 @@ "formatting": { "content": { "p": { - "count": 15, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 15, + "multiplier": 0.2 + } + } } }, - "formattingMultiplier": 2, - "wordValue": 0.2 + "multiplier": 2 }, "relevance": 1, "reward": 6 @@ -326,7 +427,7 @@ "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949046925" } ], - "evaluationCommentHtml": "

[ 47.5 WXDAI ]

@gitcoindev
Contributions Overview
View Contribution Count Reward
Issue Task 1 37.5
Issue Comment 1 0
Review Comment 3 10
Conversation Incentives
Comment Formatting Relevance Reward
@molecula451 I tried to override X25519_PRIVATE_KEY but it did n…
0
content:
  p:
    count: 26
    score: 1
wordValue: 0
formattingMultiplier: 0
0.8 -
The new evmPrivateKeyEncrypted generated for address 0x3a2E44e10…
0
content:
  p:
    count: 11
    score: 1
wordValue: 0
formattingMultiplier: 0
0.8 -
@pavlovcik @molecula451 please check now again, I added to docs.
4
content:
  p:
    count: 10
    score: 1
wordValue: 0.2
formattingMultiplier: 2
1 4
No way, full details are available in plain sight, only for test…
6
content:
  p:
    count: 15
    score: 1
wordValue: 0.2
formattingMultiplier: 2
1 6
", + "evaluationCommentHtml": "

[ 47.5 WXDAI ]

@gitcoindev
Contributions Overview
View Contribution Count Reward
Issue Task 1 37.5
Issue Comment 1 0
Review Comment 3 10
Conversation Incentives
Comment Formatting Relevance Reward
@molecula451 I tried to override X25519_PRIVATE_KEY but it did n…
0
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 49
        multiplier: 0
    score: 1
multiplier: 0
0.8 -
The new evmPrivateKeyEncrypted generated for address 0x3a2E44e10…
0
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 18
        multiplier: 0
    score: 1
multiplier: 0
0.8 -
@pavlovcik @molecula451 please check now again, I added to docs.
4
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 10
        multiplier: 0.2
    score: 1
multiplier: 2
1 4
No way, full details are available in plain sight, only for test…
6
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 15
        multiplier: 0.2
    score: 1
multiplier: 2
1 6
", "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI0NzUwMDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjEwODAwNTI0OTcwODY5MDEwODU1NTU2MTA2MzI5OTM1MDQ1MTQwNTQ2NDU1MDc5NDkxNzkwNzI0NjYzNjk1OTk5MTMyMjMxMTU3Nzc2NiIsImRlYWRsaW5lIjoiNTc4OTYwNDQ2MTg2NTgwOTc3MTE3ODU0OTI1MDQzNDM5NTM5MjY2MzQ5OTIzMzI4MjAyODIwMTk3Mjg3OTIwMDM5NTY1NjQ4MTk5NjcifSwidHJhbnNmZXJEZXRhaWxzIjp7InRvIjoiMHg0RDA3MDRmNDAwRDU3QmE5M2VFYTg4NzY1QzNGY0RCRDgyNmRDRmM0IiwicmVxdWVzdGVkQW1vdW50IjoiNDc1MDAwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweDU2N2I4YmE0ZmU2NTk2ZGM4ZDBkYmVkYzk0MmEyMWQ2Y2FjMzBhMmFiZDBjODMyODRiMGUyNGNkOGEwOTA3YmMwYjA0MGU1YmVlOGViMDhmMDVkZjU0M2JhMmUzODI5YmE4YTU0ZTQ1Y2YyNjk2NDk1MzczMDAwZTM1NmFmMzlkMWIiLCJuZXR3b3JrSWQiOjEwMH1d", "task": { "multiplier": 1, @@ -344,16 +445,25 @@ "formatting": { "content": { "img": { - "count": 1, - "score": 0 + "score": 0, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } }, "p": { - "count": 15, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 15, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 0.25, - "wordValue": 0.1 + "multiplier": 0.25 }, "relevance": 0.8, "reward": 0.3 @@ -368,12 +478,16 @@ "formatting": { "content": { "p": { - "count": 5, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 5, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 0.25, - "wordValue": 0.1 + "multiplier": 0.25 }, "relevance": 0.8, "reward": 0.1 @@ -388,15 +502,19 @@ "formatting": { "content": { "p": { - "count": 7, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 14, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 0.25, - "wordValue": 0.1 + "multiplier": 0.25 }, "relevance": 0.8, - "reward": 0.14 + "reward": 0.28 }, "type": "ISSUE_CONTRIBUTOR", "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949195772" @@ -408,12 +526,16 @@ "formatting": { "content": { "p": { - "count": 12, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 12, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 0.25, - "wordValue": 0.1 + "multiplier": 0.25 }, "relevance": 0.8, "reward": 0.24 @@ -428,15 +550,19 @@ "formatting": { "content": { "p": { - "count": 29, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 31, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 0.25, - "wordValue": 0.1 + "multiplier": 0.25 }, "relevance": 0.8, - "reward": 0.58 + "reward": 0.62 }, "type": "ISSUE_CONTRIBUTOR", "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949635137" @@ -448,12 +574,16 @@ "formatting": { "content": { "p": { - "count": 2, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 0.25, - "wordValue": 0.1 + "multiplier": 0.25 }, "relevance": 0.8, "reward": 0.04 @@ -468,12 +598,16 @@ "formatting": { "content": { "p": { - "count": 1, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 0.25, - "wordValue": 0.1 + "multiplier": 0.25 }, "relevance": 1, "reward": 0.025 @@ -488,12 +622,16 @@ "formatting": { "content": { "p": { - "count": 18, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 18, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 0.25, - "wordValue": 0.1 + "multiplier": 0.25 }, "relevance": 1, "reward": 0.45 @@ -502,9 +640,9 @@ "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044855" } ], - "evaluationCommentHtml": "

[ 1.875 WXDAI ]

@molecula451
Contributions Overview
View Contribution Count Reward
Issue Comment 6 1.4
Review Comment 2 0.475
Conversation Incentives
Comment Formatting Relevance Reward
pavlovcik i think we need to update a bit the readme ![image_20…
0.375
content:
  p:
    count: 15
    score: 1
  img:
    count: 1
    score: 0
wordValue: 0.1
formattingMultiplier: 0.25
0.8 0.3
let us know when done
0.125
content:
  p:
    count: 5
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
0.8 0.1
https://github.com/ubiquibot/comment-incentives/actions/runs/793…
0.175
content:
  p:
    count: 7
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
0.8 0.14
@pavlovcik permitted with hard debug (tho no funds in the privat…
0.3
content:
  p:
    count: 12
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
0.8 0.24
pavlovcik i re-generated the X25519 to trigger the permit, what …
0.725
content:
  p:
    count: 29
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
0.8 0.58
sure thing
0.05
content:
  p:
    count: 2
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
0.8 0.04
indeed
0.025
content:
  p:
    count: 1
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
1 0.025
go to go pavlovick, we'll be using this one for test only or tes…
0.45
content:
  p:
    count: 18
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
1 0.45
", - "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIxODc1MDAwMDAwMDAwMDAwMDAwIn0sIm5vbmNlIjoiNTI3ODUzNTAyNjczOTk4MzczNzk3NzMyNTIzMjczMjE4NDgwMzIwMjAyMzk4MjQ4NjYyMDQ3Mjc0NTUzMTcwMTIzMDk3NjYwMDQ2OTciLCJkZWFkbGluZSI6IjU3ODk2MDQ0NjE4NjU4MDk3NzExNzg1NDkyNTA0MzQzOTUzOTI2NjM0OTkyMzMyODIwMjgyMDE5NzI4NzkyMDAzOTU2NTY0ODE5OTY3In0sInRyYW5zZmVyRGV0YWlscyI6eyJ0byI6IjB4NEQwNzA0ZjQwMEQ1N0JhOTNlRWE4ODc2NUMzRmNEQkQ4MjZkQ0ZjNCIsInJlcXVlc3RlZEFtb3VudCI6IjE4NzUwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweDRhMmIyNzBjZWRiODkzZGUzNTUzOTRlYzgyY2YzM2M0NTFmZGYyNDU2YTNmYjVkMzIyZWM3ZGE3NjZkMGQwMGE1MjgwYjBmNmFjNzY2ZjUwNzc4ZTY2NWQ5MjA4ZDcwNzMzYzAxZjI2ODM4MjlhZWJkYzkzZmI2MDU0YmRiMzY5MWMiLCJuZXR3b3JrSWQiOjEwMH1d", - "total": 1.875, + "evaluationCommentHtml": "

[ 2.055 WXDAI ]

@molecula451
Contributions Overview
View Contribution Count Reward
Issue Comment 6 1.58
Review Comment 2 0.475
Conversation Incentives
Comment Formatting Relevance Reward
pavlovcik i think we need to update a bit the readme ![image_20…
0.375
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 15
        multiplier: 0.1
    score: 1
  img:
    symbols:
      \\b\\w+\\b:
        count: 1
        multiplier: 0.1
    score: 0
multiplier: 0.25
0.8 0.3
let us know when done
0.125
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 5
        multiplier: 0.1
    score: 1
multiplier: 0.25
0.8 0.1
https://github.com/ubiquibot/comment-incentives/actions/runs/793…
0.35
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 14
        multiplier: 0.1
    score: 1
multiplier: 0.25
0.8 0.28
@pavlovcik permitted with hard debug (tho no funds in the privat…
0.3
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 12
        multiplier: 0.1
    score: 1
multiplier: 0.25
0.8 0.24
pavlovcik i re-generated the X25519 to trigger the permit, what …
0.775
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 31
        multiplier: 0.1
    score: 1
multiplier: 0.25
0.8 0.62
sure thing
0.05
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 2
        multiplier: 0.1
    score: 1
multiplier: 0.25
0.8 0.04
indeed
0.025
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 1
        multiplier: 0.1
    score: 1
multiplier: 0.25
1 0.025
go to go pavlovick, we'll be using this one for test only or tes…
0.45
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 18
        multiplier: 0.1
    score: 1
multiplier: 0.25
1 0.45
", + "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIyMDU1MDAwMDAwMDAwMDAwMDAwIn0sIm5vbmNlIjoiNTI3ODUzNTAyNjczOTk4MzczNzk3NzMyNTIzMjczMjE4NDgwMzIwMjAyMzk4MjQ4NjYyMDQ3Mjc0NTUzMTcwMTIzMDk3NjYwMDQ2OTciLCJkZWFkbGluZSI6IjU3ODk2MDQ0NjE4NjU4MDk3NzExNzg1NDkyNTA0MzQzOTUzOTI2NjM0OTkyMzMyODIwMjgyMDE5NzI4NzkyMDAzOTU2NTY0ODE5OTY3In0sInRyYW5zZmVyRGV0YWlscyI6eyJ0byI6IjB4NEQwNzA0ZjQwMEQ1N0JhOTNlRWE4ODc2NUMzRmNEQkQ4MjZkQ0ZjNCIsInJlcXVlc3RlZEFtb3VudCI6IjIwNTUwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweGM0NGFmOTdmMDE2Y2RjZjg3YzlhMjk2ZWYyYTNlMDRiZTIwOWFlNWMyMDc2Y2UxNDRlMjc4MzkzMDRjNmQ4MWQ2NTQxNjVmOTgxYTE4MWYyM2Q0YmIwZDBlNzVlYWY3ZGY2OGY4ZDc2MTFlNTI1NWZlYWFjOWM2YmIwNGE4YjFiMWIiLCJuZXR3b3JrSWQiOjEwMH1d", + "total": 2.055, "userId": 41552663 } } diff --git a/tests/__mocks__/results/output-reward-split.html b/tests/__mocks__/results/output-reward-split.html index 5d0256b7..317b9161 100644 --- a/tests/__mocks__/results/output-reward-split.html +++ b/tests/__mocks__/results/output-reward-split.html @@ -1,10 +1,10 @@ -

[ 53.48 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Task 0.5 25
Issue Specification 1 4.8
Issue Comment 2 5.28
Review Comment 3 18.4
Conversation Incentives
Comment Formatting Relevance Reward
Looks like the filters are barely useable now that we have the s…
4.8
content:
  p:
    count: 48
    score: 1
  img:
    count: 1
    score: 0
wordValue: 0.1
formattingMultiplier: 1
1 4.8
Okay both bots are broken @gentlementlegen We should have spli…
2.6
content:
  p:
    count: 13
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 2.08
Actually, looks like it did the right thing for your reward on v…
4
content:
  p:
    count: 20
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 3.2
Resolves https://github.com/ubiquity/work.ubq.fi/issues/69 <…
0
content:
  p:
    count: 3
    score: 1
  ul:
    count: 18
    score: 0
  li:
    count: 18
    score: 1
wordValue: 0
formattingMultiplier: 0
0.8 -
I always struggle with Cypress
2
content:
  p:
    count: 5
    score: 1
wordValue: 0.2
formattingMultiplier: 2
1 2
Only doesn't work on my local, the guess is token expiration aft…
16.4
content:
  p:
    count: 34
    score: 1
  a:
    count: 7
    score: 1
wordValue: 0.2
formattingMultiplier: 2
1 16.4

[ 32.18 WXDAI ]

@gentlementlegen
Contributions Overview
View Contribution Count Reward
Issue Task 0.5 25
Issue Comment 2 3.28
Review Comment 1 3.9
Conversation Incentives
Comment Formatting Relevance Reward
@0x4007 So it should be 25 each? I can confirm this is not handl…
2.4
content:
  p:
    count: 24
    score: 1
wordValue: 0.1
formattingMultiplier: 1
0.8 1.92
Ah yes because it doesn't apply the `0.5` multiplier I s…
1.7
content:
  p:
    count: 16
    score: 1
  code:
    count: 1
    score: 1
wordValue: 0.1
formattingMultiplier: 1
0.8 1.36
After token expiration, I could not reproduce the problem and st…
3.9
content:
  p:
    count: 39
    score: 1
wordValue: 0.1
formattingMultiplier: 1
1 3.9
+

[ 57.24 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Task 0.5 25
Issue Specification 1 4.8
Issue Comment 2 5.44
Review Comment 3 22
Conversation Incentives
Comment Formatting Relevance Reward
Looks like the filters are barely useable now that we have the s…
4.8
content:
  p:
    symbols:
      \b\w+\b:
        count: 48
        multiplier: 0.1
    score: 1
  img:
    symbols:
      \b\w+\b:
        count: 1
        multiplier: 0.1
    score: 0
multiplier: 1
1 4.8
Okay both bots are broken @gentlementlegen We should have spli…
2.6
content:
  p:
    symbols:
      \b\w+\b:
        count: 13
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 2.08
Actually, looks like it did the right thing for your reward on v…
4.2
content:
  p:
    symbols:
      \b\w+\b:
        count: 21
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 3.36
Resolves https://github.com/ubiquity/work.ubq.fi/issues/69 <…
0
content:
  p:
    symbols:
      \b\w+\b:
        count: 10
        multiplier: 0
    score: 1
  ul:
    symbols:
      \b\w+\b:
        count: 45
        multiplier: 0
    score: 1
  li:
    symbols:
      \b\w+\b:
        count: 35
        multiplier: 0
    score: 1
multiplier: 0
0.8 -
I always struggle with Cypress
2
content:
  p:
    symbols:
      \b\w+\b:
        count: 5
        multiplier: 0.2
    score: 1
multiplier: 2
1 2
Only doesn't work on my local, the guess is token expiration aft…
20
content:
  p:
    symbols:
      \b\w+\b:
        count: 39
        multiplier: 0.2
    score: 1
  a:
    symbols:
      \b\w+\b:
        count: 11
        multiplier: 0.2
    score: 1
multiplier: 2
1 20

[ 32.5 WXDAI ]

@gentlementlegen
Contributions Overview
View Contribution Count Reward
Issue Task 0.5 25
Issue Comment 2 3.6
Review Comment 1 3.9
Conversation Incentives
Comment Formatting Relevance Reward
@0x4007 So it should be 25 each? I can confirm this is not handl…
2.5
content:
  p:
    symbols:
      \b\w+\b:
        count: 25
        multiplier: 0.1
    score: 1
multiplier: 1
0.8 2
Ah yes because it doesn't apply the `0.5` multiplier I s…
2
content:
  p:
    symbols:
      \b\w+\b:
        count: 18
        multiplier: 0.1
    score: 1
  code:
    symbols:
      \b\w+\b:
        count: 2
        multiplier: 0.1
    score: 1
multiplier: 1
0.8 1.6
After token expiration, I could not reproduce the problem and st…
3.9
content:
  p:
    symbols:
      \b\w+\b:
        count: 39
        multiplier: 0.1
    score: 1
multiplier: 1
1 3.9
\ No newline at end of file diff --git a/tests/__mocks__/results/output.html b/tests/__mocks__/results/output.html index f2765100..060ff79e 100644 --- a/tests/__mocks__/results/output.html +++ b/tests/__mocks__/results/output.html @@ -1,4 +1,4 @@ -

[ 47.5 WXDAI ]

@gitcoindev
Contributions Overview
View Contribution Count Reward
Issue Task 1 37.5
Issue Comment 1 0
Review Comment 3 10
Conversation Incentives
Comment Formatting Relevance Reward
@molecula451 I tried to override X25519_PRIVATE_KEY but it did n…
0
content:
  p:
    count: 26
    score: 1
wordValue: 0
formattingMultiplier: 0
0.8 -
The new evmPrivateKeyEncrypted generated for address 0x3a2E44e10…
0
content:
  p:
    count: 11
    score: 1
wordValue: 0
formattingMultiplier: 0
0.8 -
@pavlovcik @molecula451 please check now again, I added to docs.
4
content:
  p:
    count: 10
    score: 1
wordValue: 0.2
formattingMultiplier: 2
1 4
No way, full details are available in plain sight, only for test…
6
content:
  p:
    count: 15
    score: 1
wordValue: 0.2
formattingMultiplier: 2
1 6

[ 1.875 WXDAI ]

@molecula451
Contributions Overview
View Contribution Count Reward
Issue Comment 6 1.4
Review Comment 2 0.475
Conversation Incentives
Comment Formatting Relevance Reward
pavlovcik i think we need to update a bit the readme ![image_20…
0.375
content:
  p:
    count: 15
    score: 1
  img:
    count: 1
    score: 0
wordValue: 0.1
formattingMultiplier: 0.25
0.8 0.3
let us know when done
0.125
content:
  p:
    count: 5
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
0.8 0.1
https://github.com/ubiquibot/comment-incentives/actions/runs/793…
0.175
content:
  p:
    count: 7
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
0.8 0.14
@pavlovcik permitted with hard debug (tho no funds in the privat…
0.3
content:
  p:
    count: 12
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
0.8 0.24
pavlovcik i re-generated the X25519 to trigger the permit, what …
0.725
content:
  p:
    count: 29
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
0.8 0.58
sure thing
0.05
content:
  p:
    count: 2
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
0.8 0.04
indeed
0.025
content:
  p:
    count: 1
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
1 0.025
go to go pavlovick, we'll be using this one for test only or tes…
0.45
content:
  p:
    count: 18
    score: 1
wordValue: 0.1
formattingMultiplier: 0.25
1 0.45

[ 68 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Specification 1 5.6
Issue Comment 6 27.2
Review Comment 3 35.2
Conversation Incentives
Comment Formatting Relevance Reward
Can somebody work on generating a new `X25519_PRIVATE_KEY …
5.6
content:
  p:
    count: 20
    score: 1
  code:
    count: 3
    score: 1
  ol:
    count: 33
    score: 0
  li:
    count: 33
    score: 1
  em:
    count: 6
    score: 0
wordValue: 0.1
formattingMultiplier: 1
1 5.6
Link below for conversation context. It was to me. Anyways you n…
4.2
content:
  p:
    count: 21
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 3.36
In the repository secrets I think I need to change the key to ma…
3
content:
  p:
    count: 15
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 2.4
I just changed it to `627H-BcWbcp_O3YmQGIA6MqgxVsFuplFCA9DK3…
13.6
content:
  p:
    count: 67
    score: 1
  code:
    count: 1
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 10.88
I don't understand what you mean by this
1.6
content:
  p:
    count: 8
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 1.28
I'll investigate more on my computer later.
1.4
content:
  p:
    count: 7
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 1.12
Will it be an issue if I revert to the commit and secret that I …
10.2
content:
  p:
    count: 51
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 8.16
Need to document a private key too
0.7
content:
  p:
    count: 7
    score: 1
wordValue: 0.1
formattingMultiplier: 1
1 0.7
I was editing this right now but was too slow to push.
1.2
content:
  p:
    count: 12
    score: 1
wordValue: 0.1
formattingMultiplier: 1
1 1.2
I am quoting some code! <task-lists sortable=""> <tab…
33.3
content:
  p:
    count: 326
    score: 1
  code:
    count: 2
    score: 1
  a:
    count: 1
    score: 1
  ul:
    count: 4
    score: 0
  li:
    count: 4
    score: 1
wordValue: 0.1
formattingMultiplier: 1
1 33.3
+

[ 47.5 WXDAI ]

@gitcoindev
Contributions Overview
View Contribution Count Reward
Issue Task 1 37.5
Issue Comment 1 0
Review Comment 3 10
Conversation Incentives
Comment Formatting Relevance Reward
@molecula451 I tried to override X25519_PRIVATE_KEY but it did n…
0
content:
  p:
    symbols:
      \b\w+\b:
        count: 49
        multiplier: 0
    score: 1
multiplier: 0
0.8 -
The new evmPrivateKeyEncrypted generated for address 0x3a2E44e10…
0
content:
  p:
    symbols:
      \b\w+\b:
        count: 18
        multiplier: 0
    score: 1
multiplier: 0
0.8 -
@pavlovcik @molecula451 please check now again, I added to docs.
4
content:
  p:
    symbols:
      \b\w+\b:
        count: 10
        multiplier: 0.2
    score: 1
multiplier: 2
1 4
No way, full details are available in plain sight, only for test…
6
content:
  p:
    symbols:
      \b\w+\b:
        count: 15
        multiplier: 0.2
    score: 1
multiplier: 2
1 6

[ 2.055 WXDAI ]

@molecula451
Contributions Overview
View Contribution Count Reward
Issue Comment 6 1.58
Review Comment 2 0.475
Conversation Incentives
Comment Formatting Relevance Reward
pavlovcik i think we need to update a bit the readme ![image_20…
0.375
content:
  p:
    symbols:
      \b\w+\b:
        count: 15
        multiplier: 0.1
    score: 1
  img:
    symbols:
      \b\w+\b:
        count: 1
        multiplier: 0.1
    score: 0
multiplier: 0.25
0.8 0.3
let us know when done
0.125
content:
  p:
    symbols:
      \b\w+\b:
        count: 5
        multiplier: 0.1
    score: 1
multiplier: 0.25
0.8 0.1
https://github.com/ubiquibot/comment-incentives/actions/runs/793…
0.35
content:
  p:
    symbols:
      \b\w+\b:
        count: 14
        multiplier: 0.1
    score: 1
multiplier: 0.25
0.8 0.28
@pavlovcik permitted with hard debug (tho no funds in the privat…
0.3
content:
  p:
    symbols:
      \b\w+\b:
        count: 12
        multiplier: 0.1
    score: 1
multiplier: 0.25
0.8 0.24
pavlovcik i re-generated the X25519 to trigger the permit, what …
0.775
content:
  p:
    symbols:
      \b\w+\b:
        count: 31
        multiplier: 0.1
    score: 1
multiplier: 0.25
0.8 0.62
sure thing
0.05
content:
  p:
    symbols:
      \b\w+\b:
        count: 2
        multiplier: 0.1
    score: 1
multiplier: 0.25
0.8 0.04
indeed
0.025
content:
  p:
    symbols:
      \b\w+\b:
        count: 1
        multiplier: 0.1
    score: 1
multiplier: 0.25
1 0.025
go to go pavlovick, we'll be using this one for test only or tes…
0.45
content:
  p:
    symbols:
      \b\w+\b:
        count: 18
        multiplier: 0.1
    score: 1
multiplier: 0.25
1 0.45

[ 100.98 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Specification 1 5.7
Issue Comment 6 28.48
Review Comment 3 66.8
Conversation Incentives
Comment Formatting Relevance Reward
Can somebody work on generating a new `X25519_PRIVATE_KEY …
5.7
content:
  p:
    symbols:
      \b\w+\b:
        count: 20
        multiplier: 0.1
    score: 1
  code:
    symbols:
      \b\w+\b:
        count: 2
        multiplier: 0.1
    score: 1
  ol:
    symbols:
      \b\w+\b:
        count: 52
        multiplier: 0.1
    score: 0
  li:
    symbols:
      \b\w+\b:
        count: 35
        multiplier: 0.1
    score: 1
  em:
    symbols:
      \b\w+\b:
        count: 15
        multiplier: 0.1
    score: 0
multiplier: 1
1 5.7
Link below for conversation context. It was to me. Anyways you n…
4.2
content:
  p:
    symbols:
      \b\w+\b:
        count: 21
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 3.36
In the repository secrets I think I need to change the key to ma…
3.2
content:
  p:
    symbols:
      \b\w+\b:
        count: 16
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 2.56
I just changed it to `627H-BcWbcp_O3YmQGIA6MqgxVsFuplFCA9DK3…
14.6
content:
  p:
    symbols:
      \b\w+\b:
        count: 71
        multiplier: 0.2
    score: 1
  code:
    symbols:
      \b\w+\b:
        count: 2
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 11.68
I don't understand what you mean by this
1.8
content:
  p:
    symbols:
      \b\w+\b:
        count: 9
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 1.44
I'll investigate more on my computer later.
1.6
content:
  p:
    symbols:
      \b\w+\b:
        count: 8
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 1.28
Will it be an issue if I revert to the commit and secret that I …
10.2
content:
  p:
    symbols:
      \b\w+\b:
        count: 51
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 8.16
Need to document a private key too
0.7
content:
  p:
    symbols:
      \b\w+\b:
        count: 7
        multiplier: 0.1
    score: 1
multiplier: 1
1 0.7
I was editing this right now but was too slow to push.
1.2
content:
  p:
    symbols:
      \b\w+\b:
        count: 12
        multiplier: 0.1
    score: 1
multiplier: 1
1 1.2
I am quoting some code! <task-lists sortable=""> <tab…
64.9
content:
  p:
    symbols:
      \b\w+\b:
        count: 641
        multiplier: 0.1
    score: 1
  code:
    symbols:
      \b\w+\b:
        count: 1
        multiplier: 0.1
    score: 1
  a:
    symbols:
      \b\w+\b:
        count: 1
        multiplier: 0.1
    score: 1
  ul:
    symbols:
      \b\w+\b:
        count: 4
        multiplier: 0.1
    score: 1
  li:
    symbols:
      \b\w+\b:
        count: 2
        multiplier: 0.1
    score: 1
multiplier: 1
1 64.9
\ No newline at end of file diff --git a/tests/__mocks__/results/permit-generation-results.json b/tests/__mocks__/results/permit-generation-results.json index df94acee..cbed2027 100644 --- a/tests/__mocks__/results/permit-generation-results.json +++ b/tests/__mocks__/results/permit-generation-results.json @@ -1,507 +1,645 @@ { - "gitcoindev": { - "userId": 88761781, - "total": 47.5, - "task": { - "reward": 37.5, - "multiplier": 1 - }, + "0x4007": { "comments": [ { - "id": 1949333227, - "content": "@molecula451 I tried to override X25519_PRIVATE_KEY but it did not help. It seems that https://github.com/ubiquibot/production/blob/1937a6ba75588f51d1bf07fed1f6384f79090465/.github/ubiquibot-config.yml#L2 takes precedence over https://github.com/ubiquibot/comment-incentives/blob/main/.github/ubiquibot-config.yml#L2 (I see the first one in logs).", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949333227", - "type": "ISSUE_ASSIGNEE", + "content": "Link below for conversation context. It was to me. Anyways you need to create a new private key for this task!", + "id": 1948930217, "score": { "formatting": { "content": { "p": { - "count": 26, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 21, + "multiplier": 0.2 + } + } } }, - "wordValue": 0, - "formattingMultiplier": 0 + "multiplier": 1 }, - "reward": 0, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 3.36 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948930217" }, { - "id": 1730006888, - "content": "The new evmPrivateKeyEncrypted generated for address 0x3a2E44e10AbEf5CB4a6E492c5ba93d30068d2D95 (no funds).\r\nResolves: https://github.com/ubiquibot/comment-incentives/issues/22", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25", - "type": "PULL_SPECIFICATION", + "content": "In the repository secrets I think I need to change the key to match @gitcoindev's", + "id": 1949201722, "score": { "formatting": { "content": { "p": { - "count": 11, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 16, + "multiplier": 0.2 + } + } } }, - "wordValue": 0, - "formattingMultiplier": 0 + "multiplier": 1 }, - "reward": 0, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 2.56 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949201722" }, { - "id": 1949044575, - "content": "@pavlovcik @molecula451 please check now again, I added to docs.", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044575", - "type": "PULL_AUTHOR", + "content": "I just changed it to `627H-BcWbcp_O3YmQGIA6MqgxVsFuplFCA9DK3iC7GQ`\r\nI hope that it doesn't break production for some reason (it should get it from Netlify secrets, but not sure if we implemented this correctly!)\r\nI fear that we might need to build a feature for this to support development key pair and production. Unfortunately I'm already winding down for the day so I'll leave you guys to try and investigate.", + "id": 1949203681, "score": { "formatting": { "content": { + "code": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.2 + } + } + }, "p": { - "count": 10, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 71, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 2 + "multiplier": 1 }, - "reward": 4, - "relevance": 1 - } + "relevance": 0.8, + "reward": 11.68 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949203681" }, { - "id": 1949046925, - "content": "No way, full details are available in plain sight, only for test in production purposes", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949046925", - "type": "PULL_AUTHOR", + "content": "I don't understand what you mean by this", + "id": 1949633751, "score": { "formatting": { "content": { "p": { - "count": 15, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 9, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 2 + "multiplier": 1 }, - "reward": 6, - "relevance": 1 - } - } - ], - "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI0NzUwMDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjEwODAwNTI0OTcwODY5MDEwODU1NTU2MTA2MzI5OTM1MDQ1MTQwNTQ2NDU1MDc5NDkxNzkwNzI0NjYzNjk1OTk5MTMyMjMxMTU3Nzc2NiIsImRlYWRsaW5lIjoiNTc4OTYwNDQ2MTg2NTgwOTc3MTE3ODU0OTI1MDQzNDM5NTM5MjY2MzQ5OTIzMzI4MjAyODIwMTk3Mjg3OTIwMDM5NTY1NjQ4MTk5NjcifSwidHJhbnNmZXJEZXRhaWxzIjp7InRvIjoiMHg0RDA3MDRmNDAwRDU3QmE5M2VFYTg4NzY1QzNGY0RCRDgyNmRDRmM0IiwicmVxdWVzdGVkQW1vdW50IjoiNDc1MDAwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweDU2N2I4YmE0ZmU2NTk2ZGM4ZDBkYmVkYzk0MmEyMWQ2Y2FjMzBhMmFiZDBjODMyODRiMGUyNGNkOGEwOTA3YmMwYjA0MGU1YmVlOGViMDhmMDVkZjU0M2JhMmUzODI5YmE4YTU0ZTQ1Y2YyNjk2NDk1MzczMDAwZTM1NmFmMzlkMWIiLCJuZXR3b3JrSWQiOjEwMH1d" - }, - "molecula451": { - "total": 1.875, - "userId": 41552663, - "comments": [ + "relevance": 0.8, + "reward": 1.44 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949633751" + }, { - "id": 1948916343, - "content": "pavlovcik i think we need to update a bit the readme\r\n![image_2024-02-16_131036879](https://github.com/ubiquibot/comment-incentives/assets/41552663/41516d66-4666-47d7-9efe-517fb26293dd)\r\ndm what to whom?", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948916343", - "type": "ISSUE_CONTRIBUTOR", + "content": "I'll investigate more on my computer later.", + "id": 1949639054, "score": { "formatting": { "content": { "p": { - "count": 15, - "score": 1 - }, - "img": { - "count": 1, - "score": 0 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 8, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.3, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 1.28 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639054" }, { - "id": 1948989989, - "content": "let us know when done", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948989989", - "type": "ISSUE_CONTRIBUTOR", + "content": "Will it be an issue if I revert to the commit and secret that I had before?\nIt was the production x25519 key in the GitHub repository secrets when it was working like eight hours ago. \nPosting this message before checking on my computer to get you before you log off.", + "id": 1949642845, "score": { "formatting": { "content": { "p": { - "count": 5, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 51, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.1, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 8.16 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949642845" }, { - "id": 1949195772, - "content": "https://github.com/ubiquibot/comment-incentives/actions/runs/7935268560 invalid input sounds unexpected @gitcoindev ??", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949195772", - "type": "ISSUE_CONTRIBUTOR", + "content": "Can somebody work on generating a new `X25519_PRIVATE_KEY` for the ubiquibot organization? We need to share it for development purposes.\r\n1. Generate a new key\r\n2. Encrypt a new `evmPrivateKeyEncrypted` (no funds!) and add to the org bot config\r\n3. Add the shared test key to the `comment-incentives` readme. \r\nhttps://github.com/ubiquibot/comment-incentives/pull/21/commits/567419d9688e92edf698f64c697f1a7cafe1d02e\r\n_Originally posted by @pavlovcik in https://github.com/ubiquibot/comment-incentives/issues/19#issuecomment-1948876653_", + "id": 2139000633, "score": { "formatting": { "content": { + "code": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.1 + } + } + }, + "em": { + "score": 0, + "symbols": { + "\\b\\w+\\b": { + "count": 15, + "multiplier": 0.1 + } + } + }, + "li": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 35, + "multiplier": 0.1 + } + } + }, + "ol": { + "score": 0, + "symbols": { + "\\b\\w+\\b": { + "count": 52, + "multiplier": 0.1 + } + } + }, "p": { - "count": 7, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 20, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.14, - "relevance": 0.8 - } + "relevance": 1, + "reward": 5.7 + }, + "type": "ISSUE_SPECIFICATION", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22" }, { - "id": 1949564869, - "content": "@pavlovcik permitted with hard debug (tho no funds in the private key)", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949564869", - "type": "ISSUE_CONTRIBUTOR", + "content": "Need to document a private key too", + "id": 1949021356, "score": { "formatting": { "content": { "p": { - "count": 12, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 7, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.24, - "relevance": 0.8 - } + "relevance": 1, + "reward": 0.7 + }, + "type": "PULL_COLLABORATOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949021356" }, { - "id": 1949635137, - "content": "pavlovcik i re-generated the X25519 to trigger the permit, what you don't understand? using a private key i own, but also did many commits to reach the root cause", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949635137", - "type": "ISSUE_CONTRIBUTOR", + "content": "I was editing this right now but was too slow to push.", + "id": 1949196677, "score": { "formatting": { "content": { "p": { - "count": 29, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 12, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.58, - "relevance": 0.8 - } + "relevance": 1, + "reward": 1.2 + }, + "type": "PULL_COLLABORATOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196677" }, { - "id": 1949639196, - "content": "sure thing", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639196", - "type": "ISSUE_CONTRIBUTOR", + "content": "I am quoting some code!\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n
\r\n

[ 0.28 WXDAI ]

@gentlementlegen
Contributions Overview
View Contribution Count Reward
Issue Specification 1 0.1
Issue Comment 7 0.18
Conversation Incentives
Comment Formatting Relevance Reward
issue 2
0.2
p:\r\n  count: 2\r\n  score: 1\r\n
0.5 0.1
test
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
```hey```
0.4
p:\r\n  count: 1\r\n  score: 1\r\ncode:\r\n  count: 1\r\n  score: 1\r\n
- -
``` heyo ```
0.4
p:\r\n  count: 1\r\n  score: 1\r\ncode:\r\n  count: 1\r\n  score: 1\r\n
- -
gr
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
te
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
fwe
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
te
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
0.9 0.18
\r\n
\r\n
\r\n[😂](https://emojipedia.org/face-with-tears-of-joy)\r\n- elem 1\r\n- elem 2", + "id": 1949196678, "score": { "formatting": { "content": { + "a": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } + }, + "code": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } + }, + "li": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.1 + } + } + }, "p": { - "count": 2, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 641, + "multiplier": 0.1 + } + } + }, + "ul": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 4, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 1 }, - "reward": 0.04, - "relevance": 0.8 - } - }, + "relevance": 1, + "reward": 64.9 + }, + "type": "PULL_COLLABORATOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196678" + } + ], + "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIxMDA5ODAwMDAwMDAwMDAwMDAwMDAifSwibm9uY2UiOiIxMzk4MDc3NDQ3Njk3Njc2NDUwNDg5OTI1OTY3MjgzNzQyNDc1NDg5MTE2OTQzMTAxODM2MjUyODIwMzEyOTk2OTU5MDg4MjA4MTYxIiwiZGVhZGxpbmUiOiI1Nzg5NjA0NDYxODY1ODA5NzcxMTc4NTQ5MjUwNDM0Mzk1MzkyNjYzNDk5MjMzMjgyMDI4MjAxOTcyODc5MjAwMzk1NjU2NDgxOTk2NyJ9LCJ0cmFuc2ZlckRldGFpbHMiOnsidG8iOiIweDREMDcwNGY0MDBENTdCYTkzZUVhODg3NjVDM0ZjREJEODI2ZENGYzQiLCJyZXF1ZXN0ZWRBbW91bnQiOiIxMDA5ODAwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweDM1MTczYjc5YzA4NjY3YTU0NTljZjY1ZjA0NjQ4YjQ5MWQ4ZDQyNDcyYTE0NmUwNDUxYzc0NTU4NmM3MTVhMTU3ODMxZGJhOTIzZWFlNDEwY2Q1YTU3NjNlNDdjNWVkODAyZmQzN2I2ZWNlZDk1MmUwYWM3ZGIxYzc0N2UyMjI2MWIiLCJuZXR3b3JrSWQiOjEwMH1d", + "total": 100.98, + "userId": 4975670 + }, + "gitcoindev": { + "comments": [ { - "id": 1949038563, - "content": "indeed", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949038563", - "type": "PULL_CONTRIBUTOR", + "content": "@molecula451 I tried to override X25519_PRIVATE_KEY but it did not help. It seems that https://github.com/ubiquibot/production/blob/1937a6ba75588f51d1bf07fed1f6384f79090465/.github/ubiquibot-config.yml#L2 takes precedence over https://github.com/ubiquibot/comment-incentives/blob/main/.github/ubiquibot-config.yml#L2 (I see the first one in logs).", + "id": 1949333227, "score": { "formatting": { "content": { "p": { - "count": 1, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 49, + "multiplier": 0 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 0 }, - "reward": 0.025, - "relevance": 1 - } + "relevance": 0.8, + "reward": 0 + }, + "type": "ISSUE_ASSIGNEE", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949333227" }, { - "id": 1949044855, - "content": "go to go pavlovick, we'll be using this one for test only or test in production (lmao) ?", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044855", - "type": "PULL_CONTRIBUTOR", + "content": "The new evmPrivateKeyEncrypted generated for address 0x3a2E44e10AbEf5CB4a6E492c5ba93d30068d2D95 (no funds).\r\nResolves: https://github.com/ubiquibot/comment-incentives/issues/22", + "id": 1730006888, "score": { "formatting": { "content": { "p": { - "count": 18, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 18, + "multiplier": 0 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "multiplier": 0 }, - "reward": 0.45, - "relevance": 1 - } - } - ], - "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIxODc1MDAwMDAwMDAwMDAwMDAwIn0sIm5vbmNlIjoiNTI3ODUzNTAyNjczOTk4MzczNzk3NzMyNTIzMjczMjE4NDgwMzIwMjAyMzk4MjQ4NjYyMDQ3Mjc0NTUzMTcwMTIzMDk3NjYwMDQ2OTciLCJkZWFkbGluZSI6IjU3ODk2MDQ0NjE4NjU4MDk3NzExNzg1NDkyNTA0MzQzOTUzOTI2NjM0OTkyMzMyODIwMjgyMDE5NzI4NzkyMDAzOTU2NTY0ODE5OTY3In0sInRyYW5zZmVyRGV0YWlscyI6eyJ0byI6IjB4NEQwNzA0ZjQwMEQ1N0JhOTNlRWE4ODc2NUMzRmNEQkQ4MjZkQ0ZjNCIsInJlcXVlc3RlZEFtb3VudCI6IjE4NzUwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweDRhMmIyNzBjZWRiODkzZGUzNTUzOTRlYzgyY2YzM2M0NTFmZGYyNDU2YTNmYjVkMzIyZWM3ZGE3NjZkMGQwMGE1MjgwYjBmNmFjNzY2ZjUwNzc4ZTY2NWQ5MjA4ZDcwNzMzYzAxZjI2ODM4MjlhZWJkYzkzZmI2MDU0YmRiMzY5MWMiLCJuZXR3b3JrSWQiOjEwMH1d" - }, - "0x4007": { - "total": 68, - "userId": 4975670, - "comments": [ + "relevance": 0.8, + "reward": 0 + }, + "type": "PULL_SPECIFICATION", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25" + }, { - "id": 1948930217, - "content": "Link below for conversation context. It was to me. Anyways you need to create a new private key for this task!", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948930217", - "type": "ISSUE_AUTHOR", + "content": "@pavlovcik @molecula451 please check now again, I added to docs.", + "id": 1949044575, "score": { "formatting": { "content": { "p": { - "count": 21, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 10, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 2 }, - "reward": 3.36, - "relevance": 0.8 - } + "relevance": 1, + "reward": 4 + }, + "type": "PULL_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044575" }, { - "id": 1949201722, - "content": "In the repository secrets I think I need to change the key to match @gitcoindev's", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949201722", - "type": "ISSUE_AUTHOR", + "content": "No way, full details are available in plain sight, only for test in production purposes", + "id": 1949046925, "score": { "formatting": { "content": { "p": { - "count": 15, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 15, + "multiplier": 0.2 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 2 }, - "reward": 2.4, - "relevance": 0.8 - } - }, + "relevance": 1, + "reward": 6 + }, + "type": "PULL_AUTHOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949046925" + } + ], + "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI0NzUwMDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjEwODAwNTI0OTcwODY5MDEwODU1NTU2MTA2MzI5OTM1MDQ1MTQwNTQ2NDU1MDc5NDkxNzkwNzI0NjYzNjk1OTk5MTMyMjMxMTU3Nzc2NiIsImRlYWRsaW5lIjoiNTc4OTYwNDQ2MTg2NTgwOTc3MTE3ODU0OTI1MDQzNDM5NTM5MjY2MzQ5OTIzMzI4MjAyODIwMTk3Mjg3OTIwMDM5NTY1NjQ4MTk5NjcifSwidHJhbnNmZXJEZXRhaWxzIjp7InRvIjoiMHg0RDA3MDRmNDAwRDU3QmE5M2VFYTg4NzY1QzNGY0RCRDgyNmRDRmM0IiwicmVxdWVzdGVkQW1vdW50IjoiNDc1MDAwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweDU2N2I4YmE0ZmU2NTk2ZGM4ZDBkYmVkYzk0MmEyMWQ2Y2FjMzBhMmFiZDBjODMyODRiMGUyNGNkOGEwOTA3YmMwYjA0MGU1YmVlOGViMDhmMDVkZjU0M2JhMmUzODI5YmE4YTU0ZTQ1Y2YyNjk2NDk1MzczMDAwZTM1NmFmMzlkMWIiLCJuZXR3b3JrSWQiOjEwMH1d", + "task": { + "multiplier": 1, + "reward": 37.5 + }, + "total": 47.5, + "userId": 88761781 + }, + "molecula451": { + "comments": [ { - "id": 1949203681, - "content": "I just changed it to `627H-BcWbcp_O3YmQGIA6MqgxVsFuplFCA9DK3iC7GQ`\r\nI hope that it doesn't break production for some reason (it should get it from Netlify secrets, but not sure if we implemented this correctly!)\r\nI fear that we might need to build a feature for this to support development key pair and production. Unfortunately I'm already winding down for the day so I'll leave you guys to try and investigate.", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949203681", - "type": "ISSUE_AUTHOR", + "content": "pavlovcik i think we need to update a bit the readme\r\n![image_2024-02-16_131036879](https://github.com/ubiquibot/comment-incentives/assets/41552663/41516d66-4666-47d7-9efe-517fb26293dd)\r\ndm what to whom?", + "id": 1948916343, "score": { "formatting": { "content": { - "p": { - "count": 67, - "score": 1 + "img": { + "score": 0, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } }, - "code": { - "count": 1, - "score": 1 + "p": { + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 15, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 10.88, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 0.3 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948916343" }, { - "id": 1949633751, - "content": "I don't understand what you mean by this", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949633751", - "type": "ISSUE_AUTHOR", + "content": "let us know when done", + "id": 1948989989, "score": { "formatting": { "content": { "p": { - "count": 8, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 5, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 1.28, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 0.1 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1948989989" }, { - "id": 1949639054, - "content": "I'll investigate more on my computer later.", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639054", - "type": "ISSUE_AUTHOR", + "content": "https://github.com/ubiquibot/comment-incentives/actions/runs/7935268560 invalid input sounds unexpected @gitcoindev ??", + "id": 1949195772, "score": { "formatting": { "content": { "p": { - "count": 7, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 14, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 1.12, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 0.28 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949195772" }, { - "id": 1949642845, - "content": "Will it be an issue if I revert to the commit and secret that I had before?\nIt was the production x25519 key in the GitHub repository secrets when it was working like eight hours ago. \nPosting this message before checking on my computer to get you before you log off.", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949642845", - "type": "ISSUE_AUTHOR", + "content": "@pavlovcik permitted with hard debug (tho no funds in the private key)", + "id": 1949564869, "score": { "formatting": { "content": { "p": { - "count": 51, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 12, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 8.16, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 0.24 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949564869" }, { - "id": 2139000633, - "content": "Can somebody work on generating a new `X25519_PRIVATE_KEY` for the ubiquibot organization? We need to share it for development purposes.\r\n1. Generate a new key\r\n2. Encrypt a new `evmPrivateKeyEncrypted` (no funds!) and add to the org bot config\r\n3. Add the shared test key to the `comment-incentives` readme. \r\nhttps://github.com/ubiquibot/comment-incentives/pull/21/commits/567419d9688e92edf698f64c697f1a7cafe1d02e\r\n_Originally posted by @pavlovcik in https://github.com/ubiquibot/comment-incentives/issues/19#issuecomment-1948876653_", - "url": "https://github.com/ubiquibot/comment-incentives/issues/22", - "type": "ISSUE_SPECIFICATION", + "content": "pavlovcik i re-generated the X25519 to trigger the permit, what you don't understand? using a private key i own, but also did many commits to reach the root cause", + "id": 1949635137, "score": { "formatting": { "content": { "p": { - "count": 20, - "score": 1 - }, - "code": { - "count": 3, - "score": 1 - }, - "ol": { - "count": 33, - "score": 0 - }, - "li": { - "count": 33, - "score": 1 - }, - "em": { - "count": 6, - "score": 0 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 31, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 5.6, - "relevance": 1 - } + "relevance": 0.8, + "reward": 0.62 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949635137" }, { - "id": 1949021356, - "content": "Need to document a private key too", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949021356", - "type": "PULL_COLLABORATOR", + "content": "sure thing", + "id": 1949639196, "score": { "formatting": { "content": { "p": { - "count": 7, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 0.7, - "relevance": 1 - } + "relevance": 0.8, + "reward": 0.04 + }, + "type": "ISSUE_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639196" }, { - "id": 1949196677, - "content": "I was editing this right now but was too slow to push.", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196677", - "type": "PULL_COLLABORATOR", + "content": "indeed", + "id": 1949038563, "score": { "formatting": { "content": { "p": { - "count": 12, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 1.2, - "relevance": 1 - } + "relevance": 1, + "reward": 0.025 + }, + "type": "PULL_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949038563" }, { - "id": 1949196678, - "content": "I am quoting some code!\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n
\r\n

[ 0.28 WXDAI ]

@gentlementlegen
Contributions Overview
View Contribution Count Reward
Issue Specification 1 0.1
Issue Comment 7 0.18
Conversation Incentives
Comment Formatting Relevance Reward
issue 2
0.2
p:\r\n  count: 2\r\n  score: 1\r\n
0.5 0.1
test
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
```hey```
0.4
p:\r\n  count: 1\r\n  score: 1\r\ncode:\r\n  count: 1\r\n  score: 1\r\n
- -
``` heyo ```
0.4
p:\r\n  count: 1\r\n  score: 1\r\ncode:\r\n  count: 1\r\n  score: 1\r\n
- -
gr
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
te
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
fwe
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
- -
te
0.2
p:\r\n  count: 1\r\n  score: 1\r\n
0.9 0.18
\r\n
\r\n
\r\n[😂](https://emojipedia.org/face-with-tears-of-joy)\r\n- elem 1\r\n- elem 2", - "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196678", - "type": "PULL_COLLABORATOR", + "content": "go to go pavlovick, we'll be using this one for test only or test in production (lmao) ?", + "id": 1949044855, "score": { "formatting": { "content": { "p": { - "count": 326, - "score": 1 - }, - "code": { - "count": 2, - "score": 1 - }, - "a": { - "count": 1, - "score": 1 - }, - "ul": { - "count": 4, - "score": 0 - }, - "li": { - "count": 4, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 18, + "multiplier": 0.1 + } + } } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "multiplier": 0.25 }, - "reward": 33.3, - "relevance": 1 - } + "relevance": 1, + "reward": 0.45 + }, + "type": "PULL_CONTRIBUTOR", + "url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044855" } ], - "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI2ODAwMDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjEzOTgwNzc0NDc2OTc2NzY0NTA0ODk5MjU5NjcyODM3NDI0NzU0ODkxMTY5NDMxMDE4MzYyNTI4MjAzMTI5OTY5NTkwODgyMDgxNjEiLCJkZWFkbGluZSI6IjU3ODk2MDQ0NjE4NjU4MDk3NzExNzg1NDkyNTA0MzQzOTUzOTI2NjM0OTkyMzMyODIwMjgyMDE5NzI4NzkyMDAzOTU2NTY0ODE5OTY3In0sInRyYW5zZmVyRGV0YWlscyI6eyJ0byI6IjB4NEQwNzA0ZjQwMEQ1N0JhOTNlRWE4ODc2NUMzRmNEQkQ4MjZkQ0ZjNCIsInJlcXVlc3RlZEFtb3VudCI6IjY4MDAwMDAwMDAwMDAwMDAwMDAwIn0sIm93bmVyIjoiMHhkOTUzMEYzZmJCRWExMWJlRDAxREMwOUU3OTMxOGYyZjIwMjIzNzE2Iiwic2lnbmF0dXJlIjoiMHgzM2YxMjhmMmYzN2M4YjMyYTliMjEzNTZlZjkwNTQyNjE4MmQ0MmRhZjMzYzExZWNmZTVlMGM2NjM1ZTAxMzUzNWNmNmRkZWJjZWMzNjc2ODBiYTJjMGZlMWI5MzQxNmMwNDgyMzBiYjIxYmFmNDk0ZTM1MWZjYThkMmY3YTA0YTFiIiwibmV0d29ya0lkIjoxMDB9XQ==" + "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIyMDU1MDAwMDAwMDAwMDAwMDAwIn0sIm5vbmNlIjoiNTI3ODUzNTAyNjczOTk4MzczNzk3NzMyNTIzMjczMjE4NDgwMzIwMjAyMzk4MjQ4NjYyMDQ3Mjc0NTUzMTcwMTIzMDk3NjYwMDQ2OTciLCJkZWFkbGluZSI6IjU3ODk2MDQ0NjE4NjU4MDk3NzExNzg1NDkyNTA0MzQzOTUzOTI2NjM0OTkyMzMyODIwMjgyMDE5NzI4NzkyMDAzOTU2NTY0ODE5OTY3In0sInRyYW5zZmVyRGV0YWlscyI6eyJ0byI6IjB4NEQwNzA0ZjQwMEQ1N0JhOTNlRWE4ODc2NUMzRmNEQkQ4MjZkQ0ZjNCIsInJlcXVlc3RlZEFtb3VudCI6IjIwNTUwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweGM0NGFmOTdmMDE2Y2RjZjg3YzlhMjk2ZWYyYTNlMDRiZTIwOWFlNWMyMDc2Y2UxNDRlMjc4MzkzMDRjNmQ4MWQ2NTQxNjVmOTgxYTE4MWYyM2Q0YmIwZDBlNzVlYWY3ZGY2OGY4ZDc2MTFlNTI1NWZlYWFjOWM2YmIwNGE4YjFiMWIiLCJuZXR3b3JrSWQiOjEwMH1d", + "total": 2.055, + "userId": 41552663 } } diff --git a/tests/__mocks__/results/reward-split.json b/tests/__mocks__/results/reward-split.json index 7654ff8f..fd071f95 100644 --- a/tests/__mocks__/results/reward-split.json +++ b/tests/__mocks__/results/reward-split.json @@ -8,12 +8,16 @@ "formatting": { "content": { "p": { - "count": 13, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 13, + "multiplier": 0.2 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.2 + "multiplier": 1 }, "relevance": 0.8, "reward": 2.08 @@ -28,15 +32,19 @@ "formatting": { "content": { "p": { - "count": 20, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 21, + "multiplier": 0.2 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.2 + "multiplier": 1 }, "relevance": 0.8, - "reward": 3.2 + "reward": 3.36 }, "type": "ISSUE_AUTHOR", "url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186807999" @@ -48,16 +56,25 @@ "formatting": { "content": { "img": { - "count": 1, - "score": 0 + "score": 0, + "symbols": { + "\\b\\w+\\b": { + "count": 1, + "multiplier": 0.1 + } + } }, "p": { - "count": 48, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 48, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.1 + "multiplier": 1 }, "relevance": 1, "reward": 4.8 @@ -72,20 +89,34 @@ "formatting": { "content": { "li": { - "count": 18, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 35, + "multiplier": 0 + } + } }, "p": { - "count": 3, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 10, + "multiplier": 0 + } + } }, "ul": { - "count": 18, - "score": 0 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 45, + "multiplier": 0 + } + } } }, - "formattingMultiplier": 0, - "wordValue": 0 + "multiplier": 0 }, "relevance": 0.8, "reward": 0 @@ -100,12 +131,16 @@ "formatting": { "content": { "p": { - "count": 5, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 5, + "multiplier": 0.2 + } + } } }, - "formattingMultiplier": 2, - "wordValue": 0.2 + "multiplier": 2 }, "relevance": 1, "reward": 2 @@ -120,31 +155,40 @@ "formatting": { "content": { "a": { - "count": 7, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 11, + "multiplier": 0.2 + } + } }, "p": { - "count": 34, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 39, + "multiplier": 0.2 + } + } } }, - "formattingMultiplier": 2, - "wordValue": 0.2 + "multiplier": 2 }, "relevance": 1, - "reward": 16.4 + "reward": 20 }, "type": "PULL_AUTHOR", "url": "https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186798329" } ], - "evaluationCommentHtml": "

[ 53.48 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Task 0.5 25
Issue Specification 1 4.8
Issue Comment 2 5.28
Review Comment 3 18.4
Conversation Incentives
Comment Formatting Relevance Reward
Looks like the filters are barely useable now that we have the s…
4.8
content:
  p:
    count: 48
    score: 1
  img:
    count: 1
    score: 0
wordValue: 0.1
formattingMultiplier: 1
1 4.8
Okay both bots are broken @gentlementlegen We should have spli…
2.6
content:
  p:
    count: 13
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 2.08
Actually, looks like it did the right thing for your reward on v…
4
content:
  p:
    count: 20
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.8 3.2
Resolves https://github.com/ubiquity/work.ubq.fi/issues/69 <…
0
content:
  p:
    count: 3
    score: 1
  ul:
    count: 18
    score: 0
  li:
    count: 18
    score: 1
wordValue: 0
formattingMultiplier: 0
0.8 -
I always struggle with Cypress
2
content:
  p:
    count: 5
    score: 1
wordValue: 0.2
formattingMultiplier: 2
1 2
Only doesn't work on my local, the guess is token expiration aft…
16.4
content:
  p:
    count: 34
    score: 1
  a:
    count: 7
    score: 1
wordValue: 0.2
formattingMultiplier: 2
1 16.4
", - "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI1MzQ4MDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjI0MzI1Mzc3MDIzMTc5NjEwOTcxMzU1NjgzOTQ2OTU1MjU5OTg3OTgyMTUxMzM5NDUwMzE0NjAwNzc3OTM3ODU5Mzk3OTYyODgzODA4IiwiZGVhZGxpbmUiOiI1Nzg5NjA0NDYxODY1ODA5NzcxMTc4NTQ5MjUwNDM0Mzk1MzkyNjYzNDk5MjMzMjgyMDI4MjAxOTcyODc5MjAwMzk1NjU2NDgxOTk2NyJ9LCJ0cmFuc2ZlckRldGFpbHMiOnsidG8iOiIweDREMDcwNGY0MDBENTdCYTkzZUVhODg3NjVDM0ZjREJEODI2ZENGYzQiLCJyZXF1ZXN0ZWRBbW91bnQiOiI1MzQ4MDAwMDAwMDAwMDAwMDAwMCJ9LCJvd25lciI6IjB4ZDk1MzBGM2ZiQkVhMTFiZUQwMURDMDlFNzkzMThmMmYyMDIyMzcxNiIsInNpZ25hdHVyZSI6IjB4MzYzNWM3NzY0ZDA2NmU2ZDkzMjZjZjIzZjc3MmJlNDRiYmNhYjMxNTgwYzBiNzA1ZDJiZDhkMGMyNGI4Y2Q5MDAzOTFjZjY4NzdlOTdjMWM0OGE1NGQ3MDI4ZDI2MDliNTc2Y2UxMTU1M2IxMzVmMzExZDYwMGQ5ODc2NjE5M2UxYyIsIm5ldHdvcmtJZCI6MTAwfV0=", + "evaluationCommentHtml": "

[ 57.24 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Task 0.5 25
Issue Specification 1 4.8
Issue Comment 2 5.44
Review Comment 3 22
Conversation Incentives
Comment Formatting Relevance Reward
Looks like the filters are barely useable now that we have the s…
4.8
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 48
        multiplier: 0.1
    score: 1
  img:
    symbols:
      \\b\\w+\\b:
        count: 1
        multiplier: 0.1
    score: 0
multiplier: 1
1 4.8
Okay both bots are broken @gentlementlegen We should have spli…
2.6
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 13
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 2.08
Actually, looks like it did the right thing for your reward on v…
4.2
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 21
        multiplier: 0.2
    score: 1
multiplier: 1
0.8 3.36
Resolves https://github.com/ubiquity/work.ubq.fi/issues/69 <…
0
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 10
        multiplier: 0
    score: 1
  ul:
    symbols:
      \\b\\w+\\b:
        count: 45
        multiplier: 0
    score: 1
  li:
    symbols:
      \\b\\w+\\b:
        count: 35
        multiplier: 0
    score: 1
multiplier: 0
0.8 -
I always struggle with Cypress
2
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 5
        multiplier: 0.2
    score: 1
multiplier: 2
1 2
Only doesn't work on my local, the guess is token expiration aft…
20
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 39
        multiplier: 0.2
    score: 1
  a:
    symbols:
      \\b\\w+\\b:
        count: 11
        multiplier: 0.2
    score: 1
multiplier: 2
1 20
", + "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI1NzI0MDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjI0MzI1Mzc3MDIzMTc5NjEwOTcxMzU1NjgzOTQ2OTU1MjU5OTg3OTgyMTUxMzM5NDUwMzE0NjAwNzc3OTM3ODU5Mzk3OTYyODgzODA4IiwiZGVhZGxpbmUiOiI1Nzg5NjA0NDYxODY1ODA5NzcxMTc4NTQ5MjUwNDM0Mzk1MzkyNjYzNDk5MjMzMjgyMDI4MjAxOTcyODc5MjAwMzk1NjU2NDgxOTk2NyJ9LCJ0cmFuc2ZlckRldGFpbHMiOnsidG8iOiIweDREMDcwNGY0MDBENTdCYTkzZUVhODg3NjVDM0ZjREJEODI2ZENGYzQiLCJyZXF1ZXN0ZWRBbW91bnQiOiI1NzI0MDAwMDAwMDAwMDAwMDAwMCJ9LCJvd25lciI6IjB4ZDk1MzBGM2ZiQkVhMTFiZUQwMURDMDlFNzkzMThmMmYyMDIyMzcxNiIsInNpZ25hdHVyZSI6IjB4NzE5OTEwZWJjMTNhNmZlNDM5ZmJlOWI4M2YwN2YzMTlhYWQ3NjA1ZjFmMTliOWU4NDQyMzE1NWJjNTY2Mjc0YjVmYThiZWU3NmQwOWJhZWNkNzRjZDZhMGYxNTI1YjAyOTgyMWU0OTZiMDU2ZmQ2MjJhOTlmMzg4YmI3MGM5NTcxYyIsIm5ldHdvcmtJZCI6MTAwfV0=", "task": { "multiplier": 0.5, "reward": 25 }, - "total": 53.48, + "total": 57.24, "userId": 4975670 }, "gentlementlegen": { @@ -156,15 +200,19 @@ "formatting": { "content": { "p": { - "count": 24, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 25, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.1 + "multiplier": 1 }, "relevance": 0.8, - "reward": 1.92 + "reward": 2 }, "type": "ISSUE_COLLABORATOR", "url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186805818" @@ -176,19 +224,28 @@ "formatting": { "content": { "code": { - "count": 1, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 2, + "multiplier": 0.1 + } + } }, "p": { - "count": 16, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 18, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.1 + "multiplier": 1 }, "relevance": 0.8, - "reward": 1.36 + "reward": 1.6 }, "type": "ISSUE_COLLABORATOR", "url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186813200" @@ -200,12 +257,16 @@ "formatting": { "content": { "p": { - "count": 39, - "score": 1 + "score": 1, + "symbols": { + "\\b\\w+\\b": { + "count": 39, + "multiplier": 0.1 + } + } } }, - "formattingMultiplier": 1, - "wordValue": 0.1 + "multiplier": 1 }, "relevance": 1, "reward": 3.9 @@ -214,12 +275,13 @@ "url": "https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186914050" } ], - "evaluationCommentHtml": "

[ 32.18 WXDAI ]

@gentlementlegen
Contributions Overview
View Contribution Count Reward
Issue Task 0.5 25
Issue Comment 2 3.28
Review Comment 1 3.9
Conversation Incentives
Comment Formatting Relevance Reward
@0x4007 So it should be 25 each? I can confirm this is not handl…
2.4
content:
  p:
    count: 24
    score: 1
wordValue: 0.1
formattingMultiplier: 1
0.8 1.92
Ah yes because it doesn't apply the `0.5` multiplier I s…
1.7
content:
  p:
    count: 16
    score: 1
  code:
    count: 1
    score: 1
wordValue: 0.1
formattingMultiplier: 1
0.8 1.36
After token expiration, I could not reproduce the problem and st…
3.9
content:
  p:
    count: 39
    score: 1
wordValue: 0.1
formattingMultiplier: 1
1 3.9
", + "evaluationCommentHtml": "

[ 32.5 WXDAI ]

@gentlementlegen
Contributions Overview
View Contribution Count Reward
Issue Task 0.5 25
Issue Comment 2 3.6
Review Comment 1 3.9
Conversation Incentives
Comment Formatting Relevance Reward
@0x4007 So it should be 25 each? I can confirm this is not handl…
2.5
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 25
        multiplier: 0.1
    score: 1
multiplier: 1
0.8 2
Ah yes because it doesn't apply the `0.5` multiplier I s…
2
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 18
        multiplier: 0.1
    score: 1
  code:
    symbols:
      \\b\\w+\\b:
        count: 2
        multiplier: 0.1
    score: 1
multiplier: 1
0.8 1.6
After token expiration, I could not reproduce the problem and st…
3.9
content:
  p:
    symbols:
      \\b\\w+\\b:
        count: 39
        multiplier: 0.1
    score: 1
multiplier: 1
1 3.9
", + "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIzMjUwMDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjExMDc1NzAyNzY4ODIxNDQzNjQwMzIzNzYzMzUyMTAyMDYyNTc1NDI3NjExOTU1NDkyODc2MjU0NTc5NDcyNTI3MzU2ODMxNjQxMDE2NiIsImRlYWRsaW5lIjoiNTc4OTYwNDQ2MTg2NTgwOTc3MTE3ODU0OTI1MDQzNDM5NTM5MjY2MzQ5OTIzMzI4MjAyODIwMTk3Mjg3OTIwMDM5NTY1NjQ4MTk5NjcifSwidHJhbnNmZXJEZXRhaWxzIjp7InRvIjoiMHg0RDA3MDRmNDAwRDU3QmE5M2VFYTg4NzY1QzNGY0RCRDgyNmRDRmM0IiwicmVxdWVzdGVkQW1vdW50IjoiMzI1MDAwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweGVlMzQ1YzgzYzZlOTZjNjEyOGRhNGQ1MTIzNDMwYjJlNThjN2I4OWU0YjQ5ZmNlM2U0NTBiM2ZmY2QzMDY3ZTUzMTlhMzM4ZGQxOGMzODBlZTIyOGE0YTM5MTk2MTNlMzVkZGYxOTM4NzQ2NTQ5YjE0MTdkZTRjZjJjMzMwZTU1MWMiLCJuZXR3b3JrSWQiOjEwMH1d", "task": { "multiplier": 0.5, "reward": 25 }, - "total": 32.18, + "total": 32.5, "userId": 9807008 } } diff --git a/tests/__mocks__/results/valid-configuration.json b/tests/__mocks__/results/valid-configuration.json index 16633fd4..f0d3108c 100644 --- a/tests/__mocks__/results/valid-configuration.json +++ b/tests/__mocks__/results/valid-configuration.json @@ -1,33 +1,43 @@ { - "evmNetworkId": 100, - "evmPrivateEncrypted": "kmpTKq5Wh9r9x5j3U9GqZr3NYnjK2g0HtbzeUBOuLC2y3x8ja_SKBNlB2AZ6LigXHP_HeMitftVUtzmoj8CFfVP9SqjWoL6IPku1hVTWkdTn97g1IxzmjydFxjdcf0wuDW1hvVtoq3Uw5yALABqxcQ", - "erc20RewardToken": "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d", "dataCollection": { "delayMs": 1000, "maxAttempts": 3 }, + "erc20RewardToken": "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d", + "evmNetworkId": 100, + "evmPrivateEncrypted": "kmpTKq5Wh9r9x5j3U9GqZr3NYnjK2g0HtbzeUBOuLC2y3x8ja_SKBNlB2AZ6LigXHP_HeMitftVUtzmoj8CFfVP9SqjWoL6IPku1hVTWkdTn97g1IxzmjydFxjdcf0wuDW1hvVtoq3Uw5yALABqxcQ", "incentives": { "requirePriceLabel": true, "contentEvaluator": { "multipliers": [ { - "select": ["ISSUE_SPECIFICATION"], + "role": [ + "ISSUE_SPECIFICATION" + ], "relevance": 1 }, { - "select": ["PULL_AUTHOR"], + "role": [ + "PULL_AUTHOR" + ], "relevance": 1 }, { - "select": ["PULL_ASSIGNEE"], + "role": [ + "PULL_ASSIGNEE" + ], "relevance": 1 }, { - "select": ["PULL_COLLABORATOR"], + "role": [ + "PULL_COLLABORATOR" + ], "relevance": 1 }, { - "select": ["PULL_CONTRIBUTOR"], + "role": [ + "PULL_CONTRIBUTOR" + ], "relevance": 1 } ] @@ -39,80 +49,321 @@ "formattingEvaluator": { "multipliers": [ { - "select": ["ISSUE_SPECIFICATION"], - "formattingMultiplier": 1, - "wordValue": 0.1 + "multiplier": 1, + "role": [ + "ISSUE_SPECIFICATION" + ], + "rewards": { + "regex": { + "\\b\\w+\\b": 0.1 + }, + "html": { + "a": 1, + "blockquote": 0, + "br": 0, + "code": 1, + "em": 0, + "h1": 1, + "h2": 1, + "h3": 1, + "h4": 1, + "h5": 1, + "h6": 1, + "hr": 0, + "img": 0, + "li": 1, + "ul": 1, + "p": 1, + "strong": 0, + "td": 1 + } + } }, { - "select": ["ISSUE_AUTHOR"], - "formattingMultiplier": 1, - "wordValue": 0.2 + "multiplier": 1, + "role": [ + "ISSUE_AUTHOR" + ], + "rewards": { + "regex": { + "\\b\\w+\\b": 0.2 + }, + "html": { + "a": 1, + "blockquote": 0, + "br": 0, + "code": 1, + "em": 0, + "h1": 1, + "h2": 1, + "h3": 1, + "h4": 1, + "h5": 1, + "h6": 1, + "hr": 0, + "img": 0, + "li": 1, + "ul": 1, + "p": 1, + "strong": 0, + "td": 1 + } + } }, { - "select": ["ISSUE_ASSIGNEE"], - "formattingMultiplier": 0, - "wordValue": 0 + "multiplier": 0, + "role": [ + "ISSUE_ASSIGNEE" + ], + "rewards": { + "regex": { + "\\b\\w+\\b": 0 + }, + "html": { + "a": 1, + "blockquote": 0, + "br": 0, + "code": 1, + "em": 0, + "h1": 1, + "h2": 1, + "h3": 1, + "h4": 1, + "h5": 1, + "h6": 1, + "hr": 0, + "img": 0, + "li": 1, + "ul": 1, + "p": 1, + "strong": 0, + "td": 1 + } + } }, { - "select": ["ISSUE_COLLABORATOR"], - "formattingMultiplier": 1, - "wordValue": 0.1 + "multiplier": 1, + "role": [ + "ISSUE_COLLABORATOR" + ], + "rewards": { + "regex": { + "\\b\\w+\\b": 0.1 + }, + "html": { + "a": 1, + "blockquote": 0, + "br": 0, + "code": 1, + "em": 0, + "h1": 1, + "h2": 1, + "h3": 1, + "h4": 1, + "h5": 1, + "h6": 1, + "hr": 0, + "img": 0, + "li": 1, + "ul": 1, + "p": 1, + "strong": 0, + "td": 1 + } + } }, { - "select": ["ISSUE_CONTRIBUTOR"], - "formattingMultiplier": 0.25, - "wordValue": 0.1 + "multiplier": 0.25, + "role": [ + "ISSUE_CONTRIBUTOR" + ], + "rewards": { + "regex": { + "\\b\\w+\\b": 0.1 + }, + "html": { + "a": 1, + "blockquote": 0, + "br": 0, + "code": 1, + "em": 0, + "h1": 1, + "h2": 1, + "h3": 1, + "h4": 1, + "h5": 1, + "h6": 1, + "hr": 0, + "img": 0, + "li": 1, + "ul": 1, + "p": 1, + "strong": 0, + "td": 1 + } + } }, { - "select": ["PULL_SPECIFICATION"], - "formattingMultiplier": 0, - "wordValue": 0 + "multiplier": 0, + "role": [ + "PULL_SPECIFICATION" + ], + "rewards": { + "regex": { + "\\b\\w+\\b": 0 + }, + "html": { + "a": 1, + "blockquote": 0, + "br": 0, + "code": 1, + "em": 0, + "h1": 1, + "h2": 1, + "h3": 1, + "h4": 1, + "h5": 1, + "h6": 1, + "hr": 0, + "img": 0, + "li": 1, + "ul": 1, + "p": 1, + "strong": 0, + "td": 1 + } + } }, { - "select": ["PULL_AUTHOR"], - "formattingMultiplier": 2, - "wordValue": 0.2 + "multiplier": 2, + "role": [ + "PULL_AUTHOR" + ], + "rewards": { + "regex": { + "\\b\\w+\\b": 0.2 + }, + "html": { + "a": 1, + "blockquote": 0, + "br": 0, + "code": 1, + "em": 0, + "h1": 1, + "h2": 1, + "h3": 1, + "h4": 1, + "h5": 1, + "h6": 1, + "hr": 0, + "img": 0, + "li": 1, + "ul": 1, + "p": 1, + "strong": 0, + "td": 1 + } + } }, { - "select": ["PULL_ASSIGNEE"], - "formattingMultiplier": 1, - "wordValue": 0.1 + "multiplier": 1, + "role": [ + "PULL_ASSIGNEE" + ], + "rewards": { + "regex": { + "\\b\\w+\\b": 0.1 + }, + "html": { + "a": 1, + "blockquote": 0, + "br": 0, + "code": 1, + "em": 0, + "h1": 1, + "h2": 1, + "h3": 1, + "h4": 1, + "h5": 1, + "h6": 1, + "hr": 0, + "img": 0, + "li": 1, + "ul": 1, + "p": 1, + "strong": 0, + "td": 1 + } + } }, { - "select": ["PULL_COLLABORATOR"], - "formattingMultiplier": 1, - "wordValue": 0.1 + "multiplier": 1, + "role": [ + "PULL_COLLABORATOR" + ], + "rewards": { + "regex": { + "\\b\\w+\\b": 0.1 + }, + "html": { + "a": 1, + "blockquote": 0, + "br": 0, + "code": 1, + "em": 0, + "h1": 1, + "h2": 1, + "h3": 1, + "h4": 1, + "h5": 1, + "h6": 1, + "hr": 0, + "img": 0, + "li": 1, + "ul": 1, + "p": 1, + "strong": 0, + "td": 1 + } + } }, { - "select": ["PULL_CONTRIBUTOR"], - "formattingMultiplier": 0.25, - "wordValue": 0.1 + "multiplier": 0.25, + "role": [ + "PULL_CONTRIBUTOR" + ], + "rewards": { + "regex": { + "\\b\\w+\\b": 0.1 + }, + "html": { + "a": 1, + "blockquote": 0, + "br": 0, + "code": 1, + "em": 0, + "h1": 1, + "h2": 1, + "h3": 1, + "h4": 1, + "h5": 1, + "h6": 1, + "hr": 0, + "img": 0, + "li": 1, + "ul": 1, + "p": 1, + "strong": 0, + "td": 1 + } + } } - ], - "scores": { - "br": 0, - "code": 1, - "p": 1, - "em": 0, - "img": 0, - "strong": 0, - "blockquote": 0, - "h1": 1, - "h2": 1, - "h3": 1, - "h4": 1, - "h5": 1, - "h6": 1, - "a": 1, - "li": 1, - "td": 1, - "hr": 0 - } + ] }, - "permitGeneration": {}, "githubComment": { - "post": false, - "debug": true - } + "debug": true, + "post": false + }, + "permitGeneration": {} } } diff --git a/tests/__mocks__/routes/issue-comments-get.json b/tests/__mocks__/routes/issue-22-comments-get.json similarity index 100% rename from tests/__mocks__/routes/issue-comments-get.json rename to tests/__mocks__/routes/issue-22-comments-get.json diff --git a/tests/__mocks__/routes/issue-get.json b/tests/__mocks__/routes/issue-22-get.json similarity index 100% rename from tests/__mocks__/routes/issue-get.json rename to tests/__mocks__/routes/issue-22-get.json diff --git a/tests/__mocks__/routes/issue-69-comments-get.json b/tests/__mocks__/routes/issue-69-comments-get.json new file mode 100644 index 00000000..2ecce5eb --- /dev/null +++ b/tests/__mocks__/routes/issue-69-comments-get.json @@ -0,0 +1,612 @@ +[ + { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186772190", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186772190", + "issue_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "id": 2186772190, + "node_id": "IC_kwDOKzVPS86CV37e", + "user": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "created_at": "2024-06-24T14:53:00Z", + "updated_at": "2024-06-24T14:53:00Z", + "author_association": "NONE", + "body": " @0x4007 @gentlementlegen the deadline is at 2024-06-24T15:53:00.259Z", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186772190/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "performed_via_github_app": { + "id": 236521, + "slug": "ubiquibot", + "node_id": "A_kwHOBI33Lc4AA5vp", + "owner": { + "login": "ubiquity", + "id": 76412717, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc2NDEyNzE3", + "avatar_url": "https://avatars.githubusercontent.com/u/76412717?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquity", + "html_url": "https://github.com/ubiquity", + "followers_url": "https://api.github.com/users/ubiquity/followers", + "following_url": "https://api.github.com/users/ubiquity/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquity/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquity/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquity/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquity/orgs", + "repos_url": "https://api.github.com/users/ubiquity/repos", + "events_url": "https://api.github.com/users/ubiquity/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquity/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "UbiquiBot", + "description": "This bot automates functionality of the DevPool by Ubiquity DAO.", + "external_url": "https://github.com/ubiquity/ubiquibot", + "html_url": "https://github.com/apps/ubiquibot", + "created_at": "2022-09-09T11:32:39Z", + "updated_at": "2023-12-21T01:25:09Z", + "permissions": { + "actions": "write", + "contents": "write", + "issues": "write", + "members": "read", + "metadata": "read", + "pull_requests": "write" + }, + "events": [ + "commit_comment", + "create", + "delete", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "merge_queue_entry", + "milestone", + "organization", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "release", + "repository", + "repository_dispatch", + "star", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_job", + "workflow_run" + ] + } + }, + { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186799744", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186799744", + "issue_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "id": 2186799744, + "node_id": "IC_kwDOKzVPS86CV-qA", + "user": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "created_at": "2024-06-24T15:05:48Z", + "updated_at": "2024-06-24T15:05:48Z", + "author_association": "NONE", + "body": "```diff\n+ Evaluating results. Please wait...\n```\n", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186799744/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "performed_via_github_app": { + "id": 236521, + "slug": "ubiquibot", + "node_id": "A_kwHOBI33Lc4AA5vp", + "owner": { + "login": "ubiquity", + "id": 76412717, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc2NDEyNzE3", + "avatar_url": "https://avatars.githubusercontent.com/u/76412717?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquity", + "html_url": "https://github.com/ubiquity", + "followers_url": "https://api.github.com/users/ubiquity/followers", + "following_url": "https://api.github.com/users/ubiquity/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquity/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquity/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquity/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquity/orgs", + "repos_url": "https://api.github.com/users/ubiquity/repos", + "events_url": "https://api.github.com/users/ubiquity/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquity/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "UbiquiBot", + "description": "This bot automates functionality of the DevPool by Ubiquity DAO.", + "external_url": "https://github.com/ubiquity/ubiquibot", + "html_url": "https://github.com/apps/ubiquibot", + "created_at": "2022-09-09T11:32:39Z", + "updated_at": "2023-12-21T01:25:09Z", + "permissions": { + "actions": "write", + "contents": "write", + "issues": "write", + "members": "read", + "metadata": "read", + "pull_requests": "write" + }, + "events": [ + "commit_comment", + "create", + "delete", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "merge_queue_entry", + "milestone", + "organization", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "release", + "repository", + "repository_dispatch", + "star", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_job", + "workflow_run" + ] + } + }, + { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186800990", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186800990", + "issue_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "id": 2186800990, + "node_id": "IC_kwDOKzVPS86CV-9e", + "user": { + "login": "ubiquibot-v2-testing[bot]", + "id": 163226901, + "node_id": "BOT_kgDOCbqlFQ", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot-v2-testing", + "followers_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "created_at": "2024-06-24T15:06:22Z", + "updated_at": "2024-06-24T15:06:22Z", + "author_association": "NONE", + "body": "

[ 54.8 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Task 1 50
Issue Specification 1 4.8
Conversation Incentives
Comment Formatting Relevance Reward
Looks like the filters are barely useable now that we have the s…
4.8
content:
  p:
    count: 48
    score: 1
  img:
    count: 1
    score: 0
wordValue: 0.1
formattingMultiplier: 1
1 4.8
", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186800990/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "performed_via_github_app": { + "id": 854943, + "slug": "ubiquibot-v2-testing", + "node_id": "A_kwDOAJWkoM4ADQuf", + "owner": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "name": "ubiquibot-v2-testing", + "description": "TESTING VERSION\r\nEnables Ubiquity DevPool automation in your repository.", + "external_url": "https://github.com/ubiquity/ubiquibot-kernel.git", + "html_url": "https://github.com/apps/ubiquibot-v2-testing", + "created_at": "2024-03-13T03:08:55Z", + "updated_at": "2024-07-08T21:13:40Z", + "permissions": { + "actions": "write", + "contents": "write", + "issues": "write", + "members": "read", + "metadata": "read", + "organization_hooks": "write", + "pull_requests": "write", + "repository_hooks": "write", + "workflows": "write" + }, + "events": [ + "issues", + "issue_comment", + "label", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "repository_dispatch" + ] + } + }, + { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186801438", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186801438", + "issue_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "id": 2186801438, + "node_id": "IC_kwDOKzVPS86CV_Ee", + "user": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "created_at": "2024-06-24T15:06:35Z", + "updated_at": "2024-06-24T15:06:35Z", + "author_association": "NONE", + "body": "\n
\n \n

\n \n [ 50.8 WXDAI ]\n

\n
@0x4007
\n
\n
Contributions Overview
\n\n\n\n\n\n\n\n
ViewContributionCountReward
IssueSpecification19.6
IssueTask0.550
ReviewComment210.8
ReviewComment25.4
\n
Conversation Incentives
CommentFormattingRelevanceReward
Looks like the filters are barely useable now that we have the s...
9.619.6
I always struggle with Cypress...
10.191
Only doesn't work on my local, the guess is token expiration aft...
9.8\n
a:\n  count: 1\n  score: \"2\"\n  words: 11\n
\n
0.099.8
I always struggle with Cypress...
0.50.190.5
Only doesn't work on my local, the guess is token expiration aft...
4.9\n
a:\n  count: 1\n  score: \"1\"\n  words: 11\n
\n
0.094.9
\n
\n \n\n
\n \n

\n \n [ 25 WXDAI ]\n

\n
@gentlementlegen
\n
\n
Contributions Overview
\n\n\n\n\n
ViewContributionCountReward
IssueTask0.550
\n \n
\n \n", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186801438/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "performed_via_github_app": { + "id": 236521, + "slug": "ubiquibot", + "node_id": "A_kwHOBI33Lc4AA5vp", + "owner": { + "login": "ubiquity", + "id": 76412717, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc2NDEyNzE3", + "avatar_url": "https://avatars.githubusercontent.com/u/76412717?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquity", + "html_url": "https://github.com/ubiquity", + "followers_url": "https://api.github.com/users/ubiquity/followers", + "following_url": "https://api.github.com/users/ubiquity/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquity/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquity/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquity/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquity/orgs", + "repos_url": "https://api.github.com/users/ubiquity/repos", + "events_url": "https://api.github.com/users/ubiquity/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquity/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "UbiquiBot", + "description": "This bot automates functionality of the DevPool by Ubiquity DAO.", + "external_url": "https://github.com/ubiquity/ubiquibot", + "html_url": "https://github.com/apps/ubiquibot", + "created_at": "2022-09-09T11:32:39Z", + "updated_at": "2023-12-21T01:25:09Z", + "permissions": { + "actions": "write", + "contents": "write", + "issues": "write", + "members": "read", + "metadata": "read", + "pull_requests": "write" + }, + "events": [ + "commit_comment", + "create", + "delete", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "merge_queue_entry", + "milestone", + "organization", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "release", + "repository", + "repository_dispatch", + "star", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_job", + "workflow_run" + ] + } + }, + { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186802545", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186802545", + "issue_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "id": 2186802545, + "node_id": "IC_kwDOKzVPS86CV_Vx", + "user": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2024-06-24T15:07:04Z", + "updated_at": "2024-06-24T15:07:04Z", + "author_association": "MEMBER", + "body": "Okay both bots are broken @gentlementlegen \r\n\r\nWe should have split the assignee reward", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186802545/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "performed_via_github_app": null + }, + { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186805818", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186805818", + "issue_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "id": 2186805818, + "node_id": "IC_kwDOKzVPS86CWAI6", + "user": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2024-06-24T15:08:40Z", + "updated_at": "2024-06-24T15:08:40Z", + "author_association": "MEMBER", + "body": "@0x4007 So it should be 25 each? I can confirm this is not handled by v2, I didn't know it was the expected behavior.", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186805818/reactions", + "total_count": 1, + "+1": 0, + "-1": 0, + "laugh": 1, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "performed_via_github_app": null + }, + { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186807999", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186807999", + "issue_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "id": 2186807999, + "node_id": "IC_kwDOKzVPS86CWAq_", + "user": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2024-06-24T15:09:39Z", + "updated_at": "2024-06-24T15:09:55Z", + "author_association": "MEMBER", + "body": "Actually, looks like it did the right thing for your reward on v1, just the score breakdown doesn't display correctly.", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186807999/reactions", + "total_count": 1, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 1 + }, + "performed_via_github_app": null + }, + { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186813200", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186813200", + "issue_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "id": 2186813200, + "node_id": "IC_kwDOKzVPS86CWB8Q", + "user": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2024-06-24T15:12:11Z", + "updated_at": "2024-06-24T15:12:11Z", + "author_association": "MEMBER", + "body": "Ah yes because it doesn't apply the `0.5` multiplier I see. Will fix that on v2.", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186813200/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "performed_via_github_app": null + } +] diff --git a/tests/__mocks__/routes/issue-69-events-get.json b/tests/__mocks__/routes/issue-69-events-get.json new file mode 100644 index 00000000..94f1373d --- /dev/null +++ b/tests/__mocks__/routes/issue-69-events-get.json @@ -0,0 +1,865 @@ +[ + { + "id": 13265658510, + "node_id": "LE_lADOKzVPS86NRUHmzwAAAAMWseKO", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13265658510", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "labeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T12:28:45Z", + "label": { + "name": "Time: <1 Hour", + "color": "ededed" + }, + "performed_via_github_app": null + }, + { + "id": 13265658517, + "node_id": "LE_lADOKzVPS86NRUHmzwAAAAMWseKV", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13265658517", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "labeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T12:28:45Z", + "label": { + "name": "Priority: 1 (Normal)", + "color": "ededed" + }, + "performed_via_github_app": null + }, + { + "id": 13265658888, + "node_id": "LE_lADOKzVPS86NRUHmzwAAAAMWseQI", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13265658888", + "actor": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "event": "labeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T12:28:47Z", + "label": { + "name": "Price: 25 USD", + "color": "1f883d" + }, + "performed_via_github_app": null + }, + { + "id": 13265658902, + "node_id": "LE_lADOKzVPS86NRUHmzwAAAAMWseQW", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13265658902", + "actor": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "event": "labeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T12:28:47Z", + "label": { + "name": "Price: 25 USD", + "color": "1f883d" + }, + "performed_via_github_app": null + }, + { + "id": 13265997743, + "node_id": "AE_lADOKzVPS86NRUHmzwAAAAMWtw-v", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13265997743", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "assigned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T12:54:43Z", + "assignee": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "assigner": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "performed_via_github_app": null + }, + { + "id": 13267747001, + "node_id": "AE_lADOKzVPS86NRUHmzwAAAAMW0cC5", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267747001", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "assigned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:52:58Z", + "assignee": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "assigner": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "performed_via_github_app": null + }, + { + "id": 13267747667, + "node_id": "MEE_lADOKzVPS86NRUHmzwAAAAMW0cNT", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267747667", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "mentioned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:01Z", + "performed_via_github_app": null + }, + { + "id": 13267747677, + "node_id": "SE_lADOKzVPS86NRUHmzwAAAAMW0cNd", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267747677", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "subscribed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:01Z", + "performed_via_github_app": null + }, + { + "id": 13267747693, + "node_id": "MEE_lADOKzVPS86NRUHmzwAAAAMW0cNt", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267747693", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "mentioned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:01Z", + "performed_via_github_app": null + }, + { + "id": 13267747706, + "node_id": "SE_lADOKzVPS86NRUHmzwAAAAMW0cN6", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267747706", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "subscribed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:01Z", + "performed_via_github_app": null + }, + { + "id": 13267748553, + "node_id": "UNLE_lADOKzVPS86NRUHmzwAAAAMW0cbJ", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267748553", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "unlabeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:05Z", + "label": { + "name": "Time: <1 Hour", + "color": "ededed" + }, + "performed_via_github_app": null + }, + { + "id": 13267748563, + "node_id": "LE_lADOKzVPS86NRUHmzwAAAAMW0cbT", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267748563", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "labeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:05Z", + "label": { + "name": "Time: <2 Hours", + "color": "ededed" + }, + "performed_via_github_app": null + }, + { + "id": 13267748962, + "node_id": "UNLE_lADOKzVPS86NRUHmzwAAAAMW0chi", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267748962", + "actor": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "event": "unlabeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:07Z", + "label": { + "name": "Price: 25 USD", + "color": "1f883d" + }, + "performed_via_github_app": null + }, + { + "id": 13267749161, + "node_id": "LE_lADOKzVPS86NRUHmzwAAAAMW0ckp", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267749161", + "actor": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "event": "labeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:08Z", + "label": { + "name": "Price: 50 USD", + "color": "1f883d" + }, + "performed_via_github_app": null + }, + { + "id": 13267926164, + "node_id": "CE_lADOKzVPS86NRUHmzwAAAAMW1HyU", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267926164", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "closed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:05:45Z", + "state_reason": null, + "performed_via_github_app": null + }, + { + "id": 13267934769, + "node_id": "MEE_lADOKzVPS86NRUHmzwAAAAMW1J4x", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267934769", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "mentioned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:06:24Z", + "performed_via_github_app": null + }, + { + "id": 13267934785, + "node_id": "SE_lADOKzVPS86NRUHmzwAAAAMW1J5B", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267934785", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "subscribed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:06:24Z", + "performed_via_github_app": null + }, + { + "id": 13267937209, + "node_id": "MEE_lADOKzVPS86NRUHmzwAAAAMW1Ke5", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267937209", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "mentioned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:06:36Z", + "performed_via_github_app": null + }, + { + "id": 13267937221, + "node_id": "SE_lADOKzVPS86NRUHmzwAAAAMW1KfF", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267937221", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "subscribed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:06:36Z", + "performed_via_github_app": null + }, + { + "id": 13267937239, + "node_id": "MEE_lADOKzVPS86NRUHmzwAAAAMW1KfX", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267937239", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "mentioned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:06:36Z", + "performed_via_github_app": null + }, + { + "id": 13267937250, + "node_id": "SE_lADOKzVPS86NRUHmzwAAAAMW1Kfi", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267937250", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "subscribed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:06:36Z", + "performed_via_github_app": null + }, + { + "id": 13267943939, + "node_id": "MEE_lADOKzVPS86NRUHmzwAAAAMW1MID", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267943939", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "mentioned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:07:05Z", + "performed_via_github_app": null + }, + { + "id": 13267943962, + "node_id": "SE_lADOKzVPS86NRUHmzwAAAAMW1MIa", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267943962", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "subscribed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:07:05Z", + "performed_via_github_app": null + }, + { + "id": 13267965284, + "node_id": "MEE_lADOKzVPS86NRUHmzwAAAAMW1RVk", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267965284", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "mentioned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:08:41Z", + "performed_via_github_app": null + }, + { + "id": 13267965295, + "node_id": "SE_lADOKzVPS86NRUHmzwAAAAMW1RVv", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267965295", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "subscribed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:08:41Z", + "performed_via_github_app": null + } +] diff --git a/tests/__mocks__/routes/issue-69-get.json b/tests/__mocks__/routes/issue-69-get.json new file mode 100644 index 00000000..12110ab3 --- /dev/null +++ b/tests/__mocks__/routes/issue-69-get.json @@ -0,0 +1,168 @@ +{ + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "repository_url": "https://api.github.com/repos/ubiquity/work.ubq.fi", + "labels_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69/labels{/name}", + "comments_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69/comments", + "events_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69/events", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69", + "id": 2370126310, + "node_id": "I_kwDOKzVPS86NRUHm", + "number": 69, + "title": "Move Filters to Bottom Bar on Portrait", + "user": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6445149668, + "node_id": "LA_kwDOKzVPS88AAAABgCkt5A", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/labels/Time:%20%3C2%20Hours", + "name": "Time: <2 Hours", + "color": "ededed", + "default": false, + "description": null + }, + { + "id": 6445149844, + "node_id": "LA_kwDOKzVPS88AAAABgCkulA", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/labels/Priority:%201%20(Normal)", + "name": "Priority: 1 (Normal)", + "color": "ededed", + "default": false, + "description": null + }, + { + "id": 6684609131, + "node_id": "LA_kwDOKzVPS88AAAABjm8Kaw", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/labels/Price:%2050%20USD", + "name": "Price: 50 USD", + "color": "1f883d", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 8, + "created_at": "2024-06-24T12:28:45Z", + "updated_at": "2024-06-24T15:12:12Z", + "closed_at": "2024-06-24T15:05:44Z", + "author_association": "MEMBER", + "active_lock_reason": null, + "body": "Looks like the filters are barely useable now that we have the side scrolling, and the additional UI on the top right. Intended for mobile, it makes sense to have the frequently used controls near the bottom of the screen so that the app is easier to use. \r\n\r\n![IMG_103370966922-1](https://github.com/ubiquity/work.ubq.fi/assets/4975670/149aca97-49ce-4d37-9757-00223cae9920)\r\n", + "closed_by": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69/timeline", + "performed_via_github_app": null, + "state_reason": "completed" +} diff --git a/tests/__mocks__/routes/issue-69-timeline-get.json b/tests/__mocks__/routes/issue-69-timeline-get.json new file mode 100644 index 00000000..1da50879 --- /dev/null +++ b/tests/__mocks__/routes/issue-69-timeline-get.json @@ -0,0 +1,1808 @@ +[ + { + "id": 13265658510, + "node_id": "LE_lADOKzVPS86NRUHmzwAAAAMWseKO", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13265658510", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "labeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T12:28:45Z", + "label": { + "name": "Time: <1 Hour", + "color": "ededed" + }, + "performed_via_github_app": null + }, + { + "id": 13265658517, + "node_id": "LE_lADOKzVPS86NRUHmzwAAAAMWseKV", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13265658517", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "labeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T12:28:45Z", + "label": { + "name": "Priority: 1 (Normal)", + "color": "ededed" + }, + "performed_via_github_app": null + }, + { + "id": 13265658888, + "node_id": "LE_lADOKzVPS86NRUHmzwAAAAMWseQI", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13265658888", + "actor": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "event": "labeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T12:28:47Z", + "label": { + "name": "Price: 25 USD", + "color": "1f883d" + }, + "performed_via_github_app": null + }, + { + "id": 13265658902, + "node_id": "LE_lADOKzVPS86NRUHmzwAAAAMWseQW", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13265658902", + "actor": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "event": "labeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T12:28:47Z", + "label": { + "name": "Price: 25 USD", + "color": "1f883d" + }, + "performed_via_github_app": null + }, + { + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2024-06-24T12:54:40Z", + "updated_at": "2024-06-24T12:54:40Z", + "source": { + "type": "issue", + "issue": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/70", + "repository_url": "https://api.github.com/repos/ubiquity/work.ubq.fi", + "labels_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/70/labels{/name}", + "comments_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/70/comments", + "events_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/70/events", + "html_url": "https://github.com/ubiquity/work.ubq.fi/pull/70", + "id": 2370184795, + "node_id": "PR_kwDOKzVPS85zXUoj", + "number": 70, + "title": "fix: add state to sorting manager for bottom and top", + "user": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + + ], + "state": "closed", + "locked": false, + "assignee": null, + "assignees": [ + + ], + "milestone": null, + "comments": 4, + "created_at": "2024-06-24T12:54:40Z", + "updated_at": "2024-06-24T16:02:27Z", + "closed_at": "2024-06-24T15:05:43Z", + "author_association": "MEMBER", + "active_lock_reason": null, + "draft": false, + "repository": { + "id": 724913995, + "node_id": "R_kgDOKzVPSw", + "name": "work.ubq.fi", + "full_name": "ubiquity/work.ubq.fi", + "private": false, + "owner": { + "login": "ubiquity", + "id": 76412717, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc2NDEyNzE3", + "avatar_url": "https://avatars.githubusercontent.com/u/76412717?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquity", + "html_url": "https://github.com/ubiquity", + "followers_url": "https://api.github.com/users/ubiquity/followers", + "following_url": "https://api.github.com/users/ubiquity/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquity/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquity/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquity/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquity/orgs", + "repos_url": "https://api.github.com/users/ubiquity/repos", + "events_url": "https://api.github.com/users/ubiquity/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquity/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/ubiquity/work.ubq.fi", + "description": "A user interface for https://github.com/ubiquity/devpool-directory/issues", + "fork": false, + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi", + "forks_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/forks", + "keys_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/teams", + "hooks_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/hooks", + "issue_events_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events{/number}", + "events_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/events", + "assignees_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/assignees{/user}", + "branches_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/branches{/branch}", + "tags_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/tags", + "blobs_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/statuses/{sha}", + "languages_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/languages", + "stargazers_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/stargazers", + "contributors_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/contributors", + "subscribers_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/subscribers", + "subscription_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/subscription", + "commits_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/contents/{+path}", + "compare_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/merges", + "archive_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/downloads", + "issues_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues{/number}", + "pulls_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/pulls{/number}", + "milestones_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/milestones{/number}", + "notifications_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/labels{/name}", + "releases_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/releases{/id}", + "deployments_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/deployments", + "created_at": "2023-11-29T03:30:57Z", + "updated_at": "2024-06-24T17:08:04Z", + "pushed_at": "2024-07-23T15:14:25Z", + "git_url": "git://github.com/ubiquity/work.ubq.fi.git", + "ssh_url": "git@github.com:ubiquity/work.ubq.fi.git", + "clone_url": "https://github.com/ubiquity/work.ubq.fi.git", + "svn_url": "https://github.com/ubiquity/work.ubq.fi", + "homepage": "https://work.ubq.fi", + "size": 1012, + "stargazers_count": 0, + "watchers_count": 0, + "language": "TypeScript", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": true, + "forks_count": 13, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 8, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [ + + ], + "visibility": "public", + "forks": 13, + "open_issues": 8, + "watchers": 0, + "default_branch": "development" + }, + "pull_request": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/pulls/70", + "html_url": "https://github.com/ubiquity/work.ubq.fi/pull/70", + "diff_url": "https://github.com/ubiquity/work.ubq.fi/pull/70.diff", + "patch_url": "https://github.com/ubiquity/work.ubq.fi/pull/70.patch", + "merged_at": "2024-06-24T15:05:43Z" + }, + "body": "Resolves https://github.com/ubiquity/work.ubq.fi/issues/69\r\n\r\n\r\n", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/70/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/70/timeline", + "performed_via_github_app": null, + "state_reason": null + } + }, + "event": "cross-referenced" + }, + { + "id": 13265997743, + "node_id": "AE_lADOKzVPS86NRUHmzwAAAAMWtw-v", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13265997743", + "actor": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "event": "assigned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T12:54:43Z", + "assignee": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "performed_via_github_app": null + }, + { + "id": 13267747001, + "node_id": "AE_lADOKzVPS86NRUHmzwAAAAMW0cC5", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267747001", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "assigned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:52:58Z", + "assignee": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "performed_via_github_app": null + }, + { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186772190", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186772190", + "issue_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "id": 2186772190, + "node_id": "IC_kwDOKzVPS86CV37e", + "user": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "created_at": "2024-06-24T14:53:00Z", + "updated_at": "2024-06-24T14:53:00Z", + "author_association": "NONE", + "body": " @0x4007 @gentlementlegen the deadline is at 2024-06-24T15:53:00.259Z", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186772190/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "performed_via_github_app": { + "id": 236521, + "slug": "ubiquibot", + "node_id": "A_kwHOBI33Lc4AA5vp", + "owner": { + "login": "ubiquity", + "id": 76412717, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc2NDEyNzE3", + "avatar_url": "https://avatars.githubusercontent.com/u/76412717?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquity", + "html_url": "https://github.com/ubiquity", + "followers_url": "https://api.github.com/users/ubiquity/followers", + "following_url": "https://api.github.com/users/ubiquity/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquity/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquity/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquity/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquity/orgs", + "repos_url": "https://api.github.com/users/ubiquity/repos", + "events_url": "https://api.github.com/users/ubiquity/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquity/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "UbiquiBot", + "description": "This bot automates functionality of the DevPool by Ubiquity DAO.", + "external_url": "https://github.com/ubiquity/ubiquibot", + "html_url": "https://github.com/apps/ubiquibot", + "created_at": "2022-09-09T11:32:39Z", + "updated_at": "2023-12-21T01:25:09Z", + "permissions": { + "actions": "write", + "contents": "write", + "issues": "write", + "members": "read", + "metadata": "read", + "pull_requests": "write" + }, + "events": [ + "commit_comment", + "create", + "delete", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "merge_queue_entry", + "milestone", + "organization", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "release", + "repository", + "repository_dispatch", + "star", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_job", + "workflow_run" + ] + }, + "event": "commented", + "actor": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + } + }, + { + "id": 13267747667, + "node_id": "MEE_lADOKzVPS86NRUHmzwAAAAMW0cNT", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267747667", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "mentioned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:01Z", + "performed_via_github_app": null + }, + { + "id": 13267747677, + "node_id": "SE_lADOKzVPS86NRUHmzwAAAAMW0cNd", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267747677", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "subscribed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:01Z", + "performed_via_github_app": null + }, + { + "id": 13267747693, + "node_id": "MEE_lADOKzVPS86NRUHmzwAAAAMW0cNt", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267747693", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "mentioned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:01Z", + "performed_via_github_app": null + }, + { + "id": 13267747706, + "node_id": "SE_lADOKzVPS86NRUHmzwAAAAMW0cN6", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267747706", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "subscribed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:01Z", + "performed_via_github_app": null + }, + { + "id": 13267748553, + "node_id": "UNLE_lADOKzVPS86NRUHmzwAAAAMW0cbJ", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267748553", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "unlabeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:05Z", + "label": { + "name": "Time: <1 Hour", + "color": "ededed" + }, + "performed_via_github_app": null + }, + { + "id": 13267748563, + "node_id": "LE_lADOKzVPS86NRUHmzwAAAAMW0cbT", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267748563", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "labeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:05Z", + "label": { + "name": "Time: <2 Hours", + "color": "ededed" + }, + "performed_via_github_app": null + }, + { + "id": 13267748962, + "node_id": "UNLE_lADOKzVPS86NRUHmzwAAAAMW0chi", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267748962", + "actor": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "event": "unlabeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:07Z", + "label": { + "name": "Price: 25 USD", + "color": "1f883d" + }, + "performed_via_github_app": null + }, + { + "id": 13267749161, + "node_id": "LE_lADOKzVPS86NRUHmzwAAAAMW0ckp", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267749161", + "actor": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "event": "labeled", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T14:53:08Z", + "label": { + "name": "Price: 50 USD", + "color": "1f883d" + }, + "performed_via_github_app": null + }, + { + "id": 13267926164, + "node_id": "CE_lADOKzVPS86NRUHmzwAAAAMW1HyU", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267926164", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "closed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:05:45Z", + "state_reason": null, + "performed_via_github_app": null + }, + { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186799744", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186799744", + "issue_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "id": 2186799744, + "node_id": "IC_kwDOKzVPS86CV-qA", + "user": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "created_at": "2024-06-24T15:05:48Z", + "updated_at": "2024-06-24T15:05:48Z", + "author_association": "NONE", + "body": "```diff\n+ Evaluating results. Please wait...\n```\n", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186799744/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "performed_via_github_app": { + "id": 236521, + "slug": "ubiquibot", + "node_id": "A_kwHOBI33Lc4AA5vp", + "owner": { + "login": "ubiquity", + "id": 76412717, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc2NDEyNzE3", + "avatar_url": "https://avatars.githubusercontent.com/u/76412717?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquity", + "html_url": "https://github.com/ubiquity", + "followers_url": "https://api.github.com/users/ubiquity/followers", + "following_url": "https://api.github.com/users/ubiquity/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquity/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquity/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquity/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquity/orgs", + "repos_url": "https://api.github.com/users/ubiquity/repos", + "events_url": "https://api.github.com/users/ubiquity/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquity/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "UbiquiBot", + "description": "This bot automates functionality of the DevPool by Ubiquity DAO.", + "external_url": "https://github.com/ubiquity/ubiquibot", + "html_url": "https://github.com/apps/ubiquibot", + "created_at": "2022-09-09T11:32:39Z", + "updated_at": "2023-12-21T01:25:09Z", + "permissions": { + "actions": "write", + "contents": "write", + "issues": "write", + "members": "read", + "metadata": "read", + "pull_requests": "write" + }, + "events": [ + "commit_comment", + "create", + "delete", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "merge_queue_entry", + "milestone", + "organization", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "release", + "repository", + "repository_dispatch", + "star", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_job", + "workflow_run" + ] + }, + "event": "commented", + "actor": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + } + }, + { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186800990", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186800990", + "issue_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "id": 2186800990, + "node_id": "IC_kwDOKzVPS86CV-9e", + "user": { + "login": "ubiquibot-v2-testing[bot]", + "id": 163226901, + "node_id": "BOT_kgDOCbqlFQ", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot-v2-testing", + "followers_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "created_at": "2024-06-24T15:06:22Z", + "updated_at": "2024-06-24T15:06:22Z", + "author_association": "NONE", + "body": "

[ 54.8 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Task 1 50
Issue Specification 1 4.8
Conversation Incentives
Comment Formatting Relevance Reward
Looks like the filters are barely useable now that we have the s…
4.8
content:
  p:
    count: 48
    score: 1
  img:
    count: 1
    score: 0
wordValue: 0.1
formattingMultiplier: 1
1 4.8
", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186800990/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "performed_via_github_app": { + "id": 854943, + "slug": "ubiquibot-v2-testing", + "node_id": "A_kwDOAJWkoM4ADQuf", + "owner": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "name": "ubiquibot-v2-testing", + "description": "TESTING VERSION\r\nEnables Ubiquity DevPool automation in your repository.", + "external_url": "https://github.com/ubiquity/ubiquibot-kernel.git", + "html_url": "https://github.com/apps/ubiquibot-v2-testing", + "created_at": "2024-03-13T03:08:55Z", + "updated_at": "2024-07-08T21:13:40Z", + "permissions": { + "actions": "write", + "contents": "write", + "issues": "write", + "members": "read", + "metadata": "read", + "organization_hooks": "write", + "pull_requests": "write", + "repository_hooks": "write", + "workflows": "write" + }, + "events": [ + "issues", + "issue_comment", + "label", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "repository_dispatch" + ] + }, + "event": "commented", + "actor": { + "login": "ubiquibot-v2-testing[bot]", + "id": 163226901, + "node_id": "BOT_kgDOCbqlFQ", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot-v2-testing", + "followers_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot-v2-testing%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + } + }, + { + "id": 13267934769, + "node_id": "MEE_lADOKzVPS86NRUHmzwAAAAMW1J4x", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267934769", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "mentioned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:06:24Z", + "performed_via_github_app": null + }, + { + "id": 13267934785, + "node_id": "SE_lADOKzVPS86NRUHmzwAAAAMW1J5B", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267934785", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "subscribed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:06:24Z", + "performed_via_github_app": null + }, + { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186801438", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186801438", + "issue_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "id": 2186801438, + "node_id": "IC_kwDOKzVPS86CV_Ee", + "user": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "created_at": "2024-06-24T15:06:35Z", + "updated_at": "2024-06-24T15:06:35Z", + "author_association": "NONE", + "body": "\n
\n \n

\n \n [ 50.8 WXDAI ]\n

\n
@0x4007
\n
\n
Contributions Overview
\n\n\n\n\n\n\n\n
ViewContributionCountReward
IssueSpecification19.6
IssueTask0.550
ReviewComment210.8
ReviewComment25.4
\n
Conversation Incentives
CommentFormattingRelevanceReward
Looks like the filters are barely useable now that we have the s...
9.619.6
I always struggle with Cypress...
10.191
Only doesn't work on my local, the guess is token expiration aft...
9.8\n
a:\n  count: 1\n  score: \"2\"\n  words: 11\n
\n
0.099.8
I always struggle with Cypress...
0.50.190.5
Only doesn't work on my local, the guess is token expiration aft...
4.9\n
a:\n  count: 1\n  score: \"1\"\n  words: 11\n
\n
0.094.9
\n
\n \n\n
\n \n

\n \n [ 25 WXDAI ]\n

\n
@gentlementlegen
\n
\n
Contributions Overview
\n\n\n\n\n
ViewContributionCountReward
IssueTask0.550
\n \n
\n \n", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186801438/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "performed_via_github_app": { + "id": 236521, + "slug": "ubiquibot", + "node_id": "A_kwHOBI33Lc4AA5vp", + "owner": { + "login": "ubiquity", + "id": 76412717, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc2NDEyNzE3", + "avatar_url": "https://avatars.githubusercontent.com/u/76412717?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquity", + "html_url": "https://github.com/ubiquity", + "followers_url": "https://api.github.com/users/ubiquity/followers", + "following_url": "https://api.github.com/users/ubiquity/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquity/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquity/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquity/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquity/orgs", + "repos_url": "https://api.github.com/users/ubiquity/repos", + "events_url": "https://api.github.com/users/ubiquity/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquity/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "UbiquiBot", + "description": "This bot automates functionality of the DevPool by Ubiquity DAO.", + "external_url": "https://github.com/ubiquity/ubiquibot", + "html_url": "https://github.com/apps/ubiquibot", + "created_at": "2022-09-09T11:32:39Z", + "updated_at": "2023-12-21T01:25:09Z", + "permissions": { + "actions": "write", + "contents": "write", + "issues": "write", + "members": "read", + "metadata": "read", + "pull_requests": "write" + }, + "events": [ + "commit_comment", + "create", + "delete", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "merge_queue_entry", + "milestone", + "organization", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "release", + "repository", + "repository_dispatch", + "star", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_job", + "workflow_run" + ] + }, + "event": "commented", + "actor": { + "login": "ubiquibot[bot]", + "id": 113181824, + "node_id": "BOT_kgDOBr8EgA", + "avatar_url": "https://avatars.githubusercontent.com/in/236521?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot%5Bbot%5D", + "html_url": "https://github.com/apps/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + } + }, + { + "id": 13267937209, + "node_id": "MEE_lADOKzVPS86NRUHmzwAAAAMW1Ke5", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267937209", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "mentioned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:06:36Z", + "performed_via_github_app": null + }, + { + "id": 13267937221, + "node_id": "SE_lADOKzVPS86NRUHmzwAAAAMW1KfF", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267937221", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "event": "subscribed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:06:36Z", + "performed_via_github_app": null + }, + { + "id": 13267937239, + "node_id": "MEE_lADOKzVPS86NRUHmzwAAAAMW1KfX", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267937239", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "mentioned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:06:36Z", + "performed_via_github_app": null + }, + { + "id": 13267937250, + "node_id": "SE_lADOKzVPS86NRUHmzwAAAAMW1Kfi", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267937250", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "subscribed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:06:36Z", + "performed_via_github_app": null + }, + { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186802545", + "html_url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186802545", + "issue_url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/69", + "id": 2186802545, + "node_id": "IC_kwDOKzVPS86CV_Vx", + "user": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2024-06-24T15:07:04Z", + "updated_at": "2024-06-24T15:07:04Z", + "author_association": "MEMBER", + "body": "Okay both bots are broken @gentlementlegen \r\n\r\nWe should have split the assignee reward", + "reactions": { + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/comments/2186802545/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "performed_via_github_app": null, + "event": "commented", + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + } + }, + { + "id": 13267943939, + "node_id": "MEE_lADOKzVPS86NRUHmzwAAAAMW1MID", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267943939", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "mentioned", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:07:05Z", + "performed_via_github_app": null + }, + { + "id": 13267943962, + "node_id": "SE_lADOKzVPS86NRUHmzwAAAAMW1MIa", + "url": "https://api.github.com/repos/ubiquity/work.ubq.fi/issues/events/13267943962", + "actor": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "event": "subscribed", + "commit_id": null, + "commit_url": null, + "created_at": "2024-06-24T15:07:05Z", + "performed_via_github_app": null + }, + { + "actor": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2024-06-24T15:08:08Z", + "updated_at": "2024-06-24T15:08:08Z", + "source": { + "type": "issue", + "issue": { + "url": "https://api.github.com/repos/ubiquibot/conversation-rewards/issues/48", + "repository_url": "https://api.github.com/repos/ubiquibot/conversation-rewards", + "labels_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/issues/48/labels{/name}", + "comments_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/issues/48/comments", + "events_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/issues/48/events", + "html_url": "https://github.com/ubiquibot/conversation-rewards/issues/48", + "id": 2370492406, + "node_id": "I_kwDOLUK0B86NStf2", + "number": 48, + "title": "Split Assignee Reward", + "user": { + "login": "0x4007", + "id": 4975670, + "node_id": "MDQ6VXNlcjQ5NzU2NzA=", + "avatar_url": "https://avatars.githubusercontent.com/u/4975670?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0x4007", + "html_url": "https://github.com/0x4007", + "followers_url": "https://api.github.com/users/0x4007/followers", + "following_url": "https://api.github.com/users/0x4007/following{/other_user}", + "gists_url": "https://api.github.com/users/0x4007/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0x4007/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0x4007/subscriptions", + "organizations_url": "https://api.github.com/users/0x4007/orgs", + "repos_url": "https://api.github.com/users/0x4007/repos", + "events_url": "https://api.github.com/users/0x4007/events{/privacy}", + "received_events_url": "https://api.github.com/users/0x4007/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6694362659, + "node_id": "LA_kwDOLUK0B88AAAABjwPeIw", + "url": "https://api.github.com/repos/ubiquibot/conversation-rewards/labels/Time:%20%3C2%20Hours", + "name": "Time: <2 Hours", + "color": "ededed", + "default": false, + "description": null + }, + { + "id": 6694362851, + "node_id": "LA_kwDOLUK0B88AAAABjwPe4w", + "url": "https://api.github.com/repos/ubiquibot/conversation-rewards/labels/Priority:%202%20(Medium)", + "name": "Priority: 2 (Medium)", + "color": "ededed", + "default": false, + "description": null + }, + { + "id": 6768021882, + "node_id": "LA_kwDOLUK0B88AAAABk2fReg", + "url": "https://api.github.com/repos/ubiquibot/conversation-rewards/labels/Price:%20100%20USD", + "name": "Price: 100 USD", + "color": "1f883d", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "gentlementlegen", + "id": 9807008, + "node_id": "MDQ6VXNlcjk4MDcwMDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/9807008?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gentlementlegen", + "html_url": "https://github.com/gentlementlegen", + "followers_url": "https://api.github.com/users/gentlementlegen/followers", + "following_url": "https://api.github.com/users/gentlementlegen/following{/other_user}", + "gists_url": "https://api.github.com/users/gentlementlegen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gentlementlegen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gentlementlegen/subscriptions", + "organizations_url": "https://api.github.com/users/gentlementlegen/orgs", + "repos_url": "https://api.github.com/users/gentlementlegen/repos", + "events_url": "https://api.github.com/users/gentlementlegen/events{/privacy}", + "received_events_url": "https://api.github.com/users/gentlementlegen/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 5, + "created_at": "2024-06-24T15:08:08Z", + "updated_at": "2024-07-10T00:57:40Z", + "closed_at": "2024-07-10T00:56:56Z", + "author_association": "MEMBER", + "active_lock_reason": null, + "repository": { + "id": 759346183, + "node_id": "R_kgDOLUK0Bw", + "name": "conversation-rewards", + "full_name": "ubiquibot/conversation-rewards", + "private": false, + "owner": { + "login": "ubiquibot", + "id": 133917611, + "node_id": "O_kgDOB_trqw", + "avatar_url": "https://avatars.githubusercontent.com/u/133917611?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ubiquibot", + "html_url": "https://github.com/ubiquibot", + "followers_url": "https://api.github.com/users/ubiquibot/followers", + "following_url": "https://api.github.com/users/ubiquibot/following{/other_user}", + "gists_url": "https://api.github.com/users/ubiquibot/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ubiquibot/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ubiquibot/subscriptions", + "organizations_url": "https://api.github.com/users/ubiquibot/orgs", + "repos_url": "https://api.github.com/users/ubiquibot/repos", + "events_url": "https://api.github.com/users/ubiquibot/events{/privacy}", + "received_events_url": "https://api.github.com/users/ubiquibot/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/ubiquibot/conversation-rewards", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/ubiquibot/conversation-rewards", + "forks_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/forks", + "keys_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/teams", + "hooks_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/hooks", + "issue_events_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/issues/events{/number}", + "events_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/events", + "assignees_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/assignees{/user}", + "branches_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/branches{/branch}", + "tags_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/tags", + "blobs_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/statuses/{sha}", + "languages_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/languages", + "stargazers_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/stargazers", + "contributors_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/contributors", + "subscribers_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/subscribers", + "subscription_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/subscription", + "commits_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/contents/{+path}", + "compare_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/merges", + "archive_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/downloads", + "issues_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/issues{/number}", + "pulls_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/pulls{/number}", + "milestones_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/milestones{/number}", + "notifications_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/labels{/name}", + "releases_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/releases{/id}", + "deployments_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/deployments", + "created_at": "2024-02-18T10:40:07Z", + "updated_at": "2024-07-19T08:31:26Z", + "pushed_at": "2024-07-24T05:10:01Z", + "git_url": "git://github.com/ubiquibot/conversation-rewards.git", + "ssh_url": "git@github.com:ubiquibot/conversation-rewards.git", + "clone_url": "https://github.com/ubiquibot/conversation-rewards.git", + "svn_url": "https://github.com/ubiquibot/conversation-rewards", + "homepage": null, + "size": 1288, + "stargazers_count": 0, + "watchers_count": 0, + "language": "TypeScript", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 10, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 15, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [ + + ], + "visibility": "public", + "forks": 10, + "open_issues": 15, + "watchers": 0, + "default_branch": "development" + }, + "body": "> Okay both bots are broken @gentlementlegen \r\n\r\n> We should have split the assignee reward\r\n\r\n_Originally posted by @0x4007 in https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186802545_\r\n ", + "reactions": { + "url": "https://api.github.com/repos/ubiquibot/conversation-rewards/issues/48/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/ubiquibot/conversation-rewards/issues/48/timeline", + "performed_via_github_app": null, + "state_reason": "completed" + } + }, + "event": "cross-referenced" + } +] diff --git a/tests/process.issue.test.ts b/tests/process.issue.test.ts index 0e9e62f1..69b452d5 100644 --- a/tests/process.issue.test.ts +++ b/tests/process.issue.test.ts @@ -1,25 +1,24 @@ +import fs from "fs"; import { http, HttpResponse } from "msw"; -import { parseGitHubUrl } from "../src/start"; +import configuration from "../src/configuration/config-reader"; import { IssueActivity } from "../src/issue-activity"; +import { ContentEvaluatorModule } from "../src/parser/content-evaluator-module"; +import { DataPurgeModule } from "../src/parser/data-purge-module"; +import { FormattingEvaluatorModule } from "../src/parser/formatting-evaluator-module"; +import { GithubCommentModule } from "../src/parser/github-comment-module"; +import { PermitGenerationModule } from "../src/parser/permit-generation-module"; import { GithubCommentScore, Processor } from "../src/parser/processor"; import { UserExtractorModule } from "../src/parser/user-extractor-module"; +import { parseGitHubUrl } from "../src/start"; +import { db as mockDb } from "./__mocks__/db"; +import dbSeed from "./__mocks__/db-seed.json"; import { server } from "./__mocks__/node"; -import { DataPurgeModule } from "../src/parser/data-purge-module"; -import userCommentResults from "./__mocks__/results/user-comment-results.json"; +import contentEvaluatorResults from "./__mocks__/results/content-evaluator-results.json"; import dataPurgeResults from "./__mocks__/results/data-purge-result.json"; import formattingEvaluatorResults from "./__mocks__/results/formatting-evaluator-results.json"; -import permitGenerationResults from "./__mocks__/results/permit-generation-results.json"; -import contentEvaluatorResults from "./__mocks__/results/content-evaluator-results.json"; import githubCommentResults from "./__mocks__/results/github-comment-results.json"; -import dbSeed from "./__mocks__/db-seed.json"; -import { FormattingEvaluatorModule } from "../src/parser/formatting-evaluator-module"; -import { ContentEvaluatorModule } from "../src/parser/content-evaluator-module"; -import Decimal from "decimal.js"; -import { PermitGenerationModule } from "../src/parser/permit-generation-module"; -import { db as mockDb } from "./__mocks__/db"; -import { GithubCommentModule } from "../src/parser/github-comment-module"; -import fs from "fs"; -import configuration from "../src/configuration/config-reader"; +import permitGenerationResults from "./__mocks__/results/permit-generation-results.json"; +import userCommentResults from "./__mocks__/results/user-comment-results.json"; import validConfiguration from "./__mocks__/results/valid-configuration.json"; import "../src/parser/command-line"; @@ -152,9 +151,9 @@ describe("Modules tests", () => { jest.spyOn(ContentEvaluatorModule.prototype, "_evaluateComments").mockImplementation((specification, comments) => { return Promise.resolve( (() => { - const relevance: { [k: string]: Decimal } = {}; + const relevance: { [k: string]: number } = {}; comments.forEach((comment) => { - relevance[`${comment.id}`] = new Decimal(0.8); + relevance[`${comment.id}`] = 0.8; }); return relevance; })() diff --git a/tests/rewards.test.ts b/tests/rewards.test.ts index a1f3e37f..27e45aaf 100644 --- a/tests/rewards.test.ts +++ b/tests/rewards.test.ts @@ -1,5 +1,4 @@ import { drop } from "@mswjs/data"; -import Decimal from "decimal.js"; import fs from "fs"; import { http, HttpResponse } from "msw"; import githubCommentModuleInstance from "../src/helpers/github-comment-module-instance"; @@ -22,9 +21,9 @@ const issueUrl = "https://github.com/ubiquity/work.ubq.fi/issues/69"; jest.spyOn(ContentEvaluatorModule.prototype, "_evaluateComments").mockImplementation((specification, comments) => { return Promise.resolve( (() => { - const relevance: { [k: string]: Decimal } = {}; + const relevance: { [k: string]: number } = {}; comments.forEach((comment) => { - relevance[`${comment.id}`] = new Decimal(0.8); + relevance[`${comment.id}`] = 0.8; }); return relevance; })() @@ -86,7 +85,7 @@ jest.mock("../src/parser/command-line", () => { eventPayload: { issue: { html_url: issueUrl, - number: 1, + number: 69, state_reason: "completed", }, repository: { @@ -132,6 +131,10 @@ jest.mock("../src/helpers/web3", () => ({ }, })); +beforeAll(() => server.listen()); +afterEach(() => server.resetHandlers()); +afterAll(() => server.close()); + describe("Rewards tests", () => { const issue = parseGitHubUrl(issueUrl); const activity = new IssueActivity(issue); diff --git a/yarn.lock b/yarn.lock index 0dea73a1..dc2bb014 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6609,7 +6609,7 @@ lodash.upperfirst@^4.3.1: resolved "https://registry.yarnpkg.com/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz#1365edf431480481ef0d1c68957a5ed99d49f7ce" integrity sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg== -lodash@4.17.21, lodash@^4.17.15, lodash@^4.17.21: +lodash@^4.17.15, lodash@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==