PipedreamHQ / PipedreamHQ/pipedream

[ACTION] Update Linear OAuth components

Open
#4,646 10 comments 0 reactions 2 assignees Claimed by @DilanAthukorala View on GitHub
action blocked enhancement good first issue help wanted triaged
Dominant language
JavaScript
Stars
11.7k
Forks
5.8k
Avg merge
3d 10h
Merged PRs (30d)
102

Description

We should add an optional prop to the **Update Issue** and **Create Issue** actions for the Linear OAuth app (slug = `linear`):

From their docs: https://developers.linear.app/docs/oauth/oauth-actor-authorization
> To set the custom user name, set the createAsUser attribute with the user name and set displayIconUrl with the URL of the avatar in issueCreate or commentCreate mutations

We'll add the additional param to the authorization URL when these component changes are ready.

New optional prop:
- "Create As User" (default to `true`)
- If `Create As User` is `true`, set `createAsUser` to the user's `displayName` and `displayIconUrl` as `avatarUrl` (if not null). These can both be found by querying the `user` object (example below).
- If `Create As User` is `false`, then show 2 `additionalProps`:
1. Username (type string)
2. Display Icon URL (type string)

```
{
user(id: "me") {
displayName
avatarUrl
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.