mirror of
https://github.com/actions/stale.git
synced 2025-12-10 20:21:20 +00:00
Use minutes for debugging
This commit is contained in:
@@ -29,8 +29,8 @@ import {LoggerService} from '../services/logger.service';
|
|||||||
* Handle processing of issues for staleness/closure.
|
* Handle processing of issues for staleness/closure.
|
||||||
*/
|
*/
|
||||||
export class IssuesProcessor {
|
export class IssuesProcessor {
|
||||||
private static _updatedSince(timestamp: string, num_days: number): boolean {
|
private static _updatedSince(timestamp: string, num_min: number): boolean {
|
||||||
const daysInMillis = 1000 * 60 * 60 * 24 * num_days;
|
const daysInMillis = 1000 * 60 * num_min;
|
||||||
const millisSinceLastUpdated =
|
const millisSinceLastUpdated =
|
||||||
new Date().getTime() - new Date(timestamp).getTime();
|
new Date().getTime() - new Date(timestamp).getTime();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user