Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslaw-zan committed Sep 6, 2024
1 parent 8684a02 commit 28d0a47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/ckeditor5-dev-stale-bot/bin/stale-bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function main() {
throw new Error( 'Missing or invalid CLI argument: --config-path' );
}

const config = require( configPath );
const config = await import( configPath );

validateConfig( config );

Expand Down
4 changes: 2 additions & 2 deletions packages/ckeditor5-dev-stale-bot/lib/githubrepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import upath from 'upath';
import fs from 'fs-extra';
import { GraphQLClient } from 'graphql-request';
import { logger } from '@ckeditor/ckeditor5-dev-utils';
const {
import {
addSeconds,
fromUnixTime,
formatDistanceToNow,
differenceInSeconds
} = require( 'date-fns' );
} from 'date-fns';
import prepareSearchQuery from './utils/preparesearchquery';
import isIssueOrPullRequestToStale from './utils/isissueorpullrequesttostale';
import isIssueOrPullRequestToUnstale from './utils/isissueorpullrequesttounstale';
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-dev-stale-bot/vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig( {
testTimeout: 10000,
restoreMocks: true,
include: [
'./tests/githubrepository.js'
'tests/**/*.js'
],
coverage: {
provider: 'v8',
Expand Down

0 comments on commit 28d0a47

Please sign in to comment.