Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
⬆️ @huggingface/hub 0.1.3
  • Loading branch information
coyotte508 committed Mar 2, 2023
commit 72b5809f2057fcdd2b69981a8ee0601f5262eb17
4 changes: 2 additions & 2 deletions scripts/delete-old-prs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env -S deno run --allow-env --allow-net --allow-run --allow-read
// To format: npx prettier --write .
import { commit, listFiles } from "npm:@huggingface/hub@0.1.2";
import { commit, listFiles } from "npm:@huggingface/hub@0.1.3";

@Pierrci Pierrci Mar 3, 2023 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that the main reason for picking deno? No need for package.json or npm i? :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(ok I should have read the description lol)


const oneMonthAgo = new Date(Date.now() - 30 * 24 * 3600 * 1000);

Expand All @@ -16,7 +16,7 @@ for await (const file of allFiles) {
continue;
}

const date = file.lastCommit?.author.date;
const date = file.lastCommit?.date;

if (!date) {
continue;
Expand Down