Skip to content

Commit

Permalink
Merge pull request #21 from Comfy-Org/mass-pr
Browse files Browse the repository at this point in the history
Mass pr
  • Loading branch information
snomiao authored Jan 25, 2025
2 parents ee9a86f + 25b2071 commit 012f786
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/updateGithubActionTask.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ jobs:
- run: bun i
- run: bun src/GithubActionUpdateTask/updateGithubActionTask.ts
env:
AUTH_GCLOUD_URL: https://comfy-pr.vercel.app
AUTH_GOOGLE_ID: ${{ secrets.AUTH_GOOGLE_ID }}
AUTH_GOOGLE_SECRET: ${{ secrets.AUTH_GOOGLE_SECRET }}
COMFY_PR_REPO: ${{ secrets.COMFY_PR_REPO }}
FORK_OWNER: "ComfyNodePRs"
FORK_PREFIX: "PR-"
GH_TOKEN_COMFY_PR: ${{ secrets.GH_TOKEN_COMFY_PR }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
SLACK_BOT_CHANNEL: ${{ secrets.SLACK_BOT_CHANNEL }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
AUTH_GOOGLE_ID: ${{ secrets.AUTH_GOOGLE_ID }}
AUTH_GOOGLE_SECRET: ${{ secrets.AUTH_GOOGLE_SECRET }}
AUTH_GCLOUD_URL: https://comfy-pr.vercel.app
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
5 changes: 3 additions & 2 deletions src/GithubActionUpdateTask/updateGithubActionTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ async function updateGithubActionTaskList() {
.merge({ into: GithubActionUpdateTask.collectionName, on: "repo", whenMatched: "merge" })
.aggregate()
.next();

// reset network error
await GithubActionUpdateTask.findOneAndDelete({ error: /was submitted too quickly/ });
await GithubActionUpdateTask.deleteMany({ error: /was submitted too quickly/ });

console.log({ GithubActionUpdateTask: await GithubActionUpdateTask.find().toArray() });

Expand All @@ -60,6 +60,7 @@ async function updateGithubActionTaskList() {
console.error(err);
const error = String(err);
await GithubActionUpdateTask.updateOne({ repo }, { $set: { error, updatedAt: new Date() } }, { upsert: true });
// throw err;
});
})
.run();
Expand Down

1 comment on commit 012f786

@vercel
Copy link

@vercel vercel bot commented on 012f786 Jan 25, 2025

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

comfy-pr – ./

comfy-pr-drip-ai.vercel.app
comfy-pr-git-main-drip-ai.vercel.app
comfy-pr.vercel.app

Please sign in to comment.