Compare commits
40 Commits
testing
...
renovate/a
Author | SHA1 | Date | |
---|---|---|---|
bc1c2517fb | |||
f2fb0eb804 | |||
31b11e7c2b | |||
17fcf4ec52 | |||
99b95714fb | |||
53c30cee50 | |||
2935714cde | |||
5f18f32bcf | |||
a592002172 | |||
255723ff8c | |||
91d299e70b | |||
05674703bf | |||
19d9ac4c22 | |||
c2ccabe0f1 | |||
d59b897e15 | |||
ead6baab83 | |||
96f0ed8401 | |||
aa89a0458e | |||
8531755426 | |||
05c64549e4 | |||
ca373dcb73 | |||
ae7443c0cc | |||
6683056a1c | |||
610868b885 | |||
36eaec155c | |||
44324d7bf5 | |||
8ac2eca437 | |||
f1066f8ac3 | |||
23b999c198 | |||
8f1c4b3e8c | |||
8609a807e9 | |||
21a7b043b4 | |||
7c6c0f37d0 | |||
aa58f13444 | |||
5f59372253 | |||
cb47266772 | |||
14df5e64d9 | |||
d0e4384479 | |||
f6dc7d5b19 | |||
ba3e5a9824 |
34
.github/workflows/bump-version.yml
vendored
34
.github/workflows/bump-version.yml
vendored
@ -1,34 +0,0 @@
|
|||||||
name: "Bump Version"
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- "master"
|
|
||||||
paths-ignore:
|
|
||||||
- 'package.json'
|
|
||||||
- 'CHANGELOG.md'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
bump-version:
|
|
||||||
name: "Bump Version on master"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: "Checkout source code"
|
|
||||||
uses: "actions/checkout@v2"
|
|
||||||
with:
|
|
||||||
ref: ${{ github.ref }}
|
|
||||||
- name: "cat package.json"
|
|
||||||
run: cat ./package.json
|
|
||||||
- name: "Setup Node.js"
|
|
||||||
uses: "actions/setup-node@v1"
|
|
||||||
with:
|
|
||||||
node-version: 12
|
|
||||||
- name: "Automated Version Bump"
|
|
||||||
uses: "phips28/gh-action-bump-version@master"
|
|
||||||
with:
|
|
||||||
tag-prefix: ''
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.BUMP_VERSION_TOKEN }}
|
|
||||||
- name: "cat package.json"
|
|
||||||
run: cat ./package.json
|
|
2
.github/workflows/codacy-analysis.yml
vendored
2
.github/workflows/codacy-analysis.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
# Checkout the repository to the GitHub Actions runner
|
# Checkout the repository to the GitHub Actions runner
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
|
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
|
||||||
- name: Run Codacy Analysis CLI
|
- name: Run Codacy Analysis CLI
|
||||||
|
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
@ -35,7 +35,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
24
.github/workflows/node.js.yml
vendored
24
.github/workflows/node.js.yml
vendored
@ -13,16 +13,31 @@ on:
|
|||||||
- 'Dockerfile'
|
- 'Dockerfile'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
pull_request_target:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# If the PR is coming from a fork (pull_request_target), ensure it's opened by "dependabot[bot]".
|
||||||
|
# Otherwise, clone it normally.
|
||||||
|
if: |
|
||||||
|
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]') ||
|
||||||
|
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]')
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [15.x]
|
node-version: [15.x]
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout
|
||||||
|
if: ${{ github.event_name != 'pull_request_target' }}
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Checkout PR
|
||||||
|
if: ${{ github.event_name == 'pull_request_target' }}
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
@ -35,9 +50,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: test
|
||||||
if: ${{github.event_name == 'push'}}
|
if: ${{github.event_name == 'push'}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
9654
package-lock.json
generated
9654
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
27
package.json
27
package.json
@ -1,10 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "dsabot",
|
"name": "dsabot",
|
||||||
"version": "1.6.5",
|
"version": "1.6.6",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint commands/",
|
"lint": "eslint commands/",
|
||||||
|
"preinstall": "npx npm-force-resolutions",
|
||||||
"start": "node index.js",
|
"start": "node index.js",
|
||||||
"test": "jest --collectCoverage"
|
"test": "jest --collectCoverage"
|
||||||
},
|
},
|
||||||
@ -18,21 +19,21 @@
|
|||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"discord.js": "^12.5.3",
|
"discord.js": "^12.5.3",
|
||||||
"dotenv": "^9.0.0",
|
"dotenv": "^16.0.0",
|
||||||
"got": "^11.8.2",
|
"got": "^11.8.3",
|
||||||
"module-alias": "^2.2.2",
|
"module-alias": "^2.2.2",
|
||||||
"nedb-promises": "^4.1.3"
|
"nedb-promises": "^6.0.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^26.0.23",
|
"@types/jest": "^27.4.1",
|
||||||
"babel-jest": "^26.6.3",
|
"babel-jest": "^27.5.1",
|
||||||
"babel-plugin-module-resolver": "^4.1.0",
|
"babel-plugin-module-resolver": "^4.1.0",
|
||||||
"babel-plugin-rewire": "^1.2.0",
|
"babel-plugin-rewire": "^1.2.0",
|
||||||
"eslint": "^7.25.0",
|
"eslint": "^8.13.0",
|
||||||
"eslint-config-airbnb": "^18.2.1",
|
"eslint-config-airbnb": "^19.0.2",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-prettier": "^3.4.0",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"jest": "^26.6.3"
|
"jest": "^27.5.1"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"collectCoverage": true,
|
"collectCoverage": true,
|
||||||
@ -52,5 +53,9 @@
|
|||||||
"<rootDir>/__mocks__/"
|
"<rootDir>/__mocks__/"
|
||||||
],
|
],
|
||||||
"coverageDirectory": "coverage"
|
"coverageDirectory": "coverage"
|
||||||
|
},
|
||||||
|
"resolutions": {
|
||||||
|
"normalize-url": ">=4.5.1",
|
||||||
|
"path-parse": ">=1.0.7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
3
renovate.json
Normal file
3
renovate.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||||
|
}
|
Reference in New Issue
Block a user