Skip to content

Commit ecd80c9

Browse files
snomiaoclaudeCopilot
authored
feat: add GitHub Issue Priorities Labeler task (#125)
* feat: add GitHub Issue Priorities Labeler task - Add new task to sync priority labels from Notion to GitHub - Maps Notion priorities (High/Medium/Low) to GitHub labels - Automatically adds/removes priority labels on issues/PRs - Uses checkpoint-based incremental processing - Integrates task into main task runner 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * Update app/tasks/gh-issue-priorities-labeler/index.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update app/tasks/gh-issue-priorities-labeler/index.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update app/tasks/gh-issue-priorities-labeler/index.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update app/tasks/gh-issue-priorities-labeler/index.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * test: add comprehensive test suite for gh-issue-priorities-labeler - Add 10 test cases covering all functionality - Test adding, removing, and skipping priority labels - Test checkpoint-based resumption - Test error handling for label operations - Test multiple tasks with different priorities - Mock Notion API and GitHub API interactions - All tests passing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * chore: update dependencies and add new keyv stores - Added @keyv/mongo and @notionhq/client to package.json - Updated keyv to version 5.5.5 and added keyv-cache-proxy, keyv-mongodb-store, and keyv-nedb-store - Added json5 to dependencies - Enhanced parseIssueUrl function to handle additional URL formats and improved error handling with DIE * feat(issue-transfer): handle failed assignee assignment by moving to body with a note for clarity * feat(run-gh-tasks.ts): add detailed error logging for failed tasks to improve debugging capabilities * chore(workflows): reorder environment variables in GitHub Actions workflow for better organization chore(postSlackMessage.ts): add deprecation notice to postSlackMessage function to guide users towards the new implementation --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 127c34c commit ecd80c9

10 files changed

Lines changed: 945 additions & 46 deletions

File tree

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ GIT_USEREMAIL=snomiao+comfy-pr@gmail.com
1515

1616
AUTH_ADMINS=snomiao@gmail.com
1717

18+
# Integrations
1819
SLACK_BOT_TOKEN="FILL_THIS_INTO_ .env.local"
20+
NOTION_TOKEN=FILL_THIS
1921

2022
# default port for GITHUB_WEBHOOK_PORT for webhook
2123
GITHUB_WEBHOOK_PORT=14215

.github/workflows/gh-combined-tasks.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ jobs:
4141
FORK_OWNER: "ComfyNodePRs"
4242
FORK_PREFIX: "PR-"
4343

44-
# Common environment variables for all tasks
45-
GH_TOKEN_COMFY_PR: ${{ secrets.GH_TOKEN_COMFY_PR_BOT }}
44+
# DB, Integrations
4645
MONGODB_URI: ${{ secrets.MONGODB_URI }}
46+
GH_TOKEN_COMFY_PR: ${{ secrets.GH_TOKEN_COMFY_PR_BOT }}
4747
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
4848
SLACK_BOT_CHANNEL: ${{ secrets.SLACK_BOT_CHANNEL }}
4949
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
50+
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}

0 commit comments

Comments
 (0)