Skip to content

Commit

Permalink
migrated to next & typescript #1122
Browse files Browse the repository at this point in the history
  • Loading branch information
priyankarpal committed Jul 4, 2023
0 parents commit 7c50327
Show file tree
Hide file tree
Showing 54 changed files with 9,928 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: priyankarpal
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: 🐞 Bug Report
description: File a bug report
title: 'Bug: '
labels: ['🛠 goal: fix', '🚦status: awaiting triage']
body:
- type: textarea
id: what-happened
attributes:
label: What happened?
placeholder: Add descriptions
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Add screenshots
placeholder: Add screenshots
validations:
required: true
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
multiple: true
options:
- Firefox
- Chrome
- Safari
- Microsoft Edge
- Brave
- Other
- type: checkboxes
id: terms
attributes:
label: 'Record'
options:
- label: I agree to follow this project's Code of Conduct
required: true

- label: I'm a GSSoC'23 contributor

- label: I want to work on this issue
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 🔖 Documentation update
description: Improve Documentation
title: 'Docs:'
labels: ['📄 aspect: text', '🚦status: awaiting triage']
body:
- type: textarea
id: improve-docs
attributes:
label: what's wrong in the documentation?
description: which things do we need to add?
placeholder: Add description
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Add screenshots
description: Add screenshots to see the demo
placeholder: Add screenshots
validations:
required: true
- type: checkboxes
id: terms
attributes:
label: 'Record'
options:
- label: I agree to follow this project's Code of Conduct
required: true

- label: I'm a GSSoC'23 contributor

- label: I want to work on this issue
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: ✨ Feature Request
description: Suggest a feature request
title: 'Feat:'
labels: ['⭐ goal: addition', '🚦status: awaiting triage']
body:
- type: textarea
id: what-feature
attributes:
label: What feature?
placeholder: Add descriptions
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Add screenshots
placeholder: Add screenshots
validations:
required: true
- type: checkboxes
id: terms
attributes:
label: 'Record'
options:
- label: I agree to follow this project's Code of Conduct
required: true

- label: I'm a GSSoC'23 contributor

- label: I want to work on this issue
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/project-add.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 🌱 Project Addition
description: Add a new project to the list
title: 'Data: project addition by '
labels: ['projects addition', '🚦status: awaiting triage']
body:
- type: textarea
id: project-add
attributes:
label: Add a new project to the list
validations:
required: true
- type: checkboxes
id: terms
attributes:
label: 'Record'
options:
- label: I agree to follow this project's Code of Conduct
required: true

- label: I'm a GSSoC'23 contributor

- label: I want to work on this issue
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Related Issue

<!-- If there is no issue number, the PR will not be merged. Therefore, please ensure that the issue number is added -->

## Description

<!-- Please provide more context or information for us to properly rewrite your statement -->

## Screenshots

<!-- Add screenshots to preview the changes -->
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
projects addition:
- 'src/DB/*'
wait for reviewers:
- '**/*'
38 changes: 38 additions & 0 deletions .github/pr-title-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"LABEL": {
"name": "title-needs-formatting",
"color": "EEEEEE"
},
"CHECKS": {
"prefixes": [
"fix: ",
"feat: ",
"docs: ",
"test: ",
"chore: ",
"ci: ",
"perf: ",
"refactor: ",
"revert: ",
"style: ",
"data:",
"fix(",
"feat(",
"docs(",
"chore(",
"ci(",
"perf(",
"refactor(",
"revert(",
"style(",
"test(",
"data(",
"[Backport"
]
},
"MESSAGES": {
"success": "All OK",
"failure": "Failing CI test",
"notice": ""
}
}
13 changes: 13 additions & 0 deletions .github/workflows/author-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Author Assign'

on:
pull_request_target:
types: [opened, reopened]

jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/[email protected]
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
76 changes: 76 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: 'CodeQL'

on:
push:
branches: ['main']
pull_request:
# The branches below must be a subset of the branches above
branches: ['main']
schedule:
- cron: '43 3 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ['javascript']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: '/language:${{matrix.language}}'
22 changes: 22 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Greetings'

on:
fork:
push:
branches: [main]
issues:
types: [opened]
pull_request_target:
types: [opened]

jobs:
welcome:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: EddieHubCommunity/gh-action-community/src/welcome@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Congratulations, @${{ github.actor }}! 🎉 Thank you for creating your issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work!'
pr-message: 'Great job, @${{ github.actor }}! 🎉 Thank you for submitting your first pull request. Your contribution is valuable and we appreciate your efforts to improve our project.'
footer: 'We will promptly review your changes and offer feedback. Keep up the excellent work! Kindly remember to check our [contributing guidelines](https://github.com/priyankarpal/ProjectsHut/blob/main/contributing.md)'
21 changes: 21 additions & 0 deletions .github/workflows/issue-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Lock new issues'

on:
issues:
types: opened

permissions:
issues: write

jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/repo-lockdown@v3
with:
close-issue: false
exclude-issue-labels: '🏁 status: ready for dev'
process-only: 'issues'
skip-closed-issue-comment: true
issue-comment: >
To reduce notifications, issues are locked. Your issue will be unlock when we will add label as `🏁 status: ready for dev`. Check out the [contributing guide](https://github.com/priyankarpal/ProjectsHut/blob/main/contributing.md) for more information. Also, if you're in GSSoC'23 please check the [discussion](https://github.com/priyankarpal/ProjectsHut/discussions/415)
17 changes: 17 additions & 0 deletions .github/workflows/jsoncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: JSON check

on:
push:
paths:
- '**.json'
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: json-syntax-check
uses: limitusus/json-syntax-check@v2
with:
pattern: "\\.json$"
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'Labeler'
on:
- pull_request_target

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
19 changes: 19 additions & 0 deletions .github/workflows/pr-title-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'PR Title Checker'
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- labeled
- unlabeled

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: thehanimo/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pass_on_octokit_error: false
configuration_path: '.github/pr-title-checker-config.json'
Loading

0 comments on commit 7c50327

Please sign in to comment.