Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove trigger v2 code #373

Merged
merged 12 commits into from
Jan 30, 2025
Merged

chore: remove trigger v2 code #373

merged 12 commits into from
Jan 30, 2025

Conversation

teodorus-nathaniel
Copy link
Contributor

@teodorus-nathaniel teodorus-nathaniel commented Jan 30, 2025

resolves #372

read new readme: https://github.com/holdex/pr-time-tracker/tree/chore/remove-v2

Summary by CodeRabbit

Based on the comprehensive summary, here are the release notes:

  • Removal of Integration

    • Completely removed the @holdex/autoinvoicing GitHub integration package and related files
    • Deleted multiple source files, configuration files, and integration-specific scripts
  • Configuration Changes

    • Removed Docker Compose configuration
    • Updated TypeScript configuration
    • Simplified development scripts in package.json
  • Trigger.dev Integration

    • Deleted Trigger.dev related job handlers and utility functions
    • Removed routes and client configurations for Trigger.dev integration
  • Error Handling

    • Enhanced error reporting in submission request check run function

These changes represent a significant restructuring of the project's integration and automation capabilities, focusing on simplifying the codebase and removing specific GitHub-related integrations.

Copy link

vercel bot commented Jan 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
autoinvoice ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 10:17am

Copy link

coderabbitai bot commented Jan 30, 2025

Walkthrough

This pull request involves the comprehensive removal of the @holdex/autoinvoicing integration and associated Trigger.dev-related files. The changes eliminate multiple source files, configuration files, and workflow definitions related to GitHub integration and autoinvoicing. The removal appears to be part of a cleanup effort to remove unused or outdated code from version 2 of the project, focusing on streamlining the codebase and removing deprecated integrations.

Changes

File/Directory Change Summary
.github/workflows/integrations_autoinvoicing.yml Deleted GitHub Actions workflow for autoinvoicing package
.npmrc.example Deleted npm configuration example file
container/.env.example Deleted environment configuration example
container/docker-compose.yml Deleted Docker Compose configuration
integrations/autoinvoicing/ Entire directory with source files and configuration deleted
src/lib/server/trigger-dev/ Multiple files related to Trigger.dev integration deleted
package.json Removed scripts and dependency for autoinvoicing
tsconfig.json Removed path alias for @trigger-dev/autoinvoicing

Assessment against linked issues

Objective Addressed Explanation
Remove unused v2 codes Comprehensive removal of autoinvoicing integration and related files

Possibly related PRs

Suggested reviewers

  • georgeciubotaru
✨ Finishing Touches
  • 📝 Generate Docstrings (Beta)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
README.md (2)

77-80: Add language identifier to code block.

Add a language identifier to the fenced code block:

-     ```
+     ```env
      TRIGGER_SERVER_URL=<your-local-webhook-server-url>
      TRIGGER_SERVER_SECRET=<your-local-webhook-secret>
      ```
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

77-77: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


48-48: Fix article usage.

Replace "an" with "a" before "ngrok":

-- `proxy`: Creates an ngrok tunnel with a specific domain for development
++ `proxy`: Creates a ngrok tunnel with a specific domain for development
🧰 Tools
🪛 LanguageTool

[misspelling] ~48-~48: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...nd syncing SvelteKit - proxy: Creates an ngrok tunnel with a specific domain for...

(EN_A_VS_AN)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0bfd412 and a87a30d.

⛔ Files ignored due to path filters (21)
  • docs/images/local-development-setup/dependencies-installations.png is excluded by !**/*.png
  • docs/images/local-development-setup/docker-compose-up-success.png is excluded by !**/*.png
  • docs/images/local-development-setup/github-access-token.png is excluded by !**/*.png
  • docs/images/local-development-setup/local-triggerdotdev-1.png is excluded by !**/*.png
  • docs/images/local-development-setup/local-triggerdotdev-10.png is excluded by !**/*.png
  • docs/images/local-development-setup/local-triggerdotdev-11.png is excluded by !**/*.png
  • docs/images/local-development-setup/local-triggerdotdev-2.png is excluded by !**/*.png
  • docs/images/local-development-setup/local-triggerdotdev-3.png is excluded by !**/*.png
  • docs/images/local-development-setup/local-triggerdotdev-4.png is excluded by !**/*.png
  • docs/images/local-development-setup/local-triggerdotdev-5.png is excluded by !**/*.png
  • docs/images/local-development-setup/local-triggerdotdev-6.png is excluded by !**/*.png
  • docs/images/local-development-setup/local-triggerdotdev-7.png is excluded by !**/*.png
  • docs/images/local-development-setup/local-triggerdotdev-8.png is excluded by !**/*.png
  • docs/images/local-development-setup/local-triggerdotdev-9.png is excluded by !**/*.png
  • docs/images/local-development-setup/supabase-db-setup-1.png is excluded by !**/*.png
  • docs/images/local-development-setup/supabase-db-setup-2.png is excluded by !**/*.png
  • docs/images/local-development-setup/telebit-proxy.png is excluded by !**/*.png
  • docs/images/local-development-setup/telebit-setup-1.png is excluded by !**/*.png
  • docs/images/local-development-setup/telebit-setup-2.png is excluded by !**/*.png
  • integrations/autoinvoicing/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (34)
  • .github/workflows/integrations_autoinvoicing.yml (0 hunks)
  • .npmrc.example (0 hunks)
  • README.md (1 hunks)
  • container/.env.example (0 hunks)
  • container/docker-compose.yml (0 hunks)
  • integrations/autoinvoicing/.gitignore (0 hunks)
  • integrations/autoinvoicing/package.json (0 hunks)
  • integrations/autoinvoicing/src/checks.ts (0 hunks)
  • integrations/autoinvoicing/src/compound.ts (0 hunks)
  • integrations/autoinvoicing/src/git.ts (0 hunks)
  • integrations/autoinvoicing/src/index.ts (0 hunks)
  • integrations/autoinvoicing/src/issues.ts (0 hunks)
  • integrations/autoinvoicing/src/orgs.ts (0 hunks)
  • integrations/autoinvoicing/src/propertyHelpers.ts (0 hunks)
  • integrations/autoinvoicing/src/reactions.ts (0 hunks)
  • integrations/autoinvoicing/src/repos.ts (0 hunks)
  • integrations/autoinvoicing/src/sources.ts (0 hunks)
  • integrations/autoinvoicing/tsconfig.json (0 hunks)
  • integrations/autoinvoicing/tsup.config.ts (0 hunks)
  • package.json (1 hunks)
  • src/lib/server/trigger-dev/client.ts (0 hunks)
  • src/lib/server/trigger-dev/fix-pr.ts (0 hunks)
  • src/lib/server/trigger-dev/index.ts (0 hunks)
  • src/lib/server/trigger-dev/jobs/check-run.ts (0 hunks)
  • src/lib/server/trigger-dev/jobs/index.ts (0 hunks)
  • src/lib/server/trigger-dev/jobs/issues-comment.ts (0 hunks)
  • src/lib/server/trigger-dev/jobs/issues-creation.ts (0 hunks)
  • src/lib/server/trigger-dev/jobs/issues.ts (0 hunks)
  • src/lib/server/trigger-dev/jobs/pull-requests-review.ts (0 hunks)
  • src/lib/server/trigger-dev/jobs/pull-requests.ts (0 hunks)
  • src/lib/server/trigger-dev/utils.ts (0 hunks)
  • src/routes/api/submissions/+server.ts (1 hunks)
  • src/routes/api/trigger/+server.ts (0 hunks)
  • tsconfig.json (1 hunks)
💤 Files with no reviewable changes (30)
  • src/lib/server/trigger-dev/index.ts
  • integrations/autoinvoicing/package.json
  • container/docker-compose.yml
  • src/routes/api/trigger/+server.ts
  • integrations/autoinvoicing/.gitignore
  • integrations/autoinvoicing/tsconfig.json
  • src/lib/server/trigger-dev/jobs/index.ts
  • .npmrc.example
  • .github/workflows/integrations_autoinvoicing.yml
  • integrations/autoinvoicing/src/propertyHelpers.ts
  • integrations/autoinvoicing/tsup.config.ts
  • integrations/autoinvoicing/src/git.ts
  • integrations/autoinvoicing/src/checks.ts
  • src/lib/server/trigger-dev/jobs/check-run.ts
  • src/lib/server/trigger-dev/jobs/issues.ts
  • integrations/autoinvoicing/src/issues.ts
  • src/lib/server/trigger-dev/client.ts
  • src/lib/server/trigger-dev/jobs/issues-comment.ts
  • integrations/autoinvoicing/src/compound.ts
  • src/lib/server/trigger-dev/utils.ts
  • integrations/autoinvoicing/src/orgs.ts
  • integrations/autoinvoicing/src/sources.ts
  • container/.env.example
  • src/lib/server/trigger-dev/jobs/pull-requests.ts
  • integrations/autoinvoicing/src/index.ts
  • integrations/autoinvoicing/src/repos.ts
  • src/lib/server/trigger-dev/jobs/pull-requests-review.ts
  • integrations/autoinvoicing/src/reactions.ts
  • src/lib/server/trigger-dev/jobs/issues-creation.ts
  • src/lib/server/trigger-dev/fix-pr.ts
🧰 Additional context used
🪛 LanguageTool
README.md

[uncategorized] ~33-~33: Loose punctuation mark.
Context: ...``` Configuration parameters: - name: Your GitHub organization slug - `nodeId...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~38-~38: Loose punctuation mark.
Context: ...) ## Available Scripts - postinstall: Sets up Husky for Git hooks - `pull-env...

(UNLIKELY_OPENING_PUNCTUATION)


[misspelling] ~48-~48: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...nd syncing SvelteKit - proxy: Creates an ngrok tunnel with a specific domain for...

(EN_A_VS_AN)

🪛 markdownlint-cli2 (0.17.2)
README.md

77-77: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)

🔇 Additional comments (1)
tsconfig.json (1)

17-17: LGTM! Path alias removal is consistent with PR objective.

The removal of the trigger-related path alias aligns with the goal of removing trigger v2 code.

@georgeciubotaru georgeciubotaru merged commit 499363c into main Jan 30, 2025
4 of 5 checks passed
@georgeciubotaru georgeciubotaru deleted the chore/remove-v2 branch January 30, 2025 17:02
Copy link

@georgeciubotaru
⚠️⚠️⚠️
You must submit the time spent on this PR.
⚠️⚠️⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem: old unused v2 codes still exist in the repo
2 participants