Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Config command #891

Draft
wants to merge 352 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
352 commits
Select commit Hold shift + click to select a range
bff5d25
chore(supabase): init
0x4007 Sep 26, 2023
2a5cb59
chore: generate database types
0x4007 Sep 27, 2023
ca5a133
fix: jest
0x4007 Sep 27, 2023
031d2ff
fix(database): typings for logging
0x4007 Sep 27, 2023
3147c31
chore: delete build file
0x4007 Sep 27, 2023
e344a34
chore: make location optional
0x4007 Sep 27, 2023
f2c9b31
fix: preserve typings in logger of database
0x4007 Sep 27, 2023
3f33c92
chore(types): simplify node id
0x4007 Sep 27, 2023
af9098b
chore: ripping everything out from database functions to test and see…
0x4007 Sep 27, 2023
7e0a1ce
chore: update database types
0x4007 Sep 28, 2023
b348b20
refactor: database client
0x4007 Oct 3, 2023
4251c96
feat(tests): user wallet return works
0x4007 Oct 4, 2023
264845f
test(wallet): get user wallet string only based on user id
0x4007 Oct 4, 2023
295917a
feat: look up wallet set comment url using graphql
0x4007 Oct 4, 2023
139ff6f
feat: look up url based on node_id of registered wallet
0x4007 Oct 4, 2023
e6fd88a
feat: github node type enum for graphql node ids
0x4007 Oct 4, 2023
1e794d8
feat: github node url works
0x4007 Oct 4, 2023
e5d3370
chore: init rewrite all database functions
0x4007 Oct 4, 2023
79aef02
test: mock context
0x4007 Oct 4, 2023
ae1e04d
chore: cleanup
0x4007 Oct 4, 2023
0b557e4
fix: access but untested
0x4007 Oct 4, 2023
893c265
fix: labels access untested
0x4007 Oct 4, 2023
f050dcd
fix(assign): untested
0x4007 Oct 4, 2023
680c0c2
refactor: break apart functions in payout
0x4007 Oct 4, 2023
9704ffc
refactor: cleanup to reduce build errors
0x4007 Oct 4, 2023
72fd988
Merge branch 'development' of https://github.com/ubiquity/ubiquibot i…
0x4007 Oct 4, 2023
b8a3bfe
fix: kebab case
0x4007 Oct 4, 2023
fb08a77
Merge branch 'refactor/general' of https://github.com/pavlovcik/ubiqu…
0x4007 Oct 4, 2023
9e4a6b9
fix: wallet test
0x4007 Oct 4, 2023
47d2b52
fix: commands test
0x4007 Oct 4, 2023
cdf31ed
chore: types are broken
0x4007 Oct 4, 2023
b17327b
refactor: lint errors
0x4007 Oct 5, 2023
67c9303
chore: prettier
0x4007 Oct 5, 2023
1c83796
feat: label change authorizations
0x4007 Oct 5, 2023
977436a
feat: add penalty refactored
0x4007 Oct 5, 2023
a4c615b
refactor: set multiplier
0x4007 Oct 5, 2023
35146f2
refactor: set multiplier
0x4007 Oct 5, 2023
2c6bdb5
refactor(query): trying to go quickly to get things stable
0x4007 Oct 5, 2023
ba331e2
refactor: wallet and user registration
0x4007 Oct 6, 2023
e1e4f59
refactor: save label change
0x4007 Oct 6, 2023
2d57999
refactor: get user permission level
0x4007 Oct 6, 2023
59e70b8
fix: type errors
0x4007 Oct 6, 2023
e20e638
fix: type errors
0x4007 Oct 6, 2023
99d245b
fix: type errors
0x4007 Oct 6, 2023
1c99426
fix: type errors
0x4007 Oct 6, 2023
eda36e3
fix: type errors
0x4007 Oct 6, 2023
5be3203
fix: type errors
0x4007 Oct 7, 2023
79b1631
fix(credits): type errors
0x4007 Oct 7, 2023
a545e96
fix: all type errors solved
0x4007 Oct 7, 2023
5df2579
fix(ci): lint
0x4007 Oct 7, 2023
03bd004
chore: rename to kebab case in progress
0x4007 Oct 7, 2023
c0756ce
chore: rename to kebab case in progress
0x4007 Oct 7, 2023
de87bf0
chore: rename to kebab case in progress
0x4007 Oct 7, 2023
97ed659
Update kebab-case.yml
0x4007 Oct 7, 2023
cb0842b
feat: source map support
0x4007 Oct 8, 2023
6212c3f
fix: bot starts up
0x4007 Oct 8, 2023
457f59a
fix(logger): can find
0x4007 Oct 8, 2023
503c337
fix(logging): debugging
0x4007 Oct 8, 2023
d951f89
fix: logger
0x4007 Oct 8, 2023
3fce873
refactor: get bot state
0x4007 Oct 8, 2023
ea1412e
fix(logs): seems functional
0x4007 Oct 8, 2023
7e6c0b5
refactor(logs): improvements
0x4007 Oct 8, 2023
1bd0cf3
refactor: general cleanup
0x4007 Oct 8, 2023
35df9bd
chore: update address to 0x0
0x4007 Oct 8, 2023
c8f023f
feat: advanced location data on wallet operations
0x4007 Oct 8, 2023
5afd039
feat(allow)!: renamed to labels and refactored ux
0x4007 Oct 9, 2023
0b005ae
feat(help): render as table
0x4007 Oct 9, 2023
6ebb470
refactor(tests): cleanup redundant typings
0x4007 Oct 9, 2023
6c74a78
refactor: wallet registration
0x4007 Oct 9, 2023
fadf0d5
refactor: refine error diff comment
0x4007 Oct 9, 2023
6e307a5
chore: improve logger and assign comment
0x4007 Oct 9, 2023
180168c
Merge branch 'fix/logger' into refactor/general
0x4007 Oct 9, 2023
e85426d
Merge branch 'development' into refactor/general
0x4007 Oct 9, 2023
f432cd3
fix(logs): build errors
0x4007 Oct 9, 2023
ef3cf79
fix(ci): test command
0x4007 Oct 9, 2023
170096c
fix(logs): runtime errors
0x4007 Oct 9, 2023
9a6599d
chore: update database types
0x4007 Oct 9, 2023
fe93481
chore: change to posting location metadata
0x4007 Oct 9, 2023
4869186
fix(logs): property name changed
0x4007 Oct 9, 2023
ab1eb5d
refactor: logging and some assignment related logic
0x4007 Oct 11, 2023
211150a
refactor: general assign related functions
0x4007 Oct 11, 2023
ce1fb1d
feat(logs): include all error metadata in database
0x4007 Oct 11, 2023
14121c1
feat(logs): enhanced logger
0x4007 Oct 11, 2023
20d70f2
fix(logs): error stack seems correct
0x4007 Oct 11, 2023
84bcc7c
feat(logs): enhanced but unsure if superior to previous commit
0x4007 Oct 11, 2023
b3177f0
feat(logs): inline metadata and parsed stack trace for clear reading
0x4007 Oct 11, 2023
842e9d9
feat(logs): can throw logger to terminate bot execution
0x4007 Oct 12, 2023
91893d4
fix(labels): can set label as admin
0x4007 Oct 12, 2023
8f77230
chore(logs): logger improvements for returns of action handlers
0x4007 Oct 13, 2023
1b5012c
feat: force return values from handlers
0x4007 Oct 13, 2023
1869ce3
fix: handler returns and enhance error logs
0x4007 Oct 13, 2023
92139ee
fix(logger): error logs are no longer redundant in console if thrown
0x4007 Oct 13, 2023
cc070d2
feat(logs): descriptive error messages
0x4007 Oct 13, 2023
dfeed34
fix(handlers): make every handler return a supported value
0x4007 Oct 13, 2023
9dde6e5
refactor: cleanup
0x4007 Oct 13, 2023
e8d30b3
chore: test push handler
0x4007 Oct 13, 2023
db255f5
chore: test push handler
0x4007 Oct 13, 2023
c672b7a
chore: test push handler
0x4007 Oct 13, 2023
7d15c03
fix: some unexpected returned comments
0x4007 Oct 13, 2023
57d694d
fix(logs): seem to perform as expected
0x4007 Oct 13, 2023
ab2389d
chore(logs): enhancements
0x4007 Oct 13, 2023
0fd0606
chore(logs): enhancements
0x4007 Oct 13, 2023
9f586b5
Merge branch 'feat/enhanced-logging' into refactor/general
0x4007 Oct 13, 2023
7696ff7
Merge branch 'development' into refactor/general
0x4007 Oct 13, 2023
a0b6ea8
Merge remote-tracking branch 'ubiquibot/development' into HEAD
0x4007 Oct 13, 2023
f099be9
Merge branch 'refactor/general-sync' into refactor/general
0x4007 Oct 13, 2023
b6e22c7
refactor: move log type
0x4007 Oct 15, 2023
bd39aa0
refactor(logs): change all to standardized messages with dynamic meta…
0x4007 Oct 15, 2023
1a29979
refactor(logs): change all to standardized messages with dynamic meta…
0x4007 Oct 15, 2023
a3989e5
refactor: general cleanup
0x4007 Oct 15, 2023
fe219c7
fix(logs): metadata is rendering incorrectly for strings
0x4007 Oct 15, 2023
d5ba706
fix(config): loads correctly on personal repos not just org
0x4007 Oct 15, 2023
1696c7b
chore: remove `timeRangeForMaxIssue` boolean
0x4007 Oct 16, 2023
6986d48
fix: always respond with a message with main action handlers
0x4007 Oct 16, 2023
18c11f1
refactor: reduce redundancies
0x4007 Oct 16, 2023
02f65dc
refactor: remove shims
0x4007 Oct 16, 2023
1a881af
chore(knip): removing unused files, dependencies, and exports
0x4007 Oct 16, 2023
39e247e
chore(knip): removing unused exports and re-add some deps
0x4007 Oct 16, 2023
e568f68
chore(knip): removing unused exports
0x4007 Oct 16, 2023
f7c7718
chore(knip): removing unused exports and enums
0x4007 Oct 16, 2023
d948af8
chore(knip): removing unused exports and files
0x4007 Oct 16, 2023
d35c8a4
Merge branch 'feat/remove-unused-source-code' into refactor/general
0x4007 Oct 16, 2023
7c63117
refactor: cleanup unused file
0x4007 Oct 16, 2023
48afe29
chore: remove sql scripts
0x4007 Oct 16, 2023
2268080
fix: re-add smee client
0x4007 Oct 17, 2023
0064912
fix: log style based on return value type
0x4007 Oct 17, 2023
bb3b603
chore: update contributing guidelines
0x4007 Oct 17, 2023
e53bea7
refactor: remove global strings and change log styles to warns
0x4007 Oct 17, 2023
ea02c3b
fix: build errors
0x4007 Oct 17, 2023
53b43ff
feat: metadata commenter setup for metadata parser
0x4007 Oct 17, 2023
c5a985c
refactor: get latest event context
0x4007 Oct 17, 2023
d9744cc
fix: build errors
0x4007 Oct 17, 2023
3f23e42
Merge branch 'feat/event-context-array' into refactor/general
0x4007 Oct 17, 2023
44d739d
feat: metadata diagnostic information
0x4007 Oct 17, 2023
977e434
fix: verbose log comment color
0x4007 Oct 17, 2023
5ef634b
fix(logs): distinguish between level and type
0x4007 Oct 17, 2023
8262b68
revert: to info
0x4007 Oct 17, 2023
19100c7
fix: final `LogReturn` comment handler
0x4007 Oct 17, 2023
e5921c9
fix(assign): command works
0x4007 Oct 17, 2023
4031581
fix(pricing): assistive pricing works
0x4007 Oct 17, 2023
5d070b6
feat(help): dynamic menu details based on wallet verification config
0x4007 Oct 18, 2023
0fa5253
fix(help): remove admin related variables
0x4007 Oct 18, 2023
53dd806
chore: i need to redo everything related to permit generation
0x4007 Oct 18, 2023
16a95b5
feat: calculate tokens of contributor comments
0x4007 Oct 18, 2023
216ec55
feat: short files
0x4007 Oct 18, 2023
0e8607b
chore(ci): test short files
0x4007 Oct 18, 2023
4e4f2ba
feat: calculate quality score seems to work
0x4007 Oct 19, 2023
992c17e
test: calculate quality score
0x4007 Oct 19, 2023
622bfb8
refactor: quality test
0x4007 Oct 19, 2023
93d806a
fix: metadata return
0x4007 Oct 19, 2023
6ed6605
refactor(qual score): small changes
0x4007 Oct 19, 2023
73c9f81
chore: set up quantitative scoring
0x4007 Oct 19, 2023
e1d7f19
feat(quantity score): starting it
0x4007 Oct 20, 2023
d43e07d
chore: start adding remark
0x4007 Oct 23, 2023
7510a96
feat: custom context
whilefoo Oct 23, 2023
c17043a
feat: quantity score
0x4007 Oct 23, 2023
44f9783
Merge branch 'feat/remark-support' into refactor/permit-generation
0x4007 Oct 23, 2023
286d6a8
feat: detailed analytics on comment incentive calculations
0x4007 Oct 23, 2023
c0f5590
feat: calculate comment incentives
0x4007 Oct 23, 2023
eb9d558
feat: disable unpopular tags
0x4007 Oct 24, 2023
2db70d8
feat: ignore elements
0x4007 Oct 24, 2023
0dd433a
Merge branch 'feat/disabled-element-scoring' into refactor/permit-gen…
0x4007 Oct 24, 2023
9748379
chore: mindless linter fixes
0x4007 Oct 24, 2023
419a7dd
feat: permit generation with statistics
0x4007 Oct 24, 2023
fc0158c
feat: permits post as comment and link seems to work
0x4007 Oct 25, 2023
083eecc
feat: quality score fetches 10 samples concurrently and returns the a…
0x4007 Oct 25, 2023
553140f
style: permit details table formatting
0x4007 Oct 25, 2023
4bf08d2
fix: types
whilefoo Oct 25, 2023
4a8cf0c
feat: permit metadata parsing and writing
0x4007 Oct 25, 2023
4071c55
chore: hide quant score details
0x4007 Oct 25, 2023
88062aa
chore: add octokit rest types
0x4007 Oct 26, 2023
5f5f9c5
chore(config): rename property names to be more expressive
0x4007 Oct 26, 2023
93809eb
chore: move unassign to its own directory
0x4007 Oct 26, 2023
10890be
feat: checks linked pull request to calculate comment incentives
0x4007 Oct 26, 2023
c74c43a
Merge branch 'feat/pull-request-score' into refactor/general
0x4007 Oct 26, 2023
83d65c3
feat: preflight checks
0x4007 Oct 26, 2023
85e9596
fix: unexpected spaces
0x4007 Oct 26, 2023
a3a62be
fix: closed as complete to pay for task
0x4007 Oct 26, 2023
fccc455
fix(config): remove useless options, rename some to be more expressive
0x4007 Oct 27, 2023
5d73a89
refactor: cleanup
0x4007 Oct 27, 2023
a5eac54
fix: filepath
0x4007 Oct 27, 2023
6cf0f77
chore: init refactor bot config
0x4007 Oct 27, 2023
69a29b7
refactor(config): ajv broken cant figure out what the error message m…
0x4007 Oct 28, 2023
bcb35cd
chore(ajv): had to disable strict validation no idea what the origin …
0x4007 Oct 28, 2023
b414d45
fix(ajv): loading default config is stable
0x4007 Oct 28, 2023
bdf0ba4
chore: this is all broken
0x4007 Oct 28, 2023
90ce391
Merge remote-tracking branch 'pavlovcik/refactor/general' into custom…
whilefoo Oct 29, 2023
51d069f
Merge pull request #29 from ubiquity-whilefoo/custom-context
0x4007 Oct 30, 2023
369d885
feat: contributor incentives
0x4007 Oct 31, 2023
6161872
feat: contributor incentives
0x4007 Oct 31, 2023
24bf782
Merge remote-tracking branch 'pavlovcik/refactor/general' into feat/c…
0x4007 Oct 31, 2023
0d66ce5
revert: undo context merges
0x4007 Oct 31, 2023
da5bebe
chore: add context and hold off on full incentives scoring
0x4007 Oct 31, 2023
6d00852
chore: add context and hold off on full incentives scoring
0x4007 Oct 31, 2023
2710fcb
refactor: try and calculate main scores
0x4007 Oct 31, 2023
c55e93c
refactor(scoring): trying to consolidate into single normalization an…
0x4007 Oct 31, 2023
0222f5a
chore: create permit comment mockup and interfaces
0x4007 Nov 1, 2023
37b3e2a
fix(ms): safe ms wrapper because does not support months
0x4007 Nov 2, 2023
b0035a6
feat: aggregate errors
0x4007 Nov 2, 2023
d6414c2
fix: wildcard unassigns
0x4007 Nov 2, 2023
bf8f20a
feat: allow setting price label only
0x4007 Nov 2, 2023
f6e23eb
feat: tried zod
whilefoo Nov 2, 2023
f5da0ab
Merge remote-tracking branch 'pavlovcik/refactor/general' into refact…
whilefoo Nov 2, 2023
85a3bf4
feat: new config
whilefoo Nov 3, 2023
3e939d5
fix: circular dependencies
whilefoo Nov 4, 2023
4926daf
fix: schema and decode
whilefoo Nov 5, 2023
776938a
fix: payload user type
whilefoo Nov 5, 2023
85f43ca
feat: contributor incentives total scoring (unstable)
0x4007 Nov 5, 2023
79347a7
fix: main type errors
0x4007 Nov 6, 2023
0693854
refactor: generalizing the contribution scoring schema
0x4007 Nov 7, 2023
0287185
feat: comment scoring cleaned up and includes more information
0x4007 Nov 7, 2023
28d67cd
fix: almost at the end of making better types for scoring
0x4007 Nov 8, 2023
3c67919
fix: transform/decode, config validation at the start
whilefoo Nov 8, 2023
53d899b
fix: got to permit generation
0x4007 Nov 8, 2023
dd465d2
fix: type errors
0x4007 Nov 8, 2023
db35021
fix: permit type errors
0x4007 Nov 8, 2023
666a072
fix: type errors almost completed
0x4007 Nov 8, 2023
e8aa4c6
fix: all type errors fixed
0x4007 Nov 9, 2023
ba91015
feat(start): works with only price set
0x4007 Nov 9, 2023
33b955c
feat: error messages, probot context in adapters
whilefoo Nov 10, 2023
2ef0cdb
feat: initialize
wannacfuture Nov 10, 2023
a8391c8
fix: some runtime bugs
0x4007 Nov 11, 2023
047998b
Merge remote-tracking branch 'pavlovcik/feat/contributor-incentives-t…
0x4007 Nov 11, 2023
d0f62e0
refactor: cleanup
0x4007 Nov 11, 2023
8897087
fix: tests
whilefoo Nov 12, 2023
1100888
fix: added comment
whilefoo Nov 13, 2023
1e1fe26
refactor: small adjustments
0x4007 Nov 13, 2023
d057dc6
Merge branch 'refactor/bot-config' of https://github.com/ubiquity-whi…
0x4007 Nov 13, 2023
528b8c6
refactor: organize imports
0x4007 Nov 13, 2023
54a7066
Merge branch 'ubiquity-whilefoo-refactor/bot-config' into feat/contri…
0x4007 Nov 13, 2023
a0e488e
fix: build errors
0x4007 Nov 13, 2023
53428a5
fix(config): token limit moved to misc
0x4007 Nov 14, 2023
e1be6a8
fix(config): loader still not stable
0x4007 Nov 14, 2023
d8fd54c
refactor: cleanup
0x4007 Nov 14, 2023
232cecd
feat: remove zod
whilefoo Nov 14, 2023
4cc7866
fix: merge before validation/defaults
whilefoo Nov 14, 2023
ca1d827
feat: custom merge for arrays and change commands to disabledCommands
whilefoo Nov 16, 2023
62cb0c6
Merge pull request #45 from ubiquity-whilefoo/fix-config
0x4007 Nov 16, 2023
4ccce56
feat: logs do not render in console or comment if filtered out based …
0x4007 Nov 16, 2023
2949f7e
feat: logs do not render in comment if filtered out and if bubbled to…
0x4007 Nov 16, 2023
3806a89
fix: refactored 'ubiquibot-config.yml' and redesigned logger statements
0x4007 Nov 17, 2023
6253435
feat: comment on commit
0x4007 Nov 17, 2023
5dfc27e
feat: improved comment posting and structured metadata util
0x4007 Nov 17, 2023
af772be
feat: duplication fix
wannacfuture Nov 17, 2023
ad8e068
feat: minor fix
wannacfuture Nov 17, 2023
880281c
feat: minor fix
wannacfuture Nov 17, 2023
d00946c
Merge pull request #48 from pavlovcik/feat/contributor-incentives-tot…
0x4007 Nov 17, 2023
2c36717
feat: command init
Keyrxng Nov 17, 2023
d2132bc
feat: basic help
Keyrxng Nov 17, 2023
a2ec9fa
feat: infer, inject, push
Keyrxng Nov 18, 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
4 changes: 4 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
"micromark",
"milestoned",
"Numberish",
"OPENAI",
"orgname",
"pavlovcik",
"permisson",
"Postgrest",
"prereleased",
"probot",
"Probot",
Expand All @@ -42,13 +44,15 @@
"Supabase",
"SUPABASE",
"svgs",
"tiktoken",
"timelabel",
"TURL",
"typebox",
"Ubiqui",
"ubiquibot",
"unarchived",
"Unassigning",
"upserted",
"Upserting",
"URLSAFE",
"vitalik",
Expand Down
6 changes: 0 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,3 @@ CHATGPT_USER_PROMPT_FOR_MEASURE_SIMILARITY='I have two github issues and I need
SIMILARITY_THRESHOLD=80
MEASURE_SIMILARITY_AI_TEMPERATURE=0
IMPORTANT_WORDS_AI_TEMPERATURE=0

