diff --git a/src/data-collection/collect-linked-pulls.ts b/src/data-collection/collect-linked-pulls.ts index 80a8a931..670b98e1 100644 --- a/src/data-collection/collect-linked-pulls.ts +++ b/src/data-collection/collect-linked-pulls.ts @@ -14,7 +14,8 @@ export async function collectLinkedMergedPulls(issue: IssueParams) { // Works on multiple linked issues, and matches # or URL patterns const linkedIssueRegex = /\b(?:Close(?:s|d)?|Fix(?:es|ed)?|Resolve(?:s|d)?):?\s+(?:#(\d+)|https?:\/\/(?:www\.)?github\.com\/(?:[^/\s]+\/[^/\s]+\/(?:issues|pull)\/(\d+)))\b/gi; - const linkedPrUrls = event.source.issue.body.match(linkedIssueRegex); + // We remove the comments as they should not be part of the linked pull requests + const linkedPrUrls = event.source.issue.body.replace(//, "").match(linkedIssueRegex); if (!linkedPrUrls) { return false; } @@ -33,6 +34,7 @@ export async function collectLinkedMergedPulls(issue: IssueParams) { linkedRepo.owner === issue.owner; } } + if (isClosingPr) break; } return isGitHubLinkEvent(event) && event.source.issue.pull_request?.merged_at && isClosingPr; }); diff --git a/src/parser/github-comment-module.ts b/src/parser/github-comment-module.ts index 72232ce9..6f05942a 100644 --- a/src/parser/github-comment-module.ts +++ b/src/parser/github-comment-module.ts @@ -13,6 +13,7 @@ import { getERC20TokenSymbol } from "../helpers/web3"; import { IssueActivity } from "../issue-activity"; import program from "./command-line"; import { GithubCommentScore, Module, Result } from "./processor"; +import { JSDOM } from "jsdom"; interface SortedTasks { issues: { specification: GithubCommentScore | null; comments: GithubCommentScore[] }; @@ -31,6 +32,16 @@ export class GithubCommentModule implements Module { */ private _lastCommentId: number | null = process.env.COMMENT_ID ? Number(process.env.COMMENT_ID) : null; + /** + * Ensures that a string containing special characters get HTML encoded. + */ + _encodeHTML(str: string) { + const dom = new JSDOM(); + const div = dom.window.document.createElement("div"); + div.appendChild(dom.window.document.createTextNode(str)); + return div.innerHTML; + } + async transform(data: Readonly, result: Result): Promise { const bodyArray: (string | undefined)[] = []; @@ -40,8 +51,7 @@ export class GithubCommentModule implements Module { } // Add the workflow run url and the metadata in the GitHub's comment bodyArray.push("\n"); const body = bodyArray.join(""); if (this._configuration?.debug) { @@ -153,12 +163,13 @@ export class GithubCommentModule implements Module { .replaceAll("&", "&") .replaceAll("<", "<") .replaceAll(">", ">") - .replaceAll("`", "`"); + .replaceAll("`", "`") + .replace(/([\s\S]{64}).[\s\S]+/, "$1…"); return `
- ${sanitizedContent.replace(/(.{64})..+/, "$1…")} + ${sanitizedContent}
diff --git a/src/parser/user-extractor-module.ts b/src/parser/user-extractor-module.ts index 82cf20b7..6d37a104 100644 --- a/src/parser/user-extractor-module.ts +++ b/src/parser/user-extractor-module.ts @@ -22,10 +22,10 @@ export class UserExtractorModule implements Module { } /** - * Checks if the comment is made by a human user, and not empty. + * Checks if the comment is made by a human user, not empty, and not a command. */ _checkEntryValidity(comment: (typeof IssueActivity.prototype.allComments)[0]) { - return comment.body && comment.user?.type === "User"; + return comment.body && comment.user?.type === "User" && comment.body.trim()[0] !== "/"; } /** diff --git a/tests/__mocks__/results/github-comment-results.json b/tests/__mocks__/results/github-comment-results.json index 32ee5f5e..9e3ab4ae 100644 --- a/tests/__mocks__/results/github-comment-results.json +++ b/tests/__mocks__/results/github-comment-results.json @@ -1,297 +1,313 @@ { - "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, + "count": 21, "score": 1 } }, - "wordValue": 0, - "formattingMultiplier": 0 + "formattingMultiplier": 1, + "wordValue": 0.2 }, - "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, + "count": 15, "score": 1 } }, - "wordValue": 0, - "formattingMultiplier": 0 + "formattingMultiplier": 1, + "wordValue": 0.2 }, - "reward": 0, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 2.4 + }, + "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": { + "count": 1, + "score": 1 + }, "p": { - "count": 10, + "count": 67, "score": 1 } }, - "wordValue": 0.2, - "formattingMultiplier": 2 + "formattingMultiplier": 1, + "wordValue": 0.2 }, - "reward": 4, - "relevance": 1 - } + "relevance": 0.8, + "reward": 10.88 + }, + "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, + "count": 8, "score": 1 } }, - "wordValue": 0.2, - "formattingMultiplier": 2 + "formattingMultiplier": 1, + "wordValue": 0.2 }, - "reward": 6, - "relevance": 1 - } - } - ], - "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI0NzUwMDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjEwODAwNTI0OTcwODY5MDEwODU1NTU2MTA2MzI5OTM1MDQ1MTQwNTQ2NDU1MDc5NDkxNzkwNzI0NjYzNjk1OTk5MTMyMjMxMTU3Nzc2NiIsImRlYWRsaW5lIjoiNTc4OTYwNDQ2MTg2NTgwOTc3MTE3ODU0OTI1MDQzNDM5NTM5MjY2MzQ5OTIzMzI4MjAyODIwMTk3Mjg3OTIwMDM5NTY1NjQ4MTk5NjcifSwidHJhbnNmZXJEZXRhaWxzIjp7InRvIjoiMHg0RDA3MDRmNDAwRDU3QmE5M2VFYTg4NzY1QzNGY0RCRDgyNmRDRmM0IiwicmVxdWVzdGVkQW1vdW50IjoiNDc1MDAwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweDU2N2I4YmE0ZmU2NTk2ZGM4ZDBkYmVkYzk0MmEyMWQ2Y2FjMzBhMmFiZDBjODMyODRiMGUyNGNkOGEwOTA3YmMwYjA0MGU1YmVlOGViMDhmMDVkZjU0M2JhMmUzODI5YmE4YTU0ZTQ1Y2YyNjk2NDk1MzczMDAwZTM1NmFmMzlkMWIiLCJuZXR3b3JrSWQiOjEwMH1d", - "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… Resolves: https://github.com/ubiquibot/comment-incentives/issues/22
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
" - }, - "molecula451": { - "total": 1.875, - "userId": 41552663, - "comments": [ + "relevance": 0.8, + "reward": 1.28 + }, + "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, + "count": 7, "score": 1 - }, - "img": { - "count": 1, - "score": 0 } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "formattingMultiplier": 1, + "wordValue": 0.2 }, - "reward": 0.3, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 1.12 + }, + "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, + "count": 51, "score": 1 } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "formattingMultiplier": 1, + "wordValue": 0.2 }, - "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": { + "count": 3, + "score": 1 + }, + "em": { + "count": 6, + "score": 0 + }, + "li": { + "count": 33, + "score": 1 + }, + "ol": { + "count": 33, + "score": 0 + }, "p": { - "count": 7, + "count": 20, "score": 1 } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "formattingMultiplier": 1, + "wordValue": 0.1 }, - "reward": 0.14, - "relevance": 0.8 - } + "relevance": 1, + "reward": 5.6 + }, + "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, + "count": 7, "score": 1 } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "formattingMultiplier": 1, + "wordValue": 0.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, + "count": 12, "score": 1 } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "formattingMultiplier": 1, + "wordValue": 0.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": { - "p": { + "a": { + "count": 1, + "score": 1 + }, + "code": { "count": 2, "score": 1 + }, + "li": { + "count": 4, + "score": 1 + }, + "p": { + "count": 326, + "score": 1 + }, + "ul": { + "count": 4, + "score": 0 } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "formattingMultiplier": 1, + "wordValue": 0.1 }, - "reward": 0.04, - "relevance": 0.8 - } - }, + "relevance": 1, + "reward": 33.3 + }, + "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, + "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, + "count": 26, "score": 1 } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "formattingMultiplier": 0, + "wordValue": 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, + "count": 11, "score": 1 } }, - "wordValue": 0.1, - "formattingMultiplier": 0.25 + "formattingMultiplier": 0, + "wordValue": 0 }, - "reward": 0.45, - "relevance": 1 - } - } - ], - "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIxODc1MDAwMDAwMDAwMDAwMDAwIn0sIm5vbmNlIjoiNTI3ODUzNTAyNjczOTk4MzczNzk3NzMyNTIzMjczMjE4NDgwMzIwMjAyMzk4MjQ4NjYyMDQ3Mjc0NTUzMTcwMTIzMDk3NjYwMDQ2OTciLCJkZWFkbGluZSI6IjU3ODk2MDQ0NjE4NjU4MDk3NzExNzg1NDkyNTA0MzQzOTUzOTI2NjM0OTkyMzMyODIwMjgyMDE5NzI4NzkyMDAzOTU2NTY0ODE5OTY3In0sInRyYW5zZmVyRGV0YWlscyI6eyJ0byI6IjB4NEQwNzA0ZjQwMEQ1N0JhOTNlRWE4ODc2NUMzRmNEQkQ4MjZkQ0ZjNCIsInJlcXVlc3RlZEFtb3VudCI6IjE4NzUwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweDRhMmIyNzBjZWRiODkzZGUzNTUzOTRlYzgyY2YzM2M0NTFmZGYyNDU2YTNmYjVkMzIyZWM3ZGE3NjZkMGQwMGE1MjgwYjBmNmFjNzY2ZjUwNzc4ZTY2NWQ5MjA4ZDcwNzMzYzAxZjI2ODM4MjlhZWJkYzkzZmI2MDU0YmRiMzY5MWMiLCJuZXR3b3JrSWQiOjEwMH1d", - "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_2024-02-16_131036879](https://github.com/ubiquibot/comme… dm what to whom?
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
" - }, - "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, + "count": 10, "score": 1 } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "formattingMultiplier": 2, + "wordValue": 0.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": { @@ -300,62 +316,74 @@ "score": 1 } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "formattingMultiplier": 2, + "wordValue": 0.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" + } + ], + "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
", + "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 - }, - "code": { + "img": { "count": 1, + "score": 0 + }, + "p": { + "count": 15, "score": 1 } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "formattingMultiplier": 0.25, + "wordValue": 0.1 }, - "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, + "count": 5, "score": 1 } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "formattingMultiplier": 0.25, + "wordValue": 0.1 }, - "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": { @@ -364,147 +392,119 @@ "score": 1 } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "formattingMultiplier": 0.25, + "wordValue": 0.1 }, - "reward": 1.12, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 0.14 + }, + "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, + "count": 12, "score": 1 } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "formattingMultiplier": 0.25, + "wordValue": 0.1 }, - "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, + "count": 29, "score": 1 - }, - "em": { - "count": 6, - "score": 0 } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "formattingMultiplier": 0.25, + "wordValue": 0.1 }, - "reward": 5.6, - "relevance": 1 - } + "relevance": 0.8, + "reward": 0.58 + }, + "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, + "count": 2, "score": 1 } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "formattingMultiplier": 0.25, + "wordValue": 0.1 }, - "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, + "count": 1, "score": 1 } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "formattingMultiplier": 0.25, + "wordValue": 0.1 }, - "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, + "count": 18, "score": 1 } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "formattingMultiplier": 0.25, + "wordValue": 0.1 }, - "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==", - "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 … 1. Generate a new key 2. Encrypt a new `evmPrivateKeyEncrypted` (no funds!) and add to the org bot config 3. Add the shared test key to the `comment-incentives` readme. https://github.com/ubiquibot/comment-incentives/pull/21/commits/567419d9688e92edf698f64c697f1a7cafe1d02e _Originally posted by @pavlovcik in https://github.com/ubiquibot/comment-incentives/issues/19#issuecomment-1948876653_
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… I 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!) I 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.
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 … It was the production x25519 key in the GitHub repository secrets when it was working like eight hours ago. Posting this message before checking on my computer to get you before you log off.
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=\"\"> <table class=\"d-block user-select-contain\" data-paste-markdow… <tbody class=\"d-block\"> <tr class=\"d-block\"> <td class=\"d-block comment-body markdown-body js-comment-body\"> <details open=\"\"> <summary> <b> <h3 dir=\"auto\"> <a href=\"https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIyODAwMDAwMDAwMDAwMDAwMDAifSwibm9uY2UiOiIzODYyOTY0MDg5ODkzNzI1MzYwMjc5MjAyNzMxMjA2NzgzMTY0NDI2OTA3NTY2NTIxNzQ0NDkyNjQ1MTA0NTIyODU4Nzk1MjgzMDk0NCIsImRlYWRsaW5lIjoiNTc4OTYwNDQ2MTg2NTgwOTc3MTE3ODU0OTI1MDQzNDM5NTM5MjY2MzQ5OTIzMzI4MjAyODIwMTk3Mjg3OTIwMDM5NTY1NjQ4MTk5NjcifSwidHJhbnNmZXJEZXRhaWxzIjp7InRvIjoiMHgwZkMxYjkwOWJhOTI2NUE4NDZiODJDRjRDRTM1MmZjM2U3RWVCMkVEIiwicmVxdWVzdGVkQW1vdW50IjoiMjgwMDAwMDAwMDAwMDAwMDAwIn0sIm93bmVyIjoiMHg0NENhMTVEYjEwMWZEMWMxOTQ0NjdEYjZBRjBjNjdDNkJiRjRBQjUxIiwic2lnbmF0dXJlIjoiMHhiMzE4MmIwNjJiMDJmMjEwZTIzN2UzODQxMDNmNGE4YTUwMDNjMmYyODhiMDY5Nzg4MTY1ZDkwOWY4ODZmYTMzNTM4MjJlYjA5MGI1ODdjMWFiNWFiOTNjNTVlZDhkOTdiYzM3YzBmZjZlZDJhMWRkM2U1NjQ4M2JlMzk5MWIwNTFjIiwibmV0d29ya0lkIjoxMDB9XQ==\" rel=\"nofollow\"> [ 0.28 WXDAI ] </a> </h3> <h6 dir=\"auto\"> <a class=\"user-mention notranslate\" data-hovercard-type=\"user\" data-hovercard-url=\"/users/gentlementlegen/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\" href=\"https://github.com/gentlementlegen\">@gentlementlegen</a> </h6> </b> </summary> <h6 dir=\"auto\">Contributions Overview</h6> <table role=\"table\"> <thead> <tr> <th>View</th> <th>Contribution</th> <th>Count</th> <th>Reward</th> </tr> </thead> <tbody> <tr> <td>Issue</td> <td>Specification</td> <td>1</td> <td>0.1</td> </tr> <tr> <td>Issue</td> <td>Comment</td> <td>7</td> <td>0.18</td> </tr> </tbody> </table> <h6 dir=\"auto\">Conversation Incentives</h6> <table role=\"table\"> <thead> <tr> <th>Comment</th> <th>Formatting</th> <th>Relevance</th> <th>Reward</th> </tr> </thead> <tbody> <tr> <td> <h6 dir=\"auto\"> <a href=\"https://github.com/Meniole/bot/issues/3\" data-hovercard-type=\"issue\" data-hovercard-url=\"/Meniole/bot/issues/3/hovercard\">issue 2</a> </h6> </td> <td> <details> <summary> 0.2 </summary> <pre class=\"notranslate\">p: count: 2 score: 1 </pre> </details> </td> <td>0.5</td> <td>0.1</td> </tr> <tr> <td> <h6 dir=\"auto\"> <a href=\"https://github.com/Meniole/bot/issues/3#issuecomment-2076607863\" data-hovercard-type=\"issue\" data-hovercard-url=\"/Meniole/bot/issues/3/hovercard\">test</a> </h6> </td> <td> <details> <summary> 0.2 </summary> <pre class=\"notranslate\">p: count: 1 score: 1 </pre> </details> </td> <td>-</td> <td>-</td> </tr> <tr> <td> <h6 dir=\"auto\"> <a href=\"https://github.com/Meniole/bot/issues/3#issuecomment-2076628437\" data-hovercard-type=\"issue\" data-hovercard-url=\"/Meniole/bot/issues/3/hovercard\">```hey```</a> </h6> </td> <td> <details> <summary> 0.4 </summary> <pre class=\"notranslate\">p: count: 1 score: 1 code: count: 1 score: 1 </pre> </details> </td> <td>-</td> <td>-</td> </tr> <tr> <td> <h6 dir=\"auto\"> <a href=\"https://github.com/Meniole/bot/issues/3#issuecomment-2076628605\" data-hovercard-type=\"issue\" data-hovercard-url=\"/Meniole/bot/issues/3/hovercard\">``` heyo ```</a> </h6> </td> <td> <details> <summary> 0.4 </summary> <pre class=\"notranslate\">p: count: 1 score: 1 code: count: 1 score: 1 </pre> </details> </td> <td>-</td> <td>-</td> </tr> <tr> <td> <h6 dir=\"auto\"> <a href=\"https://github.com/Meniole/bot/issues/3#issuecomment-2076632071\" data-hovercard-type=\"issue\" data-hovercard-url=\"/Meniole/bot/issues/3/hovercard\">gr</a> </h6> </td> <td> <details> <summary> 0.2 </summary> <pre class=\"notranslate\">p: count: 1 score: 1 </pre> </details> </td> <td>-</td> <td>-</td> </tr> <tr> <td> <h6 dir=\"auto\"> <a href=\"https://github.com/Meniole/bot/issues/3#issuecomment-2076960228\" data-hovercard-type=\"issue\" data-hovercard-url=\"/Meniole/bot/issues/3/hovercard\">te</a> </h6> </td> <td> <details> <summary> 0.2 </summary> <pre class=\"notranslate\">p: count: 1 score: 1 </pre> </details> </td> <td>-</td> <td>-</td> </tr> <tr> <td> <h6 dir=\"auto\"> <a href=\"https://github.com/Meniole/bot/issues/3#issuecomment-2076964178\" data-hovercard-type=\"issue\" data-hovercard-url=\"/Meniole/bot/issues/3/hovercard\">fwe</a> </h6> </td> <td> <details> <summary> 0.2 </summary> <pre class=\"notranslate\">p: count: 1 score: 1 </pre> </details> </td> <td>-</td> <td>-</td> </tr> <tr> <td> <h6 dir=\"auto\"> <a href=\"https://github.com/Meniole/bot/issues/3#issuecomment-2076972544\" data-hovercard-type=\"issue\" data-hovercard-url=\"/Meniole/bot/issues/3/hovercard\">te</a> </h6> </td> <td> <details> <summary> 0.2 </summary> <pre class=\"notranslate\">p: count: 1 score: 1 </pre> </details> </td> <td>0.9</td> <td>0.18</td> </tr> </tbody> </table> </details> </td> </tr> </tbody> </table> </task-lists> [😂](https://emojipedia.org/face-with-tears-of-joy) - elem 1 - elem 2
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
" + "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, + "userId": 41552663 } } diff --git a/tests/__mocks__/results/output-reward-split.html b/tests/__mocks__/results/output-reward-split.html index 00fbea26..5d0256b7 100644 --- a/tests/__mocks__/results/output-reward-split.html +++ b/tests/__mocks__/results/output-reward-split.html @@ -1,10 +1,10 @@ -

[ 35.08 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Task 0.5 25
Issue Specification 1 4.8
Issue Comment 2 5.28
Conversation Incentives
Comment Formatting Relevance Reward
Looks like the filters are barely useable now that we have the s… ![IMG_103370966922-1](https://github.com/ubiquity/work.ubq.fi/assets/4975670/149aca97-49ce-4d37-9757-00223cae9920)
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 split the assignee reward
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

[ 28.28 WXDAI ]

@gentlementlegen
Contributions Overview
View Contribution Count Reward
Issue Task 0.5 25
Issue Comment 2 3.28
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
+

[ 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
\ No newline at end of file diff --git a/tests/__mocks__/results/output.html b/tests/__mocks__/results/output.html index 8a031870..f2765100 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… Resolves: https://github.com/ubiquibot/comment-incentives/issues/22
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_2024-02-16_131036879](https://github.com/ubiquibot/comme… dm what to whom?
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 … 1. Generate a new key 2. Encrypt a new `evmPrivateKeyEncrypted` (no funds!) and add to the org bot config 3. Add the shared test key to the `comment-incentives` readme. https://github.com/ubiquibot/comment-incentives/pull/21/commits/567419d9688e92edf698f64c697f1a7cafe1d02e _Originally posted by @pavlovcik in https://github.com/ubiquibot/comment-incentives/issues/19#issuecomment-1948876653_
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… I 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!) I 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.
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 … It was the production x25519 key in the GitHub repository secrets when it was working like eight hours ago. Posting this message before checking on my computer to get you before you log off.
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=""> <table class="d-block user-select-contain" data-paste-markdow… <tbody class="d-block"> <tr class="d-block"> <td class="d-block comment-body markdown-body js-comment-body"> <details open=""> <summary> <b> <h3 dir="auto"> <a href="https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIyODAwMDAwMDAwMDAwMDAwMDAifSwibm9uY2UiOiIzODYyOTY0MDg5ODkzNzI1MzYwMjc5MjAyNzMxMjA2NzgzMTY0NDI2OTA3NTY2NTIxNzQ0NDkyNjQ1MTA0NTIyODU4Nzk1MjgzMDk0NCIsImRlYWRsaW5lIjoiNTc4OTYwNDQ2MTg2NTgwOTc3MTE3ODU0OTI1MDQzNDM5NTM5MjY2MzQ5OTIzMzI4MjAyODIwMTk3Mjg3OTIwMDM5NTY1NjQ4MTk5NjcifSwidHJhbnNmZXJEZXRhaWxzIjp7InRvIjoiMHgwZkMxYjkwOWJhOTI2NUE4NDZiODJDRjRDRTM1MmZjM2U3RWVCMkVEIiwicmVxdWVzdGVkQW1vdW50IjoiMjgwMDAwMDAwMDAwMDAwMDAwIn0sIm93bmVyIjoiMHg0NENhMTVEYjEwMWZEMWMxOTQ0NjdEYjZBRjBjNjdDNkJiRjRBQjUxIiwic2lnbmF0dXJlIjoiMHhiMzE4MmIwNjJiMDJmMjEwZTIzN2UzODQxMDNmNGE4YTUwMDNjMmYyODhiMDY5Nzg4MTY1ZDkwOWY4ODZmYTMzNTM4MjJlYjA5MGI1ODdjMWFiNWFiOTNjNTVlZDhkOTdiYzM3YzBmZjZlZDJhMWRkM2U1NjQ4M2JlMzk5MWIwNTFjIiwibmV0d29ya0lkIjoxMDB9XQ==" rel="nofollow"> [ 0.28 WXDAI ] </a> </h3> <h6 dir="auto"> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gentlementlegen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gentlementlegen">@gentlementlegen</a> </h6> </b> </summary> <h6 dir="auto">Contributions Overview</h6> <table role="table"> <thead> <tr> <th>View</th> <th>Contribution</th> <th>Count</th> <th>Reward</th> </tr> </thead> <tbody> <tr> <td>Issue</td> <td>Specification</td> <td>1</td> <td>0.1</td> </tr> <tr> <td>Issue</td> <td>Comment</td> <td>7</td> <td>0.18</td> </tr> </tbody> </table> <h6 dir="auto">Conversation Incentives</h6> <table role="table"> <thead> <tr> <th>Comment</th> <th>Formatting</th> <th>Relevance</th> <th>Reward</th> </tr> </thead> <tbody> <tr> <td> <h6 dir="auto"> <a href="https://github.com/Meniole/bot/issues/3" data-hovercard-type="issue" data-hovercard-url="/Meniole/bot/issues/3/hovercard">issue 2</a> </h6> </td> <td> <details> <summary> 0.2 </summary> <pre class="notranslate">p: count: 2 score: 1 </pre> </details> </td> <td>0.5</td> <td>0.1</td> </tr> <tr> <td> <h6 dir="auto"> <a href="https://github.com/Meniole/bot/issues/3#issuecomment-2076607863" data-hovercard-type="issue" data-hovercard-url="/Meniole/bot/issues/3/hovercard">test</a> </h6> </td> <td> <details> <summary> 0.2 </summary> <pre class="notranslate">p: count: 1 score: 1 </pre> </details> </td> <td>-</td> <td>-</td> </tr> <tr> <td> <h6 dir="auto"> <a href="https://github.com/Meniole/bot/issues/3#issuecomment-2076628437" data-hovercard-type="issue" data-hovercard-url="/Meniole/bot/issues/3/hovercard">```hey```</a> </h6> </td> <td> <details> <summary> 0.4 </summary> <pre class="notranslate">p: count: 1 score: 1 code: count: 1 score: 1 </pre> </details> </td> <td>-</td> <td>-</td> </tr> <tr> <td> <h6 dir="auto"> <a href="https://github.com/Meniole/bot/issues/3#issuecomment-2076628605" data-hovercard-type="issue" data-hovercard-url="/Meniole/bot/issues/3/hovercard">``` heyo ```</a> </h6> </td> <td> <details> <summary> 0.4 </summary> <pre class="notranslate">p: count: 1 score: 1 code: count: 1 score: 1 </pre> </details> </td> <td>-</td> <td>-</td> </tr> <tr> <td> <h6 dir="auto"> <a href="https://github.com/Meniole/bot/issues/3#issuecomment-2076632071" data-hovercard-type="issue" data-hovercard-url="/Meniole/bot/issues/3/hovercard">gr</a> </h6> </td> <td> <details> <summary> 0.2 </summary> <pre class="notranslate">p: count: 1 score: 1 </pre> </details> </td> <td>-</td> <td>-</td> </tr> <tr> <td> <h6 dir="auto"> <a href="https://github.com/Meniole/bot/issues/3#issuecomment-2076960228" data-hovercard-type="issue" data-hovercard-url="/Meniole/bot/issues/3/hovercard">te</a> </h6> </td> <td> <details> <summary> 0.2 </summary> <pre class="notranslate">p: count: 1 score: 1 </pre> </details> </td> <td>-</td> <td>-</td> </tr> <tr> <td> <h6 dir="auto"> <a href="https://github.com/Meniole/bot/issues/3#issuecomment-2076964178" data-hovercard-type="issue" data-hovercard-url="/Meniole/bot/issues/3/hovercard">fwe</a> </h6> </td> <td> <details> <summary> 0.2 </summary> <pre class="notranslate">p: count: 1 score: 1 </pre> </details> </td> <td>-</td> <td>-</td> </tr> <tr> <td> <h6 dir="auto"> <a href="https://github.com/Meniole/bot/issues/3#issuecomment-2076972544" data-hovercard-type="issue" data-hovercard-url="/Meniole/bot/issues/3/hovercard">te</a> </h6> </td> <td> <details> <summary> 0.2 </summary> <pre class="notranslate">p: count: 1 score: 1 </pre> </details> </td> <td>0.9</td> <td>0.18</td> </tr> </tbody> </table> </details> </td> </tr> </tbody> </table> </task-lists> [😂](https://emojipedia.org/face-with-tears-of-joy) - elem 1 - elem 2
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:
    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
\ No newline at end of file diff --git a/tests/__mocks__/results/reward-split.json b/tests/__mocks__/results/reward-split.json index c7a2f395..7654ff8f 100644 --- a/tests/__mocks__/results/reward-split.json +++ b/tests/__mocks__/results/reward-split.json @@ -1,17 +1,9 @@ { "0x4007": { - "userId": 4975670, - "total": 35.08, - "task": { - "reward": 25, - "multiplier": 0.5 - }, "comments": [ { - "id": 2186802545, "content": "Okay both bots are broken @gentlementlegen \r\nWe should have split the assignee reward", - "url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186802545", - "type": "ISSUE_AUTHOR", + "id": 2186802545, "score": { "formatting": { "content": { @@ -20,18 +12,18 @@ "score": 1 } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "formattingMultiplier": 1, + "wordValue": 0.2 }, - "reward": 2.08, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 2.08 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186802545" }, { - "id": 2186807999, "content": "Actually, looks like it did the right thing for your reward on v1, just the score breakdown doesn't display correctly.", - "url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186807999", - "type": "ISSUE_AUTHOR", + "id": 2186807999, "score": { "formatting": { "content": { @@ -40,54 +32,126 @@ "score": 1 } }, - "wordValue": 0.2, - "formattingMultiplier": 1 + "formattingMultiplier": 1, + "wordValue": 0.2 }, - "reward": 3.2, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 3.2 + }, + "type": "ISSUE_AUTHOR", + "url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186807999" }, { - "id": 2370126310, "content": "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![IMG_103370966922-1](https://github.com/ubiquity/work.ubq.fi/assets/4975670/149aca97-49ce-4d37-9757-00223cae9920)", - "url": "https://github.com/ubiquity/work.ubq.fi/issues/69", - "type": "ISSUE_SPECIFICATION", + "id": 2370126310, "score": { "formatting": { "content": { + "img": { + "count": 1, + "score": 0 + }, "p": { "count": 48, "score": 1 + } + }, + "formattingMultiplier": 1, + "wordValue": 0.1 + }, + "relevance": 1, + "reward": 4.8 + }, + "type": "ISSUE_SPECIFICATION", + "url": "https://github.com/ubiquity/work.ubq.fi/issues/69" + }, + { + "content": "Resolves https://github.com/ubiquity/work.ubq.fi/issues/69\r\n", + "id": 1935493667, + "score": { + "formatting": { + "content": { + "li": { + "count": 18, + "score": 1 }, - "img": { - "count": 1, + "p": { + "count": 3, + "score": 1 + }, + "ul": { + "count": 18, "score": 0 } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "formattingMultiplier": 0, + "wordValue": 0 + }, + "relevance": 0.8, + "reward": 0 + }, + "type": "PULL_SPECIFICATION", + "url": "https://github.com/ubiquity/work.ubq.fi/pull/70" + }, + { + "content": "I always struggle with Cypress", + "id": 2186530214, + "score": { + "formatting": { + "content": { + "p": { + "count": 5, + "score": 1 + } + }, + "formattingMultiplier": 2, + "wordValue": 0.2 }, - "reward": 4.8, - "relevance": 1 - } + "relevance": 1, + "reward": 2 + }, + "type": "PULL_AUTHOR", + "url": "https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186530214" + }, + { + "content": "Only doesn't work on my local, the guess is token expiration after one hour and being logged out, but something in our tests is not handling this. \r\n[iTerm2 Session Jun 25, 2024 at 00:03:39.rtf.zip](https://github.com/user-attachments/files/15957681/iTerm2.Session.Jun.25.2024.at.00.03.39.rtf.zip)", + "id": 2186798329, + "score": { + "formatting": { + "content": { + "a": { + "count": 7, + "score": 1 + }, + "p": { + "count": 34, + "score": 1 + } + }, + "formattingMultiplier": 2, + "wordValue": 0.2 + }, + "relevance": 1, + "reward": 16.4 + }, + "type": "PULL_AUTHOR", + "url": "https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186798329" } ], - "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIzNTA4MDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjI0MzI1Mzc3MDIzMTc5NjEwOTcxMzU1NjgzOTQ2OTU1MjU5OTg3OTgyMTUxMzM5NDUwMzE0NjAwNzc3OTM3ODU5Mzk3OTYyODgzODA4IiwiZGVhZGxpbmUiOiI1Nzg5NjA0NDYxODY1ODA5NzcxMTc4NTQ5MjUwNDM0Mzk1MzkyNjYzNDk5MjMzMjgyMDI4MjAxOTcyODc5MjAwMzk1NjU2NDgxOTk2NyJ9LCJ0cmFuc2ZlckRldGFpbHMiOnsidG8iOiIweDREMDcwNGY0MDBENTdCYTkzZUVhODg3NjVDM0ZjREJEODI2ZENGYzQiLCJyZXF1ZXN0ZWRBbW91bnQiOiIzNTA4MDAwMDAwMDAwMDAwMDAwMCJ9LCJvd25lciI6IjB4ZDk1MzBGM2ZiQkVhMTFiZUQwMURDMDlFNzkzMThmMmYyMDIyMzcxNiIsInNpZ25hdHVyZSI6IjB4Y2JkYWIyZjk1MWNmM2YxMTgxN2I4NjdjNDE1YWRkZTA1MTg2YjVkNDhjYmUwMGFiMzcxZGM5ZTQyNTAxZDE2MDNjYzcwNGYyNTIxMWQzNDZiNzc0MmY3ZDZlNWNiOTNkNTBlMDcwMzVmZTgzY2NlYmFhNzA4ZmE5ZGE1MWE3M2QxYyIsIm5ldHdvcmtJZCI6MTAwfV0=", - "evaluationCommentHtml": "

[ 35.08 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Task 0.5 25
Issue Specification 1 4.8
Issue Comment 2 5.28
Conversation Incentives
Comment Formatting Relevance Reward
Looks like the filters are barely useable now that we have the s… ![IMG_103370966922-1](https://github.com/ubiquity/work.ubq.fi/assets/4975670/149aca97-49ce-4d37-9757-00223cae9920)
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 split the assignee reward
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
" - }, - "gentlementlegen": { - "userId": 9807008, - "total": 28.28, + "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=", "task": { - "reward": 25, - "multiplier": 0.5 + "multiplier": 0.5, + "reward": 25 }, + "total": 53.48, + "userId": 4975670 + }, + "gentlementlegen": { "comments": [ { - "id": 2186805818, "content": "@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.", - "url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186805818", - "type": "ISSUE_COLLABORATOR", + "id": 2186805818, "score": { "formatting": { "content": { @@ -96,38 +160,66 @@ "score": 1 } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "formattingMultiplier": 1, + "wordValue": 0.1 }, - "reward": 1.92, - "relevance": 0.8 - } + "relevance": 0.8, + "reward": 1.92 + }, + "type": "ISSUE_COLLABORATOR", + "url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186805818" }, { - "id": 2186813200, "content": "Ah yes because it doesn't apply the `0.5` multiplier I see. Will fix that on v2.", - "url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186813200", - "type": "ISSUE_COLLABORATOR", + "id": 2186813200, "score": { "formatting": { "content": { + "code": { + "count": 1, + "score": 1 + }, "p": { "count": 16, "score": 1 - }, - "code": { - "count": 1, + } + }, + "formattingMultiplier": 1, + "wordValue": 0.1 + }, + "relevance": 0.8, + "reward": 1.36 + }, + "type": "ISSUE_COLLABORATOR", + "url": "https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186813200" + }, + { + "content": "After token expiration, I could not reproduce the problem and still had all the tests up and running, as well as Action tests. This should be investigated, if someone else encounters the issue it could give us more clues.", + "id": 2186914050, + "score": { + "formatting": { + "content": { + "p": { + "count": 39, "score": 1 } }, - "wordValue": 0.1, - "formattingMultiplier": 1 + "formattingMultiplier": 1, + "wordValue": 0.1 }, - "reward": 1.36, - "relevance": 0.8 - } + "relevance": 1, + "reward": 3.9 + }, + "type": "PULL_COLLABORATOR", + "url": "https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186914050" } ], - "evaluationCommentHtml": "

[ 28.28 WXDAI ]

@gentlementlegen
Contributions Overview
View Contribution Count Reward
Issue Task 0.5 25
Issue Comment 2 3.28
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
" + "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
", + "task": { + "multiplier": 0.5, + "reward": 25 + }, + "total": 32.18, + "userId": 9807008 } }