Skip to content

Commit 3a25ca3

Browse files
authored
Initial commit
0 parents  commit 3a25ca3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+3570
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: '[BUG]'
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[FEATURE]"
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Feature Description**
11+
A clear and concise description of what you want to happen.
12+
13+
**Example(s)**
14+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
15+
16+
**Possible Approaches or Libraries to Consider**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Question
3+
about: Pose a question to the StackQL team
4+
title: "[QUESTION]"
5+
labels: question
6+
assignees: ''
7+
8+
---
9+
10+
11+
## Question
12+
13+
This channel is an opportunity to ask ad-hoc questions to the `stackql` team. This channel is in lieu of an official platform for ongoing discussions and questions. Please ask your question :)
14+
15+
**Note**: Questions over github issues will be deprecated and retired once we settle on a platform / process ongoing.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Description
2+
3+
Please include a summary of the changes and the related issue(s). Please also include relevant motivation and context.
4+
5+
## Checklist
6+
7+
Please make sure that the following criteria are met:
8+
9+
- [ ] The PR title is descriptive.
10+
- [ ] I have ⭐'ed the [stackql](https://github.com/stackql/stackql) and this repo.
11+
12+
## Additional Notes
13+
14+
Add any additional information or context that might help the reviewers.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'website/**'
9+
10+
jobs:
11+
build:
12+
name: Build Docusaurus
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: yarn
23+
cache-dependency-path: website/yarn.lock
24+
25+
- name: Install dependencies
26+
run: yarn install --frozen-lockfile
27+
working-directory: website
28+
29+
- name: Build website
30+
run: yarn build
31+
working-directory: website
32+
33+
- name: Upload Build Artifact
34+
uses: actions/upload-pages-artifact@v3
35+
with:
36+
path: website/build # Ensure the path is correctly set to the Docusaurus build output
37+
38+
deploy:
39+
name: Deploy to GitHub Pages
40+
needs: build
41+
42+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
43+
permissions:
44+
pages: write # to deploy to Pages
45+
id-token: write # to verify the deployment originates from an appropriate source
46+
47+
# Deploy to the github-pages environment
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
51+
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4
57+
with:
58+
working-directory: website/build # Ensures the correct directory is used for deployment

.github/workflows/star-check.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Check if PR author has starred required repositories
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
jobs:
6+
check-starred:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
- name: Get PR author username and repo info
12+
id: get-info
13+
run: |
14+
echo "username=${{ github.event.pull_request.user.login }}" >> $GITHUB_ENV
15+
echo "current_repo=${{ github.event.repository.name }}" >> $GITHUB_ENV
16+
echo "current_owner=${{ github.repository_owner }}" >> $GITHUB_ENV
17+
- name: Pull github provider
18+
uses: stackql/[email protected]
19+
with:
20+
is_command: 'true'
21+
query: "REGISTRY PULL github;"
22+
- name: Run stackql query
23+
id: check-star
24+
uses: stackql/[email protected]
25+
with:
26+
test_query: |
27+
SELECT repo, count(*) as has_starred
28+
FROM github.activity.repo_stargazers
29+
WHERE owner = '${{ env.current_owner }}' and repo IN ('stackql','${{ env.current_repo }}')
30+
AND login = '${{ env.username }}'
31+
GROUP BY repo;
32+
expected_results_str: '[{"has_starred":"1","repo":"stackql"},{"has_starred":"1","repo":"${{ env.current_repo }}"}]'
33+
continue-on-error: true
34+
- name: Check if starred
35+
if: always() # Ensures this runs regardless of check-star outcome
36+
run: |
37+
if [ "${{ steps.check-star.outcome }}" = "success" ]; then
38+
echo "::notice::Thanks for your support!"
39+
else
40+
echo "::error::It seems you haven't starred the required repositories. Please star the following repos before proceeding: https://github.com/${{ env.current_owner }}/${{ env.current_repo }} (this repo) and https://github.com/stackql/stackql (our core repo)"
41+
exit 1
42+
fi
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test deployment
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- 'website/**'
9+
10+
jobs:
11+
test-deploy:
12+
name: Test deployment
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: yarn
23+
cache-dependency-path: website/yarn.lock
24+
25+
- name: Install dependencies
26+
run: yarn install --frozen-lockfile
27+
working-directory: website
28+
29+
- name: Test build website
30+
run: yarn build
31+
working-directory: website

.gitignore

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
main.zip
2+
3+
# Byte-compiled / optimized / DLL files
4+
__pycache__/
5+
*.py[cod]
6+
*$py.class
7+
8+
# Virtual environments
9+
.venv/
10+
venv/
11+
env/
12+
ENV/
13+
14+
# Hatch/Poetry build artifacts
15+
dist/
16+
build/
17+
*.egg-info/
18+
19+
# Installer logs
20+
pip-log.txt
21+
pip-delete-this-directory.txt
22+
23+
# Unit test cache and coverage
24+
.coverage
25+
.cache/
26+
pytest_cache/
27+
htmlcov/
28+
**/__pycache__
29+
30+
# IDE / editor settings
31+
.vscode/
32+
.idea/
33+
*.swp
34+
*.swo
35+
36+
# Output directory
37+
output/
38+
39+
# Misc
40+
.DS_Store
41+
*.log
42+
*.tmp
43+
*.bak
44+
45+
# stackql
46+
.stackql/
47+
stackql
48+
stackql-zip
49+
stackql-aws-cloud-shell.sh
50+
stackql-azure-cloud-shell.sh
51+
stackql-google-cloud-shell.sh
52+
.env
53+
nohup.out
54+
55+
# node
56+
# Ignore node_modules in all directories
57+
**/node_modules/
58+
59+
# Ignore build outputs in all directories
60+
**/dist/
61+
**/build/
62+
**/.next/
63+
**/.cache/
64+
**/.turbo/
65+
66+
# Ignore log files
67+
**/npm-debug.log
68+
**/yarn-debug.log
69+
**/yarn-error.log
70+
**/pnpm-debug.log
71+
72+
# Ignore lock files (optional if you don't want to commit them)
73+
# Uncomment if you want to ignore lock files:
74+
# **/package-lock.json
75+
# **/yarn.lock
76+
# **/pnpm-lock.yaml
77+
78+
# Ignore dotenv files (if secrets are present)
79+
**/.env
80+
**/.env.*.local
81+
82+
# Ignore coverage and test output
83+
**/coverage/
84+
**/test-output/
85+
# Ignore everything in source directory except .gitkeep
86+
source/*

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@jsr:registry=https://npm.jsr.io

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 StackQL Studios
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)