Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bookworm #9

Merged
merged 17 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

91 changes: 0 additions & 91 deletions .eslintrc.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Feature request
description: Use this template to suggest new features
labels: [enhancement]
body:

- type: textarea
id: feature-description
attributes:
label: Describe your suggestion
placeholder: How would it work?
validations:
required: true

- type: textarea
id: other-details
attributes:
label: Other details
placeholder: |
Additional details and attachments.

- type: checkboxes
id: checklist
attributes:
label: Checklist
options:
- label: I am running the latest version.
required: true
- label: I checked the documentation and found no answer.
required: true
- label: I have searched the existing issues and made sure this is not a duplicate.
required: true
- label: I have provided sufficient information.
required: true
77 changes: 77 additions & 0 deletions .github/ISSUE_TEMPLATE/issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Issue Report
title: "<version> <title>"
description: Use this template to report a problem
labels: [bug]
body:
- type: textarea
id: reproduce-steps
attributes:
label: Steps to reproduce
description: Please provide detailed steps for reproducing the issue.
placeholder: |
Example:
1. Step 1
2. Step 2
3. You get it..
validations:
required: true

- type: textarea
id: failure-logs
attributes:
label: Failure Logs
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
validations:
required: true

- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: What did you expect to happen?
validations:
required: true

- type: textarea
id: current-behavior
attributes:
label: Current behavior
description: What is the current behavior?
validations:
required: true

- type: dropdown
id: version
attributes:
label: Version
description: What version of the library are you running?
options:
- Default
- Edge
validations:
required: true

- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!

Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false

- type: checkboxes
id: checklist
attributes:
label: Checklist
options:
- label: I am running the latest version.
required: false
- label: I checked the documentation and found no answer.
required: true
- label: I have searched the existing issues and made sure this is not a duplicate.
required: true
- label: I have provided sufficient information.
required: true
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Question
description: Use this template to ask a question about the project
labels: [question]
body:

- type: textarea
id: question
attributes:
label: Question
placeholder: What do you want to know?
validations:
required: true

- type: textarea
id: other-details
attributes:
label: Other details
placeholder: |
Additional details and attachments.

- type: checkboxes
id: checklist
attributes:
label: Checklist
options:
- label: I am running the latest version.
required: true
- label: I checked the documentation and found no answer.
required: true
- label: I have searched the existing issues and made sure this is not a duplicate.
required: true
- label: I have provided sufficient information.
required: true
53 changes: 53 additions & 0 deletions .github/labeler_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: 1
labels:
- label: "breaking-change"
title: "^refactor!:.*"

- label: "github"
files:
- ".github/.*"

- label: "git"
files:
- ".gitignore"
- ".gitattributes"

- label: "tests"
files:
- "test/.*"

- label: "docs"
files:
- "docs/.*"
- "README.md"

- label: "parser"
files:
- "src/parser/.*"
- "src/Innertube.ts"

- label: "core"
files:
- "src/core/.*"

- label: "protobuf"
files:
- "src/proto/.*"

- label: "xsmall-diff"
size-below: 10

- label: "small-diff"
size-above: 9
size-below: 100

- label: "medium-diff"
size-above: 99
size-below: 500

- label: "large-diff"
size-above: 499
size-below: 1000

- label: "xlarge-diff"
size-above: 999
6 changes: 6 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!-- Thank you for submitting a Pull Request! Please:
* Read our contributing guidelines: https://github.com/LuanRT/YouTube.js/blob/main/CONTRIBUTING.md
* Add "Fixes #<issue_number>" to the PR description if you are fixing an issue.
* Ensure that the code is up-to-date with the `main` branch.
* Include a description of the proposed changes and how to test them.
-->
14 changes: 14 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Label PRs

on:
- pull_request_target

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: srvaroa/labeler@master
with:
config_path: .github/labeler_config.yml
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: lint

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- run: npm run lint
Loading