Skip to content
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

E2e tests #90

Open
wants to merge 230 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
fbc1e0d
chore: sync upstream
0x4007 Jul 7, 2023
0f1b6c4
Merge remote-tracking branch 'upstream/development' into development
0x4007 Aug 9, 2023
92b5b86
feat: e2e test setup
whilefoo Aug 20, 2023
fc0516e
Merge branch 'development' of https://github.com/ubiquity/ubiquibot i…
0x4007 Aug 20, 2023
25a928b
refactor: remove unused declaration
0x4007 Aug 20, 2023
a6edfb3
Merge branch 'fix/check-annotations' into pavlovcik/development
0x4007 Aug 20, 2023
f03be3c
feat: add cspell
0x4007 Aug 20, 2023
0a5abe6
feat: add cspell
0x4007 Aug 20, 2023
e5291d4
feat: add cspell
0x4007 Aug 20, 2023
02dd3b3
feat: lint-staged hook
0x4007 Aug 20, 2023
02484c6
feat: lint-staged hook
0x4007 Aug 20, 2023
291bb75
feat: lint-staged hook
0x4007 Aug 20, 2023
fe36b25
feat: add more tests
whilefoo Aug 22, 2023
78bb917
fix: ignore kebab-case in tests
whilefoo Aug 22, 2023
4b973fc
feat: incentiveForPullRequest reviewers
wannacfuture Aug 23, 2023
aa84e7d
feat: minor fix
wannacfuture Aug 23, 2023
109758e
feat: slight change
wannacfuture Aug 23, 2023
12bccae
feat: fix function declaration
wannacfuture Aug 23, 2023
25c4da5
feat: renamed some variables
wannacfuture Aug 23, 2023
efb941d
feat: get comments as markdown
wannacfuture Aug 23, 2023
a676070
Merge branch 'ubiquibot/development' into pavlovcik/development
0x4007 Aug 23, 2023
b3081cf
feat: added tests
whilefoo Aug 23, 2023
06d688a
feat: revert changing function names
wannacfuture Aug 24, 2023
f59fd04
Merge remote-tracking branch 'origin' into feat/incentive-for-pr-revi…
wannacfuture Aug 24, 2023
07b2275
feat: minor fix
wannacfuture Aug 24, 2023
7104dd3
feat: minor fix
wannacfuture Aug 24, 2023
66b0b9b
Merge branch 'development' into feat/incentive-for-pr-reviewer
wannacfuture Aug 25, 2023
54f0273
Merge branch 'development' into feat/incentive-for-pr-reviewer
wannacfuture Aug 25, 2023
66d2d7b
feat: slight change
wannacfuture Aug 25, 2023
70ca321
fix: stale bounty
Keyrxng Aug 25, 2023
54e97b2
Merge pull request #662 from ubiquity/development
0xcodercrane Aug 26, 2023
64e7d3f
Merge branch 'development' of https://github.com/ubiquity/ubiquibot i…
0x4007 Aug 26, 2023
517a3e5
fix: requested changes made
Keyrxng Aug 26, 2023
5a38700
fix: pulls from default
Keyrxng Aug 26, 2023
5a41966
fix: remove console log
Keyrxng Aug 26, 2023
09ead61
Update ubiquibot-config.yml
0x4007 Aug 27, 2023
cef102d
refactor: remove redundant properties
0x4007 Aug 27, 2023
ef6e27e
refactor: this will also be controlled by org config
0x4007 Aug 27, 2023
2e667f8
Update ubiquibot-config.yml
0x4007 Aug 27, 2023
b464715
Merge pull request #678 from ubiquity/pavlovcik-patch-3
0x4007 Aug 27, 2023
8f36fbd
Merge pull request #677 from ubiquity/pavlovcik-patch-2
0x4007 Aug 27, 2023
5ef5f44
feat: check for Duplicate Specs (#608)
Nick-Legend Aug 27, 2023
dda1cbb
fix: getBotConfig instead of loadConfig
whilefoo Aug 27, 2023
bdb6917
feat: log config errors
whilefoo Aug 27, 2023
0aecb85
feat: logs cleaner
Steveantor Aug 27, 2023
01fb817
feat: validate config on push event
whilefoo Aug 28, 2023
7be4768
feat: find correct commit hash
whilefoo Aug 28, 2023
a6cf47e
feat: log invalid config
whilefoo Aug 28, 2023
5a61607
feat: list unnecessary properties
whilefoo Aug 28, 2023
b1250cd
fix: additional properties
whilefoo Aug 28, 2023
e4d5249
Merge branch 'development' into feat/incentive-for-pr-reviewer
wannacfuture Aug 28, 2023
5ec2d6a
feat: get correct linked pull request
wannacfuture Aug 28, 2023
d0f1b06
feat: check the organization and repo name
wannacfuture Aug 28, 2023
ab85a52
feat: add to codeowners
0xcodercrane Aug 29, 2023
9e53e1a
feat: add cron migration
Steveantor Aug 29, 2023
031b67e
feat: Logs Cleaner (#683)
0xcodercrane Aug 29, 2023
0109700
Merge branch 'development' into feat/incentive-for-pr-reviewer
wannacfuture Aug 29, 2023
6771daa
feat: exploit issue resolved
0xcodercrane Aug 29, 2023
5a0f18e
Merge branch 'development' into feat/incentive-for-pr-reviewer
wannacfuture Aug 29, 2023
743a477
chore: merged repo and org config
devpanther Aug 29, 2023
d0a7f79
fix: update CODEOWNERS
0xcodercrane Aug 30, 2023
907b758
chore: merge default,repo and org
devpanther Aug 30, 2023
7d5a63b
Merge branch 'development' into config-nested-inheritance
devpanther Aug 30, 2023
7bbdada
chore: re-arrange order to use repo first
devpanther Aug 30, 2023
5415213
chore: re-arrange order to use repo first
devpanther Aug 30, 2023
39e2143
Update src/utils/private.ts
devpanther Aug 30, 2023
646d4b8
Update src/utils/private.ts
devpanther Aug 30, 2023
7f1dfc9
fix: run validate config if error loading config on push event
whilefoo Aug 30, 2023
3067822
Merge branch 'development' of https://github.com/ubiquity/ubiquibot i…
0x4007 Aug 31, 2023
3addf7a
feat: minor regex fix
wannacfuture Aug 31, 2023
f1edaba
Merge pull request #694 from wannacfuture/feature/label-set-hotfix
0xcodercrane Aug 31, 2023
67a178b
feat: minor regex fix
wannacfuture Aug 31, 2023
b3b2dea
fix: filter then map
whilefoo Aug 31, 2023
7f0b545
feat: default to true
0xcodercrane Aug 31, 2023
8beb943
feat: default to true
0xcodercrane Aug 31, 2023
29008f2
feat: more
0xcodercrane Aug 31, 2023
5d3ccd2
feat: more
0xcodercrane Aug 31, 2023
65f2920
Revert "feat: more"
0xcodercrane Aug 31, 2023
472a822
feat: revert of default to true
0xcodercrane Aug 31, 2023
07cf8ae
feat: access control config (#696)
whilefoo Aug 31, 2023
ba9aab1
Revert "feat: more"
0xcodercrane Aug 31, 2023
fac735b
feat: revert of default to true
0xcodercrane Aug 31, 2023
9cfc6fa
feat: comment incentives nonce (#692)
devpanther Sep 1, 2023
db00b83
feat: toggle permit generation by external (#697)
web4er Sep 1, 2023
9d45aab
fix: enable assistive pricing when enable-access-control.label is dis…
rndquu Sep 1, 2023
434a9a2
Merge branch 'main' into development
0xcodercrane Sep 1, 2023
a964015
feat: support minute labels
rndquu Sep 1, 2023
6a1b4f9
Merge pull request #702 from rndquu/feat/support-minute-labels
0xcodercrane Sep 1, 2023
3eaedcc
feat: apply price label
0xcodercrane Sep 1, 2023
eb1d942
feat: display permission level in /query
EtherealGlow Sep 2, 2023
f2a684b
feat: disable bot follow up for pending reviews
EtherealGlow Sep 2, 2023
034c960
Merge remote-tracking branch 'upstream/development' into config-valid…
whilefoo Sep 2, 2023
3dcda23
Merge branch 'development' into config-nested-inheritance
devpanther Sep 2, 2023
c86011c
feat: display access level in /query
EtherealGlow Sep 3, 2023
cf55a97
feat: display access level in /query
EtherealGlow Sep 3, 2023
db1850f
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo Sep 3, 2023
9b8a28e
Merge branch 'development' into feat/incentive-for-pr-reviewer
wannacfuture Sep 4, 2023
8ce9053
feat: fix for nonse in incentive pr review
wannacfuture Sep 4, 2023
3f27933
Merge branch 'feat/incentive-for-pr-reviewer' of https://github.com/w…
wannacfuture Sep 4, 2023
2709407
feat: display access levels in /query
EtherealGlow Sep 4, 2023
8fb1bce
feat: more tests
whilefoo Sep 4, 2023
7fd7d3b
fix: warning header
Keyrxng Sep 5, 2023
dc1d7ec
fix: ignore param order for allow
Nick-Legend Sep 5, 2023
4d98c13
fix: ignore param order for allow
Nick-Legend Sep 5, 2023
74d1b4a
fix: check both pr and issue to verify first comment
Nick-Legend Sep 5, 2023
2855d0b
fix: config extraction
Keyrxng Sep 5, 2023
03a78ac
Merge branch 'development' into start-disclaimer
Keyrxng Sep 5, 2023
5eb7709
feat: disable bot follow up for pending reviews
EtherealGlow Sep 6, 2023
9479e62
feat: display access levels in /query
EtherealGlow Sep 6, 2023
ab87dd4
feat: display access levels in /query
EtherealGlow Sep 6, 2023
467d7eb
fix: update method for params
Nick-Legend Sep 6, 2023
7078549
Merge pull request #722 from byteballet/allow_parameter_order
whilefoo Sep 6, 2023
2f0631c
Merge branch 'development' into config-nested-inheritance
whilefoo Sep 7, 2023
edbbe97
fix: conditional
Keyrxng Sep 7, 2023
87c01de
Merge pull request #691 from devpanther/config-nested-inheritance
whilefoo Sep 7, 2023
c682db7
Merge branch 'development' into start-disclaimer
whilefoo Sep 7, 2023
408a3d9
feat: display access level in /qurey
EtherealGlow Sep 7, 2023
f3e557d
fix: types
whilefoo Sep 7, 2023
5e67a76
fix: types and explicit <tr>
whilefoo Sep 7, 2023
e628f63
feat: display access level in /qurey
EtherealGlow Sep 7, 2023
747becc
chore: refactor
whilefoo Sep 7, 2023
08b7cc0
chore: refactor
whilefoo Sep 7, 2023
e108b49
Merge pull request #707 from EtherealGlow/development-2
whilefoo Sep 7, 2023
d959564
chore: reword ot comment on issues not closed as completed
BeanieMen Sep 7, 2023
807cf51
Merge pull request #724 from byteballet/multi_tutorial_msg
whilefoo Sep 7, 2023
c6ceb6c
Merge pull request #670 from Keyrxng/start-disclaimer
whilefoo Sep 7, 2023
c02596b
chore: update src/adapters/supabase/helpers/client.ts
0xcodercrane Sep 8, 2023
1f6e1be
chore: remove unused declaration (#642)
0xcodercrane Sep 8, 2023
4098d1b
Merge remote-tracking branch 'upstream/development' into config-valid…
whilefoo Sep 8, 2023
4196f30
fix: skip zero penalty
Keyrxng Sep 8, 2023
0cbf188
fix: error diff
Keyrxng Sep 8, 2023
bea4bf6
Merge branch 'development' into commentTweaks
Keyrxng Sep 8, 2023
e3529bb
fix: rendering
Keyrxng Sep 8, 2023
bfb2654
fix: rendering
Keyrxng Sep 8, 2023
b1e7232
feat: disable bot follow up if there are pending reviews
EtherealGlow Sep 8, 2023
54b1a8b
feat: disable bot reveiw on pending reviews
EtherealGlow Sep 8, 2023
79e5f58
feat: disable bot follow up on pending reviews
EtherealGlow Sep 8, 2023
683a681
feat: disable bot follow up on pending reviews
EtherealGlow Sep 8, 2023
1329f12
fix: table comment
Keyrxng Sep 9, 2023
bc2c4fd
fix: default
Keyrxng Sep 9, 2023
678551f
Update src/helpers/issue.ts
EtherealGlow Sep 9, 2023
542c429
feat: disable bot follow up on pending reviews
EtherealGlow Sep 9, 2023
2639a8f
feat: rate limit
whilefoo Sep 9, 2023
d31ec44
feat: disable bot follow up for pending reviews
EtherealGlow Sep 9, 2023
c5a181d
Merge pull request #708 from EtherealGlow/development-3
whilefoo Sep 10, 2023
08a2dfb
Merge pull request #733 from me505/development
whilefoo Sep 10, 2023
9f398e6
Update ubiquibot-config.yml
0x4007 Sep 10, 2023
2e60e47
Merge branch 'development' of https://github.com/pavlovcik/ubiquibot …
0x4007 Sep 10, 2023
4d8ee35
chore: update lock file
0x4007 Sep 10, 2023
7c3d866
Merge branch 'development' of https://github.com/ubiquity/ubiquibot i…
0x4007 Sep 10, 2023
0970143
Merge branch 'development' into commentTweaks
Keyrxng Sep 10, 2023
5aa2908
fix: table and check
Keyrxng Sep 10, 2023
a60a017
Fix : skipped->disabled , since -> because
baibhavKumar1 Sep 10, 2023
fcf8f52
Merge pull request #744 from Wholesomebruh/skipped
0x4007 Sep 10, 2023
6c85879
Merge branch 'development' into commentTweaks
0x4007 Sep 10, 2023
75f880e
Merge branch 'development' into commentTweaks
0x4007 Sep 10, 2023
e9cfecc
Merge pull request #736 from Keyrxng/commentTweaks
0x4007 Sep 10, 2023
4e81584
Update pull_request_template.md
0x4007 Sep 11, 2023
7a42059
Update pull_request_template.md
0x4007 Sep 11, 2023
b455c96
Merge branch 'development' into feat/incentive-for-pr-reviewer
wannacfuture Sep 12, 2023
c6b6709
feat: include comments on pr
wannacfuture Sep 12, 2023
2aa36c0
Merge remote-tracking branch 'upstream/development' into config-valid…
whilefoo Sep 12, 2023
3914532
fix: add helpers back
whilefoo Sep 12, 2023
b3667b8
Merge pull request #684 from ubiquity-whilefoo/config-validation-error
whilefoo Sep 12, 2023
6ca50a4
feat: issue creator multiplier should be optional
whilefoo Sep 12, 2023
fc7cdf0
feat: longer timeout
whilefoo Sep 12, 2023
4c666eb
Merge pull request #757 from ubiquity-whilefoo/config-hotfix
whilefoo Sep 12, 2023
064cdc0
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo Sep 12, 2023
794f793
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo Sep 12, 2023
51bc95f
feat: update tests
whilefoo Sep 12, 2023
7393511
Merge branch 'development' into feat/incentive-for-pr-reviewer
wannacfuture Sep 13, 2023
0414bba
feat: extract time duration with ms (#756)
wannacfuture Sep 14, 2023
0dfa520
Update config.yml
0x4007 Sep 14, 2023
cf2c9be
Update bounty-template.yml
0x4007 Sep 14, 2023
51fe4df
Merge branch 'development' into feat/incentive-for-pr-reviewer
wannacfuture Sep 14, 2023
0154b7e
Merge pull request #657 from wannacfuture/feat/incentive-for-pr-reviewer
0x4007 Sep 15, 2023
5e14775
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo Sep 15, 2023
29e2cb4
fix: types
whilefoo Sep 15, 2023
53fc6ab
fix: use bot penalty (#749)
Keyrxng Sep 18, 2023
82564f0
fix: renamed default config file (#763)
baibhavKumar1 Sep 18, 2023
8166989
feat: parse Permit Url (#738)
Sadaf-A Sep 18, 2023
cc89117
feat: workflow
whilefoo Sep 18, 2023
e734904
fix: close pr issues and stop running handlers twice (#728)
seprintour Sep 19, 2023
dba8308
feat: add repo specific wallet support (#747)
BeanieMen Sep 19, 2023
3966177
feat: bounty rewards consolidation (#714)
devpanther Sep 21, 2023
c40efc5
feat: ask Command (#663)
Keyrxng Sep 21, 2023
b417336
refactor: config Name Format (#761)
Sadaf-A Sep 22, 2023
16aaa17
fix: hotfix build
molecula451 Sep 22, 2023
5335911
feat: add first time configs (#739)
EtherealGlow Sep 22, 2023
7fc99b1
Merge branch 'development' into hotfix-build
molecula451 Sep 22, 2023
4b4c8f8
Update ubiquibot-config.yml
0x4007 Sep 23, 2023
d9f00fb
feat: add default access info
wannacfuture Sep 23, 2023
65924f5
feat: minor fix
wannacfuture Sep 23, 2023
e2a47e5
chore: add debit schema
seprintour Sep 23, 2023
b4fb5b6
Merge pull request #813 from seprintour/db-schema-debit
0x4007 Sep 23, 2023
ddad210
Merge branch 'development' into hotfix/default-access-info
0x4007 Sep 23, 2023
f41c036
Merge pull request #805 from wannacfuture/hotfix/default-access-info
0x4007 Sep 23, 2023
cd5aa99
Merge branch 'development' into hotfix-build
molecula451 Sep 23, 2023
02deb96
Merge pull request #797 from molecula451/hotfix-build
whilefoo Sep 24, 2023
308b6c2
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo Sep 24, 2023
8ba4743
feat: longer delays
whilefoo Sep 24, 2023
97cf9b8
fix(user):
Sadaf-A Sep 24, 2023
68daa0c
chore: enable label event
seprintour Sep 24, 2023
74295ea
chore: setting up action
seprintour Sep 24, 2023
d6dfaf0
chore: modified sql query, test action
seprintour Sep 24, 2023
7ba0327
feat: initial upsert access info
wannacfuture Sep 25, 2023
750b9a5
Merge branch 'hotfix/default-access-info' of https://github.com/wanna…
wannacfuture Sep 25, 2023
fe10a95
Merge branch 'development' into hotfix/default-access-info
wannacfuture Sep 25, 2023
ebe25ab
Update query.ts
0x4007 Sep 25, 2023
eec35f5
feat: use ErrorDiff
wannacfuture Sep 25, 2023
9c0eb4b
feat: minor fix
wannacfuture Sep 25, 2023
25d79a7
Merge pull request #826 from Sadaf-A/feature/send-user-tag
0x4007 Sep 25, 2023
f106195
Merge branch 'development' into hotfix/default-access-info
0x4007 Sep 25, 2023
c404c0d
Merge pull request #830 from wannacfuture/hotfix/default-access-info
0x4007 Sep 25, 2023
8f37c4e
chore: get access control and act on it
seprintour Sep 25, 2023
8a31463
Merge branch 'development' into access-control-fix
seprintour Sep 25, 2023
141ec91
fix: change error message
seprintour Sep 25, 2023
95a7952
fix: remove _at suffix
seprintour Sep 25, 2023
3c83d93
Merge remote-tracking branch 'ubiquibot/development' into development
0x4007 Sep 25, 2023
e1c3988
chore: add approve command
seprintour Sep 25, 2023
6475180
Merge branch 'development' into feat/cspell
0x4007 Sep 25, 2023
dbb4e27
chore: only fetch unapproved label changes
seprintour Sep 25, 2023
5c28de8
Update src/handlers/comment/handlers/approve.ts
0x4007 Sep 25, 2023
18d1f70
Update src/handlers/comment/handlers/index.ts
0x4007 Sep 25, 2023
804766f
chore: approve to authorize
seprintour Sep 25, 2023
290a283
Update conventional-commits.yml
0x4007 Sep 25, 2023
e605a0f
Merge pull request #829 from seprintour/access-control-fix
0x4007 Sep 25, 2023
960e991
Merge pull request #643 from pavlovcik/feat/cspell
0x4007 Sep 26, 2023
56e4427
feat: update workflow
whilefoo Sep 26, 2023
31be5c6
Merge remote-tracking branch 'upstream/development' into e2e-tests
whilefoo Sep 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"useGitignore": true,
"version": "0.2",
"language": "en",
"words": [
"autodetection",
"autopay",
"AUTOPAY",
"bucketid",
"bucketname",
"demilestoned",
"devpool",
"ensname",
"fkey",
"gelato",
"Gelato",
"gollum",
"keccak",
"libsodium",
"logdna",
"LOGDNA",
"mdast",
"Mdast",
"mergeable",
"micromark",
"milestoned",
"Numberish",
"orgname",
"pavlovcik",
"permisson",
"prereleased",
"probot",
"Probot",
"ratelimit",
"rebaseable",
"rerequested",
"scalarmult",
"signoff",
"sortcolumn",
"sortorder",
"supabase",
"Supabase",
"SUPABASE",
"svgs",
"timelabel",
"TURL",
"typebox",
"Ubiqui",
"ubiquibot",
"unarchived",
"Unassigning",
"Upserting",
"URLSAFE",
"vitalik",
"WXDAI"
]
}
15 changes: 11 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ SUPABASE_KEY=
AUTO_PAY_MODE=
ANALYTICS_MODE=

# Log environment
LOG_ENVIRONMENT=production # development to see logs in console
LOG_LEVEL=debug # 0: error 1: warn 2: info 3: http 4: verbose 5: debug 6: silly
LOG_RETRY=0 # 0 for no retry, more than 0 for the number of retries

# Use `trace` to get verbose logging or `info` to show less
LOG_LEVEL=debug
LOGDNA_INGESTION_KEY=
OPENAI_API_HOST=https://api.openai.com
OPENAI_API_KEY=
CHATGPT_USER_PROMPT_FOR_IMPORTANT_WORDS="I need your help to find important words (e.g. unique adjectives) from github issue below and I want to parse them easily so please separate them using #(No other contexts needed). Please separate the words by # so I can parse them easily. Please answer simply as I only need the important words. Here is the issue content.\n"
CHATGPT_USER_PROMPT_FOR_MEASURE_SIMILARITY='I have two github issues and I need to measure the possibility of the 2 issues are the same content (No other contents needed and give me only the number in %).\n Give me in number format and add % after the number.\nDo not tell other things since I only need the number (e.g. 85%). Here are two issues:\n 1. "%first%"\n2. "%second%"'
SIMILARITY_THRESHOLD=80
MEASURE_SIMILARITY_AI_TEMPERATURE=0
IMPORTANT_WORDS_AI_TEMPERATURE=0
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@

* @0xcodercrane
15 changes: 12 additions & 3 deletions .github/ISSUE_TEMPLATE/bounty-template.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
name: "Bounty Proposal"
description: Have a suggestion for how to improve UbiquiBot? Let us know!
title: "Bounty Proposal:"
title: "Bounty Proposal: "

body:
- type: markdown
attributes:
value: |
## Feature Request Form
Thank you for taking the time to file a feature request! Please let us know what you're trying to do, and how UbiquiBot can help.
Thank you for taking the time to file a feature request.
If you register your wallet address, you will be eligible for compensation if this is accepted!
Please let us know how we can improve the bot.

- type: textarea
attributes:
label: Describe the background or context
description: Please let us know what inspired you to write this proposal. Backlinking to specific comments is usually sufficient context.
description: Please let us know what inspired you to write this proposal. Backlinking to specific comments on GitHub, and leaving a remark about how the bot should have interacted with it is usually sufficient context.
validations:
required: false

Expand All @@ -22,3 +24,10 @@ body:
description: A clear description of what you want to happen. Add any considered drawbacks.
validations:
required: true

- type: textarea
attributes:
label: Remarks
description: Any closing remarks?
validations:
required: false
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Telegram Group Chat
url: https://t.me/UbiquityDAO/29891
about: "Join us on Telegram!"
- name: UbiquiBot Development Group Chat
url: https://t.me/UbiquityDAO/31132
about: "Live chat with us on Telegram!"
14 changes: 9 additions & 5 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<!-- RULES TO CONTRIBUTE TO UBIQUIBOT

1. You must link the issue number e.g. "Resolves #1234"
2. You must link proof that your code works from a test issue on your forked repo e.g. "Quality Assurance https://github.com/user/repo/issues/1#issuecomment-1"
3. Please do not replace the keyword "Resolves" https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword

-->

Resolves #

<!--
- You must link the issue number e.g. "Resolves #1234"
- You must link the QA issue on your forked repo e.g. "QA for #1234"
- Please do not replace the keyword "Resolves" https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
-->
Quality Assurance:
41 changes: 6 additions & 35 deletions .github/ubiquibot-config.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
evm-network-id: 100
price-multiplier: 1.5
issue-creator-multiplier: 2
time-labels:
- name: "Time: <1 Hour"
- name: "Time: <2 Hours"
- name: "Time: <4 Hours"
- name: "Time: <1 Day"
- name: "Time: <1 Week"
priority-labels:
- name: "Priority: 1 (Normal)"
- name: "Priority: 2 (Medium)"
- name: "Priority: 3 (High)"
- name: "Priority: 4 (Urgent)"
- name: "Priority: 5 (Emergency)"
default-labels:
- "Time: <1 Hour"
- "Priority: 1 (Normal)"
payment-permit-max-price: 1000
comment-incentives: true
max-concurrent-bounties: 2
promotion-comment: "<h6>If you've enjoyed your experience in the DevPool, we'd appreciate your support. Follow <a href='https://github.com/ubiquity'>Ubiquity on GitHub</a> and star <a href='https://github.com/ubiquity/devpool-directory'>this repo</a>. Your endorsement means the world to us and helps us grow!</h6><h6>We are excited to announce that the DevPool and UbiquiBot are now available to partners! Our ideal collaborators are globally distributed crypto-native organizations, who actively work on open source on GitHub, and excel in research & development. If you can introduce us to the repository maintainers in these types of companies, we have a special bonus in store for you!</h6>"
incentives:
comment:
elements:
code: 5
img: 5
h1: 1
li: 0.5
a: 0.5
blockquote: 0
totals:
word: 0.1
register-wallet-with-verification: false
assistive-pricing: true
priceMultiplier: 1.5
# newContributorGreeting:
# enabled: true
# header: "Thank you for contributing to UbiquiBot! Please be sure to set your wallet address before completing your first bounty so that the automatic payout upon task completion will work for you."
# helpMenu: true
# footer: "###### Also please star this repository and [@ubiquity/devpool-directory](https://github.com/ubiquity/devpool-directory/) to show your support. It helps a lot!"
2 changes: 1 addition & 1 deletion .github/workflows/bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ jobs:
X25519_PRIVATE_KEY: 'QCDb30UHUkwJAGhLWC-R2N0PiEbd4vQY6qH2Wloybyo'
FOLLOW_UP_TIME: '4 days'
DISQUALIFY_TIME: '7 days'
run: yarn start:serverless
run: yarn start:serverless
2 changes: 1 addition & 1 deletion .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ubiquity/action-conventional-commits@v1.1.2
- uses: ubiquity/action-conventional-commits@master
43 changes: 43 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: E2E Test

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
e2e-test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18.16.0"

- name: Install
run: yarn install

- name: Build
run: yarn build

- name: Test
env:
LOG_ENVIRONMENT: "production"
SUPABASE_URL: ${{ secrets.TEST_SUPABASE_URL }}
SUPABASE_KEY: ${{ secrets.TEST_SUPABASE_KEY }}
X25519_PRIVATE_KEY: "QCDb30UHUkwJAGhLWC-R2N0PiEbd4vQY6qH2Wloybyo"
APP_ID: ${{ secrets.TEST_APP_ID }}
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}
WEBHOOK_PROXY_URL: ${{ secrets.TEST_WEBHOOK_PROXY_URL }}
WEBHOOK_SECRET: ${{ secrets.TEST_WEBHOOK_SECRET }}
TEST_REPO: ${{ secrets.TEST_REPO }}
TEST_ORGANIZATION: ${{ secrets.TEST_ORGANIZATION }}
TEST_ADMIN_PAT: ${{ secrets.TEST_ADMIN_PAT }}
TEST_OUTSIDE_COLLABORATOR_PAT: ${{ secrets.TEST_OUTSIDE_COLLABORATOR_PAT }}
run: "yarn test:e2e"
1 change: 1 addition & 0 deletions .github/workflows/kebab-case.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
"^\.\/build"
"^\.\/vendor"
"^\.\/\.next"
"^\.\/tests"
"\.sql$"
"\.md$"
"\.d.ts$"
Expand Down
35 changes: 34 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ yarn start:watch
- `LOGDNA_INGESTION_KEY`: Get it from [Memzo](https://app.mezmo.com/) by creating an account, adding an organization, and copying the ingestion key on the next screen.
- `FOLLOWUP_TIME`: (optional) Set a custom follow-up time (default: 4 days).
- `DISQUALIFY_TIME`: (optional) Set a custom disqualify time (default: 7 days).
- `OPENAI_API_HOST`: (optional) Set OpenAI host url (default: https://api.openai.com).
- `OPENAI_API_KEY`: Set OpenAI key.
- `CHATGPT_USER_PROMPT_FOR_IMPORTANT_WORDS`: (optional) Set a custom user prompt for finding important words
(default: "I need your help to find important words (e.g. unique adjectives) from github issue below and I want to parse them easily so please separate them using #(No other contexts needed). Please separate the words by # so I can parse them easily. Please answer simply as I only need the important words. Here is the issue content.\n").
- `CHATGPT_USER_PROMPT_FOR_MEASURE_SIMILARITY`: (optional) Set a custom user prompt for measuring similarity
(default: 'I have two github issues and I need to measure the possibility of the 2 issues are the same content (No other contents needed and give me only the number in %).\n Give me in number format and add % after the number.\nDo not tell other things since I only need the number (e.g. 85%). Here are two issues:\n 1. "%first%"\n2. "%second%"').
- `SIMILARITY_THRESHOLD`: (optional) Set similarity threshold (default: 80).
- `MEASURE_SIMILARITY_AI_TEMPERATURE`: (optional) Set ChatGPT temperature for measuring similarity (default: 0).
- `IMPORTANT_WORDS_AI_TEMPERATURE`: (optional) Set ChatGPT temperature for finding important words (default: 0).

`APP_ID` and `PRIVATE_KEY` are [here](https://t.me/c/1588400061/1627) for internal developers to use.
If you are an external developer, `APP_ID`and `PRIVATE_KEY` are automatically generated when you install the app on your repository.
Expand Down Expand Up @@ -215,7 +224,7 @@ Bounty bot is built using the [probot](https://probot.github.io/) framework so i
├── <a href="https://github.com/ubiquity/ubiquibot/tree/development/src/utils">utils</a> A set of utility functions
</pre>

## Default Config Notes (`ubiquibot-config-default.json`)
## Default Config Notes (`ubiquibot-config-default.ts`)

We can't use a `jsonc` file due to limitations with Netlify. Here is a snippet of some values with notes next to them.

Expand All @@ -230,3 +239,27 @@ We can't use a `jsonc` file due to limitations with Netlify. Here is a snippet o
}
}
```

## Supabase Cron Job (`logs-cleaner`)

##### Dashboard > Project > Database > Extensions

> Search `PG_CRON` and Enable it.


##### Dashboard > Project > SQL Editor

```sql
-- Runs everyday at 03:00 AM to cleanup logs that are older than a week
-- Use the cron time format to modify the trigger time if necessary
select
cron.schedule (
'logs-cleaner', -- Job name
'0 3 * * *', -- Everyday at 03:00 AM
$$DELETE FROM logs WHERE timestamp < now() - INTERVAL '1 week'$$
);


-- Cancel the cron job
select cron.unschedule('logs-cleaner');
```
2 changes: 1 addition & 1 deletion app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ default_events:
# - gollum
- issue_comment
- issues
# - label
- label
# - milestone
# - member
# - membership
Expand Down
4 changes: 4 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"rootDir": "lib/",
"maxConcurrency": 1
}
21 changes: 17 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"start:serverless": "tsx src/adapters/github/github-actions.ts",
"start:watch": "nodemon --exec 'yarn start'",
"start": "probot run ./lib/src/index.js",
"prepare": "husky install"
"prepare": "husky install",
"test:e2e": "jest",
"utils:cspell": "cspell --config .cspell.json 'src/**/*.{js,ts,json,md,yml}'"
},
"dependencies": {
"@actions/core": "^1.10.0",
Expand All @@ -31,28 +33,34 @@
"@netlify/functions": "^1.4.0",
"@probot/adapter-aws-lambda-serverless": "^3.0.2",
"@probot/adapter-github-actions": "^3.1.3",
"@sinclair/typebox": "^0.25.9",
"@sinclair/typebox": "^0.31.5",
"@supabase/supabase-js": "^2.4.0",
"@types/ms": "^0.7.31",
"@types/parse5": "^7.0.0",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"@uniswap/permit2-sdk": "^1.2.0",
"@vercel/ncc": "^0.34.0",
"ajv": "^8.11.2",
"ajv-formats": "^2.1.1",
"axios": "^1.3.2",
"decimal.js": "^10.4.3",
"copyfiles": "^2.4.1",
"cspell": "^7.0.0",
"decimal.js": "^10.4.3",
"ethers": "^5.7.2",
"exponential-backoff": "^3.1.1",
"husky": "^8.0.2",
"jimp": "^0.22.4",
"js-yaml": "^4.1.0",
"libsodium-wrappers": "^0.7.11",
"lint-staged": "^13.1.0",
"lodash": "^4.17.21",
"ms": "^2.1.3",
"node-html-parser": "^6.1.5",
"node-html-to-image": "^3.3.0",
"nodemon": "^2.0.19",
"octokit": "^3.1.0",
"openai": "^4.2.0",
"parse5": "^7.1.2",
"prettier": "^2.7.1",
"probot": "^12.2.4",
Expand All @@ -61,13 +69,15 @@
"yaml": "^2.2.2"
},
"devDependencies": {
"@jest/globals": "^29.6.2",
"@types/eslint": "^8.40.2",
"@types/jest": "^28.1.0",
"@types/libsodium-wrappers": "^0.7.10",
"@types/lodash": "^4.14.197",
"@types/node": "^14.18.37",
"@types/source-map-support": "^0.5.6",
"eslint": "^8.43.0",
"jest": "^26.6.3",
"jest": "^29.6.2",
"nock": "^13.0.5",
"rimraf": "3.0.2",
"smee-client": "^1.2.2",
Expand All @@ -82,6 +92,9 @@
"lint-staged": {
"*.{ts,json}": [
"prettier --write"
],
"src/**.{ts,json}": [
"cspell"
]
},
"nodemonConfig": {
Expand Down
Loading
Loading