refactor: vendor content as regular files (remove git submodules) so CI builds don't need GitHub auth

This commit is contained in:
asepharyana
2026-07-02 02:38:04 +07:00
parent 7b106fe562
commit 134674d7dd
452 changed files with 75011 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
github: [aiko-chan-ai]
@@ -0,0 +1,91 @@
name: Bug report
description: Report incorrect or unexpected behavior of a package
labels: [bug, need repro]
body:
- type: dropdown
id: package
attributes:
label: Which package has the bugs?
options:
- The core library
- The documentation
- WebEmbed x Shorten API
validations:
required: true
- type: textarea
id: description
attributes:
label: Issue description
description: |
Describe the issue in as much detail as possible.
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files into it.
placeholder: |
Steps to reproduce with below code sample:
1. do thing
2. do thing in Discord client
3. observe behavior
4. see error logs below
validations:
required: true
- type: textarea
id: codesample
attributes:
label: Code sample
description: Include a reproducible, minimal code sample. This will be automatically formatted into code, so no need for backticks.
render: typescript
placeholder: |
Your code sample should be...
... Minimal - Use as little code as possible that still produces the same problem (and is understandable)
... Complete - Provide all parts someone else needs to reproduce your problem
... Reproducible - Test the code you're about to provide to make sure it reproduces the problem
- type: input
id: djs-version
attributes:
label: Package version
description: Which version of are you using? Run `npm list <package>` in your project directory and paste the output.
placeholder: Older versions are not supported.
validations:
required: true
- type: input
id: node-version
attributes:
label: Node.js version
description: |
Which version of Node.js are you using? Run `node --version` in your project directory and paste the output.
If you are using TypeScript, please include its version (`npm list typescript`) as well.
placeholder: Node.js version 16.9+ is required for version 14.0.0+
validations:
required: true
- type: input
id: os
attributes:
label: Operating system
description: Which OS does your application run on?
- type: dropdown
id: priority
attributes:
label: Priority this issue should have
description: Please be realistic. If you need to elaborate on your reasoning, please use the Issue description field above.
options:
- Low (slightly annoying)
- Medium (should be fixed soon)
- High (immediate attention needed)
validations:
required: true
- type: checkboxes
attributes:
label: Checklist
description: >
Let's make sure this issue is valid!
options:
- label: I have searched the open issues for duplicates.
required: true
- label: I have shared the entire traceback.
required: true
- label: I am using a user token (and it isn't visible in the code).
required: true
- type: textarea
attributes:
label: Additional Information
description: Put any extra context, weird configurations, or other important info here.
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Discord.js Repo
url: https://github.com/discordjs/discord.js
about: A powerful JavaScript library for interacting with the Discord API [Bot].
@@ -0,0 +1,44 @@
name: Feature request
description: Request a new feature
labels: [Feature]
body:
- type: markdown
attributes:
value: |
We can only implement features that Discord publishes, documents and merges into the Discord API documentation.
For unreleased API features, you need more documents (Unofficial Discord API) or things you know.
- type: dropdown
id: package
attributes:
label: Which package is the feature request for?
options:
- The core library
- The documentation
- WebEmbed x Shorten API
validations:
required: true
- type: textarea
id: description
attributes:
label: Feature
description: A clear and concise description of what the problem is, or what feature you want to be implemented.
placeholder: I'm always frustrated when..., Discord has recently released..., A good addition would be...
validations:
required: true
- type: textarea
id: solution
attributes:
label: Ideal solution or implementation
description: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternative solutions or implementations
description: A clear and concise description of any alternative solutions or features you have considered.
- type: textarea
id: additional-context
attributes:
label: Other context
description: Any other context, screenshots, or file uploads that help us understand your feature request.
+8
View File
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "12:00"
open-pull-requests-limit: 15
@@ -0,0 +1,26 @@
name: Lint
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js v24
uses: actions/setup-node@v4
with:
node-version: 24
- run: npm install --verbose
- run: npx patch-package
- run: npm run test
@@ -0,0 +1,49 @@
name: Release
on:
push:
tags:
- '3*' # Trigger on version 3.x.x tags
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js v22
uses: actions/setup-node@v4
with:
node-version: 22
- name: Configure npm for publishing
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Get current published version (if any)
id: current_version
run: |
version=$(npm view discord.js-selfbot-v13 version || echo "none")
echo "version=$version" >> $GITHUB_OUTPUT
- name: Deprecate previous version
if: steps.current_version.outputs.version != 'none'
run: |
echo "Deprecating version ${{ steps.current_version.outputs.version }}"
npm deprecate discord.js-selfbot-v13@${{ steps.current_version.outputs.version }} "Deprecated: Please use the latest version."
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to NPM
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}