-
-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into adding-videos-on-open-source
- Loading branch information
Showing
143 changed files
with
4,453 additions
and
1,928 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Category Description 📝 | ||
description: Use this to add or update the category's description | ||
title: "[Description] <write which description you want to add or update>" | ||
labels: ["chore", "goal: description"] | ||
body: | ||
- type: input | ||
attributes: | ||
label: Category Name | ||
description: Provide Name of Category | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Subcategory Name | ||
description: Provide Name of Subctaegory | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: New or updated description of above subcategory | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
attributes: | ||
label: Status of Description | ||
options: | ||
- label: "Adding new description" | ||
required: false | ||
|
||
- label: "Updating existing description" | ||
required: false | ||
- type: checkboxes | ||
id: no-duplicate-issues | ||
attributes: | ||
label: "Checklist" | ||
options: | ||
- label: "I have checked the existing issues" | ||
required: true | ||
|
||
- label: "I have read the [Contributing Guidelines](https://github.com/rupali-codes/LinksHub/blob/main/CONTRIBUTING.md)" | ||
required: true | ||
|
||
- label: "I am willing to work on this issue (optional)" | ||
required: false | ||
|
||
- label: "I am a GSSoC'23 contributor" | ||
required: false |
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,48 @@ | ||
name: 'Documentation 📋' | ||
description: 'Use this form to present your suggestions on how to improve our docs' | ||
title: '[DOCS] <write your suggestion here>' | ||
labels: ['documenation', 'goal: enhancement'] | ||
|
||
body: | ||
- type: textarea | ||
id: docs_description | ||
attributes: | ||
label: 'Issue Description' | ||
description: 'Please provide a brief summary of the documentation issue you are experiencing or would like to address.' | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: additional_context_docs | ||
attributes: | ||
label: 'Additional Context' | ||
description: 'If there is any additional context or information that would be helpful for addressing the documentation issue, please provide it here.' | ||
|
||
- type: textarea | ||
id: screenshots_examples_docs | ||
attributes: | ||
label: 'Screenshots or Examples (if applicable)' | ||
description: 'Please include relevant screenshots or examples to help illustrate the problem.' | ||
|
||
- type: textarea | ||
id: proposed_solution_docs | ||
attributes: | ||
label: 'Proposed Solution (optional)' | ||
description: 'If you have a proposed solution for the documentation issue, please provide it here. This can be helpful for speeding up the resolution process.' | ||
|
||
- type: checkboxes | ||
id: terms_checklist_docs | ||
attributes: | ||
label: 'Checklist' | ||
description: 'By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/rupali-codes/LinksHub/blob/main/CODE_OF_CONDUCT.md)' | ||
options: | ||
- label: 'I have checked the existing [issues](https://github.com/rupali-codes/LinksHub/issues?q=is%3Aissue+)' | ||
required: true | ||
- label: 'I have read the [Contributing Guidelines](https://github.com/rupali-codes/LinksHub/blob/main/CONTRIBUTING.md)' | ||
required: true | ||
- label: 'I am willing to work on this issue (optional)' | ||
required: false | ||
- label: "I am a GSSoC'23 contributor" | ||
required: false | ||
- type: markdown | ||
attributes: | ||
value: 'Thank you for taking the time to raise this issue! Your input is greatly appreciated.' |
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,38 @@ | ||
name: Refactor Code 🔧 | ||
description: Use this label for code refactoring tasks. | ||
title: '[Refactor] <write what you want to add>' | ||
labels: ['goal: refactor'] | ||
body: | ||
- type: input | ||
attributes: | ||
label: File Name | ||
description: 'Enter the file that you want to refactor in the codebase.' | ||
placeholder: 'For example - component/Cards/Card.tsx' | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: refactor_description | ||
attributes: | ||
label: 'Reason for Refactoring the Code' | ||
description: 'Describe what improvements can be made in the codebase without introducing breaking changes.' | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
id: no-duplicate-issues | ||
attributes: | ||
label: 'Checklist' | ||
options: | ||
- label: 'I have checked the existing [issues](https://github.com/rupali-codes/LinksHub/issues).' | ||
required: true | ||
|
||
- label: 'I have read the [Contributing Guidelines](https://github.com/rupali-codes/LinksHub/blob/main/CONTRIBUTING.md).' | ||
required: true | ||
|
||
- label: "The changes don't break the code and don't introduce new functionality." | ||
required: true | ||
|
||
- label: 'I am willing to work on this issue (optional).' | ||
required: false | ||
|
||
- label: 'I am a GSSoC23 contributor.' | ||
required: false |
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,7 +1,11 @@ | ||
version: 2 | ||
updates: | ||
# Update GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
- package-ecosystem: 'github-actions' | ||
labels: | ||
- 📦 dependencies | ||
directory: '/' # refers to the location of package.json | ||
commit-message: | ||
prefix: 'chore(deps)' | ||
schedule: | ||
interval: "daily" | ||
interval: 'daily' |
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,16 @@ | ||
name: 'Author Assign' | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, reopened] | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
assign-author: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: toshimaru/[email protected] | ||
with: | ||
repo-token: '${{ secrets.GITHUB_TOKEN }}' # GITHUB_TOKEN will be used by default |
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
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,40 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '45 23 * * 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' ] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{matrix.language}}" |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 'Issue Lockdown' | ||
|
||
on: | ||
issues: | ||
types: opened | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
action: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/repo-lockdown@v3 # Reference: https://github.com/dessant/repo-lockdown | ||
with: | ||
close-issue: false | ||
process-only: 'issues' | ||
issue-labels: '🔒 locked' | ||
exclude-issue-labels: '🚀 ready' | ||
skip-closed-issue-comment: true | ||
issue-comment: > | ||
To reduce notifications, issues are locked. Your issue will be unlocked when we add the label, `🚀 ready`. |
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,37 @@ | ||
#!/bin/bash | ||
|
||
# Global Flag for duplicates | ||
haveDuplicates=0 | ||
|
||
# Specify the path to the database folder | ||
databaseFolder="database" | ||
|
||
# Get the names of staged JSON files within any folder inside the database folder | ||
stagedFiles=$(git diff --cached --name-only --relative="$databaseFolder" -- "**/*.json") | ||
|
||
# Find Duplicates and Print them | ||
for file in $stagedFiles; do | ||
|
||
# Read the JSON from staged JSON files | ||
jsonData=$(cat $databaseFolder/$file) | ||
|
||
# Get the URLs from the JSON data | ||
urls=$(echo "$jsonData" | sed -n 's/.*"url"\s*:\s*"\([^"]*\)".*/\1/p') | ||
|
||
# Get the duplicate URLs from the URLSs list | ||
duplicates=$(echo "$urls" | uniq -d) | ||
|
||
# Print duplicate URLs if any | ||
if [[ -n "$duplicates" ]]; then | ||
haveDuplicates=1 | ||
echo -e "\nDuplicate url values found in $databaseFolder/$file: \n$duplicates" | ||
fi | ||
done | ||
|
||
# Exit the commit process if duplicate URLs found | ||
if [ "$haveDuplicates" -eq 1 ]; then | ||
echo -e "\n[Error] Duplicates URLs found" | ||
exit 1 | ||
else | ||
echo -e "\nNo duplicates URLs found" | ||
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
bash .husky/checkDuplicateLinks.sh |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
"singleQuote": true, | ||
"tabWidth": 2, | ||
"useTabs": false | ||
} | ||
} |
Oops, something went wrong.