# Telegram Log Notification Envs
LOG_WEBHOOK_BOT_URL= # URL of cloudflare worker without trailing /
LOG_WEBHOOK_SECRET= # Random Secret, Shared between the telegram bot and the sender
LOG_WEBHOOK_GROUP_ID= # Group Id, ex: -100124234325
LOG_WEBHOOK_TOPIC_ID= # Topic Id (Optional), Only provide if group is a topic and you're not using General
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: "Bounty Proposal"
name: "Task Proposal"
description: Have a suggestion for how to improve UbiquiBot? Let us know!
title: "Bounty Proposal: "
title: "Task Proposal: "

body:
- type: markdown
attributes:
value: |
## Feature Request Form
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!
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
Expand All @@ -17,14 +17,14 @@ body:
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

- type: textarea
attributes:
label: Describe the solution
description: A clear description of what you want to happen. Add any considered drawbacks.
validations:
required: true

- type: textarea
attributes:
label: Remarks
Expand Down
14 changes: 8 additions & 6 deletions .github/ubiquibot-config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
price-multiplier: 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!"
payments:
basePriceMultiplier: 1.5
features:
newContributorGreeting:
enabled: true
header: "Thank you for contributing to UbiquiBot! Please be sure to set your wallet address before completing your first task so that the automatic payout upon task completion will work for you."
displayHelpMenu: 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!"
84 changes: 0 additions & 84 deletions .github/workflows/bot.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
env:
SUPABASE_ACCESS_TOKEN: ${{ github.ref == 'refs/heads/main' && secrets.PRODUCTION_SUPABASE_ACCESS_TOKEN || secrets.STAGING_SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ github.ref == 'refs/heads/main' && secrets.PRODUCTION_SUPABASE_DB_PASSWORD || secrets.STAGING_SUPABASE_DB_PASSWORD }}
PROJECT_ID: ${{ github.ref == 'refs/heads/main' && secrets.PRODUCTION_SUPABASE_PROJECT_ID || secrets.STAGING_SUPABASE_PROJECT_ID }}
SUPABASE_PROJECT_ID: ${{ github.ref == 'refs/heads/main' && secrets.PRODUCTION_SUPABASE_PROJECT_ID || secrets.STAGING_SUPABASE_PROJECT_ID }}

steps:
- name: Checkout repository
Expand All @@ -42,7 +42,7 @@ jobs:
version: latest

- name: Link Supabase project
run: supabase link --project-ref $PROJECT_ID
run: supabase link --project-ref $SUPABASE_PROJECT_ID

- name: Run migrations
run: supabase db push
53 changes: 53 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Run E2E Tests

on:
- workflow_dispatch
- push

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:

APP_ID: ${{ secrets.APP_ID }}
# CHATGPT_USER_PROMPT_FOR_IMPORTANT_WORDS:
# CHATGPT_USER_PROMPT_FOR_MEASURE_SIMILARITY:
DISQUALIFY_TIME: "7 days"
FOLLOW_UP_TIME: "4 days"
# IMPORTANT_WORDS_AI_TEMPERATURE:
LOG_ENVIRONMENT: "production"
# LOG_LEVEL:
# MEASURE_SIMILARITY_AI_TEMPERATURE:
# OPENAI_API_HOST:
# OPENAI_API_KEY:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
# SIMILARITY_THRESHOLD:
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
# SUPABASE_PROJECT_ID:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
TEST_ADMIN_PAT: ${{ secrets.TEST_ADMIN_PAT }}
TEST_ORGANIZATION_NAME: ${{ secrets.TEST_ORGANIZATION_NAME }}
TEST_OUTSIDE_COLLABORATOR_PAT: ${{ secrets.TEST_OUTSIDE_COLLABORATOR_PAT }}
TEST_REPOSITORY_NAME: ${{ secrets.TEST_REPOSITORY_NAME }}
WEBHOOK_PROXY_URL: ${{ secrets.WEBHOOK_PROXY_URL }}
WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }}
X25519_PRIVATE_KEY: "QCDb30UHUkwJAGhLWC-R2N0PiEbd4vQY6qH2Wloybyo"

run: "yarn test"
7 changes: 5 additions & 2 deletions .github/workflows/kebab-case.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ jobs:
"^\.\/vendor"
"^\.\/test"
"^\.\/\.next"
"^\.\/tests"
"\.sql$"
"\.md$"
"\.d.ts$"
"\.d\.ts$"
"\.gitignore$" # Ignore .gitignore files
"\.test\.ts$" # Ignore .test.ts files
)
while read -r file; do
basefile=$(basename "$file")
Expand All @@ -48,4 +51,4 @@ jobs:
echo " - $file"
done
exit 1
fi
fi
32 changes: 0 additions & 32 deletions .github/workflows/release.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/short-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check File Length

on:
push:
pull_request:

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Check file length
run: |
IGNORE=("src/adapters/supabase/types/database.ts" "src/generatedFile2.ts") # Add more files to ignore as needed
find src -name "*.ts" -type f -exec bash -c '
for ignore in "${IGNORE[@]}"; do
if [[ "$1" == "$ignore" ]]; then
echo "Ignoring $ignore"
exit 0
fi
done
if [[ $(wc -l < "$1") -gt 512 ]]; then
echo "File $1 line length is greater than 512. This should be broken up into smaller files."
exit 1
fi
' bash {} \;
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ supabase/temp
# Local Netlify folder
.netlify
bin
.yarn
.yarn
yarn-error.log
tsconfig.tsbuildinfo
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"printWidth": 160,
"printWidth": 120,
"htmlWhitespaceSensitivity": "strict",
"plugins": []
}
6 changes: 2 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"files.exclude": {
"dist": true,
"node_modules": true,
"lib": true
"node_modules": true
},
"explorer.excludeGitIgnore": false,
"cSpell.words": ["Probot", "Ubiqui"]
"explorer.excludeGitIgnore": false
}
Loading