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

New Integration: Linear #153

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

AdityaSanthosh
Copy link
Contributor

@AdityaSanthosh AdityaSanthosh commented Aug 3, 2023

No description provided.

@codestorybetabot
Copy link

✨ CodeStory generated PR Summary:

Install extension at link for in editor experience

Open in editor [🔗] copy paste in your browser address bar
vscode://codestory-ghost.codestoryai?action=start-review&repo=https://github.com/poozlehq/engine/pull/153&branch=integration/linear

🤖 (f09838c)

This pull request introduces several new functions, classes, and interfaces to the integrations.ticketing.linear module.

  1. New placeholder functions convertTag, convertTicket, and convertCollection have been added to their respective utils modules. They are intended for future mapping of data specific to the ticketing integration.

  2. The convertUser function has been added to transform user data objects by adding an extra email_address field.

  3. The TeamsPath class has been introduced with methods getTeams and run. getTeams fetches a list of teams and maps the response using the convertTeam utility function. run handles GET requests by calling getTeams.

  4. The getMetaParams function generates metadata for pagination based on response data length, current page, and limit.

  5. The CollectionPath and CommentsPath classes have been introduced with placeholder methods fetchSingleCollection and fetchData respectively.

  6. New TypeScript interfaces have been defined, including GetTeamsParams, UserWithRaw, UsersResponse, UserResponse, GetUserParams, GetUsersParams, TagsResponse, TagResponse, TeamWithRaw, TeamsResponse, TeamResponse, UpdateTeamResponse, TicketsResponse, TicketResponse, CollectionsResponse, and CollectionResponse.

  7. The LinearIntegration class has been introduced with methods spec, check, and paths. The paths method returns an array of new path instances for Proxy, Collections, Comments, Tags, Teams, Tickets, and Users.

  8. The ProxyPath class has been introduced with the run method for making HTTP requests using axios.

  9. Placeholder methods getTags and createTag have been added to the TagsPath class.

  10. Placeholder methods fetchSingleUser and fetchSingleComment have been added to the UserPath and CommentPath classes respectively.

  11. Minor typo fixes have been made in the CreateTeamBody and UpdateTeamBody interfaces.

Please review the changes.

If you found this useful, please give me feedback by liking 👍 this comment, or 👎 if this wans't useful to you. I learn from my mistakes 🎓

I am a AI bot and might make mistakes 🫤, please give feedback to the devs at founders@codestory.ai or on slack

@AdityaSanthosh AdityaSanthosh marked this pull request as ready for review August 6, 2023 09:21
@saimanoj saimanoj changed the title feat: integration/linear New Integration: Linear Aug 7, 2023
@saimanoj saimanoj self-requested a review August 7, 2023 04:01
@saimanoj saimanoj linked an issue Aug 7, 2023 that may be closed by this pull request
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.

🎉 New extension: Linear
2 participants