mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
chore: Code changes & formatting and linting (#3552)
* Do some code changes & run prettier and eslint
* Fix test:test-type script
* Apply code review suggestions
* update heartbeat interval & add a reason for the specific value
* Fix husky error
* Update to TS 5.5
And use ${configDir}
* Fix test.json tsconfig base
---------
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
This commit is contained in:
@@ -55,7 +55,7 @@ jobs:
|
||||
|
||||
- name: Benchmark
|
||||
if: ${{ steps.cpuCheck.outputs.match == 'true' }}
|
||||
run: node --expose-gc ./packages/benchmark/dist/index.js | tee output.txt
|
||||
run: node --expose-gc ./packages/benchmarks/dist/index.js | tee output.txt
|
||||
|
||||
- name: Download previous benchmark data
|
||||
if: ${{ steps.cpuCheck.outputs.match == 'true' }}
|
||||
@@ -69,7 +69,7 @@ jobs:
|
||||
if: ${{ steps.cpuCheck.outputs.match == 'true' }}
|
||||
uses: benchmark-action/github-action-benchmark@v1
|
||||
with:
|
||||
tool: "benchmarkjs"
|
||||
tool: 'benchmarkjs'
|
||||
output-file-path: output.txt
|
||||
external-data-json-path: benchmarksResult/data.json
|
||||
|
||||
@@ -96,9 +96,9 @@ jobs:
|
||||
uses: benchmark-action/github-action-benchmark@v1
|
||||
if: ${{ github.ref == 'refs/heads/main' && steps.cpuCheck.outputs.match == 'true' }}
|
||||
with:
|
||||
tool: "benchmarkjs"
|
||||
tool: 'benchmarkjs'
|
||||
output-file-path: output.txt
|
||||
gh-pages-branch: "benchies"
|
||||
gh-pages-branch: 'benchies'
|
||||
benchmark-data-dir-path: benchmarksResult
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
auto-push: true
|
||||
|
||||
@@ -72,7 +72,7 @@ jobs:
|
||||
echo "$MESSAGE" >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
|
||||
- name: "Comment on PR"
|
||||
- name: 'Comment on PR'
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -62,7 +62,7 @@ jobs:
|
||||
node-version: 18
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: "1.0.6"
|
||||
bun-version: '1.0.6'
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
|
||||
+12
-13
@@ -7,25 +7,24 @@ name: Mark stale issues and pull requests
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * 1'
|
||||
- cron: '0 0 * * 1'
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-message: 'This issue has gone stale for over a month. If this issue is useful, leave a comment below. Otherwise, it will be closed shortly.'
|
||||
stale-pr-message: 'This pull request has gone stale for over a month. If this pull request is still useful, leave a comment below. Otherwise, it will be closed shortly.'
|
||||
stale-issue-label: 'no-issue-activity'
|
||||
stale-pr-label: 'no-pr-activity'
|
||||
only-labels: 'w-unverified'
|
||||
exempt-issue-labels: 'api-docs-commits,help-wanted,w-verified,w-pending'
|
||||
exempt-pr-labels: 'w-verified'
|
||||
close-issue-reason: 'not_planned'
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-message: 'This issue has gone stale for over a month. If this issue is useful, leave a comment below. Otherwise, it will be closed shortly.'
|
||||
stale-pr-message: 'This pull request has gone stale for over a month. If this pull request is still useful, leave a comment below. Otherwise, it will be closed shortly.'
|
||||
stale-issue-label: 'no-issue-activity'
|
||||
stale-pr-label: 'no-pr-activity'
|
||||
only-labels: 'w-unverified'
|
||||
exempt-issue-labels: 'api-docs-commits,help-wanted,w-verified,w-pending'
|
||||
exempt-pr-labels: 'w-verified'
|
||||
close-issue-reason: 'not_planned'
|
||||
|
||||
Reference in New Issue
Block a user