-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not unassign users that have activity on a pull-request #21
Comments
I am skeptical that this should be funded, because this just means that the original implementation was not done correctly. The person who implemented it originally should be responsible to handle this. They can lift most of the logic from v1, aside from how we detect the linked pull is different now (just a GraphQL query needs to be adjusted.) |
The issue is the rest api that is being hit is not ideal. Currently we are using Looking at the difference in results between the two is drastic. One question I have is, should we consider a review from one of us as activity on the issue?
|
I'll add the whitelist as part of this PR too whitelist:
|
This is a Because of this, the only way I can get your info is parsing the github email. I'm sure most emails are like this but idk if it's possible for these to be the real user email address and not follow the standard you see below but I cannot handle it any other way I don't think. May encounter issues down the line but we'll need to deal with that as it happens I think. {
"sha": "0a7576d65ea6845f771c9b2c26c39481743ee32c",
"node_id": "C_kwDOLUK0B9oAKDBhNzU3NmQ2NWVhNjg0NWY3NzFjOWIyYzI2YzM5NDgxNzQzZWUzMmM",
"url": "https://api.github.com/repos/ubiquibot/conversation-rewards/git/commits/0a7576d65ea6845f771c9b2c26c39481743ee32c",
"html_url": "https://github.com/ubiquibot/conversation-rewards/commit/0a7576d65ea6845f771c9b2c26c39481743ee32c",
"author": {
"name": "Mentlegen",
"email": "[email protected]",
"date": "2024-09-13T15:47:10Z"
},
"committer": {
"name": "Mentlegen",
"email": "[email protected]",
"date": "2024-09-13T15:47:10Z"
},
"tree": {
"sha": "b5951a27f44b77dea078380234380f2d02ab6969",
"url": "https://api.github.com/repos/ubiquibot/conversation-rewards/git/trees/b5951a27f44b77dea078380234380f2d02ab6969"
},
"message": "feat: skip minimized comments",
"parents": [
{
"sha": "0799f372ae52310d0e35318ab3087e9fb8ab8f32",
"url": "https://api.github.com/repos/ubiquibot/conversation-rewards/git/commits/0799f372ae52310d0e35318ab3087e9fb8ab8f32",
"html_url": "https://github.com/ubiquibot/conversation-rewards/commit/0799f372ae52310d0e35318ab3087e9fb8ab8f32"
}
],
"verification": {
"verified": false,
"reason": "unsigned",
"signature": null,
"payload": null
},
"event": "committed"
}, |
No
No just keep it simple. Any commit on the pull will count as activity. |
|
|
Sorry but checking the timestamp wouldn't work in this case because if there are two pulls within 3.5 - 7 days of each other then the activity would be wrong. For example Unless we refactor and we pull in the PR separate from the issue and parse each timeline individually and merge them. Although My PR has that reach already with access to |
It worked fine in v1 bot. And I'm pretty sure it was as simple as checking any linked pull for any commits. Then the assignee gets extra time. You don't need to make it more complicated than it needs to be. |
We already collect the linked pull request and issue timeline and merged actually I was mistaken but I will refactor the PR so that it counts any commit as activity. |
@Keyrxng, this task has been idle for a while. Please provide an update. |
1 similar comment
@Keyrxng, this task has been idle for a while. Please provide an update. |
|
View | Contribution | Count | Reward |
---|---|---|---|
Issue | Task | 1 | 100 |
Issue | Comment | 6 | 0 |
Conversation Incentives
Comment | Formatting | Relevance | Reward |
---|---|---|---|
The issue is the rest api that is being hit is not ideal. Curren… | 0content: content: {} result: 0 regex: wordCount: 30 wordValue: 0 result: 0 | 0.9 | - |
I'll add the whitelist as part of this PR toowhitelist:- … | 0content: content: {} result: 0 regex: wordCount: 1 wordValue: 0 result: 0 | 0.8 | - |
This is a `committed` event payload. Notice how you are … | 0content: content: {} result: 0 regex: wordCount: 59 wordValue: 0 result: 0 | 0.7 | - |
1. Someone other than the contributor may push.2. We are using… | 0content: content: {} result: 0 regex: wordCount: 0 wordValue: 0 result: 0 | 0.6 | - |
Sorry but checking the timestamp wouldn't work in this case beca… | 0content: content: {} result: 0 regex: wordCount: 59 wordValue: 0 result: 0 | 0.5 | - |
We already collect the linked pull request and issue timeline an… | 0content: content: {} result: 0 regex: wordCount: 0 wordValue: 0 result: 0 | 0.85 | - |
[ 0 WXDAI ]
@0x4007
Contributions Overview
View | Contribution | Count | Reward |
---|---|---|---|
Issue | Comment | 4 | 0 |
Conversation Incentives
Comment | Formatting | Relevance | Reward |
---|---|---|---|
I am skeptical that this should be funded, because this just mea… | 0content: content: {} result: 0 regex: wordCount: 0 wordValue: 0 result: 0 | 0.8 | - |
NoNo just keep it simple. Any commit on the pull will count as … | 0content: content: {} result: 0 regex: wordCount: 0 wordValue: 0 result: 0 | 0.7 | - |
1. It's fine2. Check timestamp | 0content: content: {} result: 0 regex: wordCount: 0 wordValue: 0 result: 0 | 0.6 | - |
It worked fine in v1 bot. And I'm pretty sure it was as simple a… | 0content: content: {} result: 0 regex: wordCount: 0 wordValue: 0 result: 0 | 0.9 | - |
[ 13.23 WXDAI ]
@gentlementlegen
Contributions Overview
View | Contribution | Count | Reward |
---|---|---|---|
Issue | Specification | 1 | 13.23 |
Conversation Incentives
Comment | Formatting | Relevance | Reward |
---|---|---|---|
I think there is an issue with the unassign. It doesn't seem to … | 4.41content: content: p: score: 0 elementCount: 4 em: score: 0 elementCount: 1 result: 0 regex: wordCount: 86 wordValue: 0.1 result: 4.41 | 1 | 13.23 |
|
View | Contribution | Count | Reward |
---|---|---|---|
Issue | Task | 1 | 100 |
Issue | Comment | 6 | 0 |
Conversation Incentives
Comment | Formatting | Relevance | Reward |
---|---|---|---|
The issue is the rest api that is being hit is not ideal. Curren… | 2.5content: content: p: score: 0 elementCount: 5 ul: score: 1 elementCount: 1 li: score: 0.5 elementCount: 3 result: 2.5 regex: wordCount: 103 wordValue: 0 result: 0 | 0.7 | 0 |
I'll add the whitelist as part of this PR toowhitelist:- … | 4content: content: p: score: 0 elementCount: 8 ul: score: 1 elementCount: 1 li: score: 0.5 elementCount: 6 result: 4 regex: wordCount: 12 wordValue: 0 result: 0 | 0.6 | 0 |
This is a `committed` event payload. Notice how you are … | 0content: content: p: score: 0 elementCount: 3 result: 0 regex: wordCount: 108 wordValue: 0 result: 0 | 0.5 | 0 |
1. Someone other than the contributor may push.2. We are using… | 2.5content: content: ol: score: 1 elementCount: 1 li: score: 0.5 elementCount: 3 p: score: 0 elementCount: 3 result: 2.5 regex: wordCount: 52 wordValue: 0 result: 0 | 0.55 | 0 |
Sorry but checking the timestamp wouldn't work in this case beca… | 0content: content: p: score: 0 elementCount: 2 result: 0 regex: wordCount: 128 wordValue: 0 result: 0 | 0.65 | 0 |
We already collect the linked pull request and issue timeline an… | 0content: content: p: score: 0 elementCount: 1 result: 0 regex: wordCount: 30 wordValue: 0 result: 0 | 0.75 | 0 |
[ 7.514 WXDAI ]
@0x4007
Contributions Overview
View | Contribution | Count | Reward |
---|---|---|---|
Issue | Comment | 4 | 7.514 |
Conversation Incentives
Comment | Formatting | Relevance | Reward |
---|---|---|---|
I am skeptical that this should be funded, because this just mea… | 3.25content: content: p: score: 0 elementCount: 1 result: 0 regex: wordCount: 60 wordValue: 0.1 result: 3.25 | 0.7 | 2.275 |
NoNo just keep it simple. Any commit on the pull will count as … | 1content: content: p: score: 0 elementCount: 1 result: 0 regex: wordCount: 15 wordValue: 0.1 result: 1 | 0.8 | 0.8 |
1. It's fine2. Check timestamp | 2.39content: content: ol: score: 1 elementCount: 1 li: score: 0.5 elementCount: 2 result: 2 regex: wordCount: 5 wordValue: 0.1 result: 0.39 | 0.6 | 2.234 |
It worked fine in v1 bot. And I'm pretty sure it was as simple a… | 2.45content: content: p: score: 0 elementCount: 1 result: 0 regex: wordCount: 43 wordValue: 0.1 result: 2.45 | 0.9 | 2.205 |
[ 13.23 WXDAI ]
@gentlementlegen
Contributions Overview
View | Contribution | Count | Reward |
---|---|---|---|
Issue | Specification | 1 | 13.23 |
Conversation Incentives
Comment | Formatting | Relevance | Reward |
---|---|---|---|
I think there is an issue with the unassign. It doesn't seem to … | 4.41content: content: p: score: 0 elementCount: 4 em: score: 0 elementCount: 1 result: 0 regex: wordCount: 86 wordValue: 0.1 result: 4.41 | 1 | 13.23 |
|
View | Contribution | Count | Reward |
---|---|---|---|
Issue | Task | 1 | 100 |
Issue | Comment | 6 | 0 |
Conversation Incentives
Comment | Formatting | Relevance | Reward |
---|---|---|---|
The issue is the rest api that is being hit is not ideal. Curren… | 2.5content: content: p: score: 0 elementCount: 5 ul: score: 1 elementCount: 1 li: score: 0.5 elementCount: 3 result: 2.5 regex: wordCount: 103 wordValue: 0 result: 0 | 0.85 | 0 |
I'll add the whitelist as part of this PR toowhitelist:- … | 4content: content: p: score: 0 elementCount: 8 ul: score: 1 elementCount: 1 li: score: 0.5 elementCount: 6 result: 4 regex: wordCount: 12 wordValue: 0 result: 0 | 0.75 | 0 |
This is a `committed` event payload. Notice how you are … | 0content: content: p: score: 0 elementCount: 3 result: 0 regex: wordCount: 108 wordValue: 0 result: 0 | 0.8 | 0 |
1. Someone other than the contributor may push.2. We are using… | 2.5content: content: ol: score: 1 elementCount: 1 li: score: 0.5 elementCount: 3 p: score: 0 elementCount: 3 result: 2.5 regex: wordCount: 52 wordValue: 0 result: 0 | 0.7 | 0 |
Sorry but checking the timestamp wouldn't work in this case beca… | 0content: content: p: score: 0 elementCount: 2 result: 0 regex: wordCount: 128 wordValue: 0 result: 0 | 0.65 | 0 |
We already collect the linked pull request and issue timeline an… | 0content: content: p: score: 0 elementCount: 1 result: 0 regex: wordCount: 30 wordValue: 0 result: 0 | 0.6 | 0 |
[ 7.739 WXDAI ]
@0x4007
Contributions Overview
View | Contribution | Count | Reward |
---|---|---|---|
Issue | Comment | 4 | 7.739 |
Conversation Incentives
Comment | Formatting | Relevance | Reward |
---|---|---|---|
I am skeptical that this should be funded, because this just mea… | 3.25content: content: p: score: 0 elementCount: 1 result: 0 regex: wordCount: 60 wordValue: 0.1 result: 3.25 | 0.8 | 2.6 |
NoNo just keep it simple. Any commit on the pull will count as … | 1content: content: p: score: 0 elementCount: 1 result: 0 regex: wordCount: 15 wordValue: 0.1 result: 1 | 0.7 | 0.7 |
1. It's fine2. Check timestamp | 2.39content: content: ol: score: 1 elementCount: 1 li: score: 0.5 elementCount: 2 result: 2 regex: wordCount: 5 wordValue: 0.1 result: 0.39 | 0.6 | 2.234 |
It worked fine in v1 bot. And I'm pretty sure it was as simple a… | 2.45content: content: p: score: 0 elementCount: 1 result: 0 regex: wordCount: 43 wordValue: 0.1 result: 2.45 | 0.9 | 2.205 |
[ 13.23 WXDAI ]
@gentlementlegen
Contributions Overview
View | Contribution | Count | Reward |
---|---|---|---|
Issue | Specification | 1 | 13.23 |
Conversation Incentives
Comment | Formatting | Relevance | Reward |
---|---|---|---|
I think there is an issue with the unassign. It doesn't seem to … | 4.41content: content: p: score: 0 elementCount: 4 em: score: 0 elementCount: 1 result: 0 regex: wordCount: 86 wordValue: 0.1 result: 4.41 | 1 | 13.23 |
|
View | Contribution | Count | Reward |
---|---|---|---|
Issue | Task | 1 | 100 |
Issue | Comment | 6 | 0 |
Conversation Incentives
Comment | Formatting | Relevance | Reward |
---|---|---|---|
The issue is the rest api that is being hit is not ideal. Curren… | 2.5content: content: p: score: 0 elementCount: 5 ul: score: 1 elementCount: 1 li: score: 0.5 elementCount: 3 result: 2.5 regex: wordCount: 103 wordValue: 0 result: 0 | 0.8 | 0 |
I'll add the whitelist as part of this PR toowhitelist:- … | 4content: content: p: score: 0 elementCount: 8 ul: score: 1 elementCount: 1 li: score: 0.5 elementCount: 6 result: 4 regex: wordCount: 12 wordValue: 0 result: 0 | 0.75 | 0 |
This is a `committed` event payload. Notice how you are … | 0content: content: p: score: 0 elementCount: 3 result: 0 regex: wordCount: 108 wordValue: 0 result: 0 | 0.6 | 0 |
1. Someone other than the contributor may push.2. We are using… | 2.5content: content: ol: score: 1 elementCount: 1 li: score: 0.5 elementCount: 3 p: score: 0 elementCount: 3 result: 2.5 regex: wordCount: 52 wordValue: 0 result: 0 | 0.65 | 0 |
Sorry but checking the timestamp wouldn't work in this case beca… | 0content: content: p: score: 0 elementCount: 2 result: 0 regex: wordCount: 128 wordValue: 0 result: 0 | 0.7 | 0 |
We already collect the linked pull request and issue timeline an… | 0content: content: p: score: 0 elementCount: 1 result: 0 regex: wordCount: 30 wordValue: 0 result: 0 | 0.85 | 0 |
[ 7.689 WXDAI ]
@0x4007
Contributions Overview
View | Contribution | Count | Reward |
---|---|---|---|
Issue | Comment | 4 | 7.689 |
Conversation Incentives
Comment | Formatting | Relevance | Reward |
---|---|---|---|
I am skeptical that this should be funded, because this just mea… | 3.25content: content: p: score: 0 elementCount: 1 result: 0 regex: wordCount: 60 wordValue: 0.1 result: 3.25 | 0.8 | 2.6 |
NoNo just keep it simple. Any commit on the pull will count as … | 1content: content: p: score: 0 elementCount: 1 result: 0 regex: wordCount: 15 wordValue: 0.1 result: 1 | 0.65 | 0.65 |
1. It's fine2. Check timestamp | 2.39content: content: ol: score: 1 elementCount: 1 li: score: 0.5 elementCount: 2 result: 2 regex: wordCount: 5 wordValue: 0.1 result: 0.39 | 0.6 | 2.234 |
It worked fine in v1 bot. And I'm pretty sure it was as simple a… | 2.45content: content: p: score: 0 elementCount: 1 result: 0 regex: wordCount: 43 wordValue: 0.1 result: 2.45 | 0.9 | 2.205 |
[ 13.23 WXDAI ]
@gentlementlegen
Contributions Overview
View | Contribution | Count | Reward |
---|---|---|---|
Issue | Specification | 1 | 13.23 |
Conversation Incentives
Comment | Formatting | Relevance | Reward |
---|---|---|---|
I think there is an issue with the unassign. It doesn't seem to … | 4.41content: content: p: score: 0 elementCount: 4 em: score: 0 elementCount: 1 result: 0 regex: wordCount: 86 wordValue: 0.1 result: 4.41 | 1 | 13.23 |
Originally posted by @gentlementlegen in ubiquity-os-marketplace/text-conversation-rewards#82 (comment)
Users that opened and linked a pull-request seem to be unassigned regardless of their activity. This should be taken into account before unassigning users.
Another example: ubiquity/ubiquity-dollar#563 (comment)
The text was updated successfully, but these errors were encountered: