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

handle adapter to parse flag according to input or output adapter #21

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

viveksahu26
Copy link
Contributor

@viveksahu26 viveksahu26 commented Feb 5, 2025

This PR introduces 2 major fixes:

  1. Resolves import cycle issues by extracting common types (AdapterRole, AdapterType) into a new package: types.
  2. Fixes strict input/output adapter assumptions:
  • Right now, our code assumes:
    • GitHub is always the input adapter (--in- flags).
    • Interlynk is always the output adapter (--out- flags).
  • But, Interlynk can be both (input & output), meaning:
    • If Interlynk is the input adapter, it should parse --in- flags.
    • If Interlynk is the output adapter, it should parse --out- flags.

Therefore, allowing GitHub and Interlynk adapters to act as both input and output, dynamically.

@riteshnoronha riteshnoronha merged commit 16c8fee into main Feb 5, 2025
1 check passed
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.

2 participants