-
Notifications
You must be signed in to change notification settings - Fork 61
Refactor Config: mdast
element keys as HTML entities / ref
#496
Comments
This issue adds unnecessary code complexity So under the hood we should transform html's I don't really see the difference between |
|
We could use the same type as
So this task is about moving from mdast types to html types, right? In other words the incentive comments feature would work this way:
|
It seems like a hack to try and serialize a JSON object and use it as a key for the config property inside of a comment-incentives:
code: 5
img: 5
h1: 1
li: 0.5
a: 0.5
blockquote: 0
every-x-incentives:
every-word: 0.1 # not sure what is the most expressive property name for the "every word" incentive
# every-sentence: 0
# every-paragraph: 0
Seems correct. I tried experimenting with the yml schema. It needs work but figured I would post here before sleeping. This gives us so many possibilities for customization. Note that these numbers are just for example purposes only: incentives:
comment:
code: 5
img: 5
h1: 1
li: 0.5
a: 0.5
blockquote: 0
totals:
word: 0.1 # not sure what is the most expressive property name for the "every word" incentive
# sentence: 0
# paragraph: 0
# comment: 0
reactions:
received:
thumbs-up: 1
thumbs-down: -1
sent:
thumbs-up: 0.5
thumbs-down: 0.5
eyes: 0.5
reviews:
received:
approved: 10
rejected: -10
left-comment: 0
sent:
approved: 10
rejected: 10
left-comment: 0 |
The time label should be updated to at least |
/start |
Tips:
|
Github API can return comments in the HTML form so I think it would be better to use that instead of using other tools for conversion? |
yes, it might be better |
Is the scope of this issue also implementing incentive of comments in the PR related to the issue and reactions of the comments? |
I don't think so. The scope for this issue is refactoring mdast element names to html tags in the bot's config and making sure that nothing is broken. @pavlovcik pls confirm |
Do you have any updates @whilefoo? If you would like to release the bounty back to the DevPool, please comment |
@ubiquibot waiting for clarification in #545 |
Do you have any updates @whilefoo? If you would like to release the bounty back to the DevPool, please comment |
Do you have any updates @whilefoo? If you would like to release the bounty back to the DevPool, please comment |
@whilefoo - Releasing the bounty back to dev pool because the allocated duration already ended! |
[ CLAIM 450 WXDAI ]
If you enjoy the DevPool experience, please follow Ubiquity on GitHub and star this repo to show your support. It helps a lot! |
@whilefoo The time limit for this bounty is on Wed, 23 Aug 2023 15:00:32 UTC |
comment-incentives
config.The text was updated successfully, but these errors were encountered: