This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into default-config
- Loading branch information
Showing
79 changed files
with
1,665 additions
and
310,589 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": ["@commitlint/config-conventional"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": ["./tsconfig.json"] | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
"rules": { | ||
"@typescript-eslint/no-floating-promises": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: "Bounty Proposal" | ||
description: Have a suggestion for how to improve UbiquiBot? Let us know! | ||
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. | ||
- 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. | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Telegram Group Chat | ||
url: https://t.me/UbiquityDAO/29891 | ||
about: "Join us on Telegram!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,6 @@ on: | |
types: | ||
- created | ||
- edited | ||
pull_request: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
calculate_bounty_job: | ||
|
@@ -33,15 +30,18 @@ jobs: | |
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.14.1" | ||
|
||
- name: Install | ||
run: yarn install | ||
|
||
- name: Authenticate as UbiquiBot | ||
uses: tibdex/[email protected] | ||
id: get_installation_token | ||
with: | ||
app_id: 346074 | ||
# https://github.com/organizations/ubiquibot/settings/apps/ubiquibot-qa/installations | ||
# https://github.com/apps/ubiquibot-qa/installations/new/permissions?target_id=4975670 | ||
# https://github.com/settings/installations/38790399 | ||
private_key: | | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEpQIBAAKCAQEA3QM8hM2PNtmZVDu9fMWCznTw4FefZ2JXe+3ong4TX4G/d3QD | ||
|
@@ -70,7 +70,7 @@ jobs: | |
RoF1Gt57QIS+TdRQFMkNgd7fyq4+kotQBjuRQIfDOPhKXVnopeFJOFJkAGRc4Saa | ||
BGZvyfK5g8aSy8Wtg4Lj7/wL4pEde4cm8AF4K0wbb3AfbDBB0GQk6N8= | ||
-----END RSA PRIVATE KEY----- | ||
- name: Invoke the UbiquiBot | ||
id: UbiquiBot | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ jobs: | |
- name: Local Build | ||
run: yarn build | ||
|
||
- name: Lint | ||
run: yarn lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Enforce kebab-case | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
check-filenames: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check For Non Kebab-Cased File Names | ||
run: | | ||
non_compliant_files=() | ||
ignoreList=( | ||
"^\.\/\..*\/" # Ignore hidden flies | ||
"^\.\/[^\/]*$" # Ignore files in root project directory | ||
"^\.\/node_modules" | ||
"^\.\/\.git" | ||
"^\.\/dist" | ||
"^\.\/build" | ||
"^\.\/vendor" | ||
"^\.\/\.next" | ||
"\.sql$" | ||
"\.md$" | ||
"\.d.ts$" | ||
) | ||
while read -r file; do | ||
basefile=$(basename "$file") | ||
ignoreFile=false | ||
for pattern in "${ignoreList[@]}"; do | ||
if echo "$file" | grep -q -E "$pattern"; then | ||
ignoreFile=true | ||
break | ||
fi | ||
done | ||
if $ignoreFile; then | ||
continue | ||
elif ! echo "$basefile" | grep -q -E "^([a-z0-9]+-)*[a-z0-9]+(\.[a-zA-Z0-9]+)?$|^([a-z0-9]+_)*[a-z0-9]+(\.[a-zA-Z0-9]+)?$"; then | ||
non_compliant_files+=("$file") | ||
echo "::warning file=$file::This file is not in kebab-case or snake_case" | ||
fi | ||
done < <(find . -type f) | ||
if [ ${#non_compliant_files[@]} -ne 0 ]; then | ||
echo "The following files are not in kebab-case or snake_case:" | ||
for file in "${non_compliant_files[@]}"; do | ||
echo " - $file" | ||
done | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Automate QA | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- review_requested | ||
branches: [development, main] | ||
|
||
jobs: | ||
add-to-project: | ||
env: | ||
ADD_TO_PROJECT_PAT: ${{ secrets.ADD_TO_PROJECT_PAT }} | ||
name: Add issue to project | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- name: Add PR to QA project | ||
if: contains(github.event.pull_request.requested_reviewers.*.login, 'Draeieg') | ||
uses: actions/[email protected] | ||
with: | ||
project-url: https://github.com/orgs/ubiquity/projects/23 | ||
github-token: ${{ env.ADD_TO_PROJECT_PAT }} | ||
|
||
- name: Create QA Issue | ||
if: contains(github.event.pull_request.requested_reviewers.*.login, 'Draeieg') | ||
uses: dacbd/create-issue-action@v1 | ||
with: | ||
token: ${{ env.ADD_TO_PROJECT_PAT }} | ||
owner: ubiquibot | ||
repo: staging | ||
title: QA for ${{ github.event.pull_request.title }} | ||
body: | | ||
Testing pr <a href="${{ github.event.pull_request.html_url }}">${{ github.event.pull_request.number }}</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ supabase/.branches | |
supabase/temp | ||
# Local Netlify folder | ||
.netlify | ||
bin | ||
.yarn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v18.16.0 | ||
v20.3.0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
ISC License | ||
MIT License | ||
|
||
Copyright (c) 2022, Ubiquity DAO | ||
|
||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted, provided that the above | ||
copyright notice and this permission notice appear in all copies. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.