mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(Linear Trigger Node): Add support for admin scope (#12211)
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||
|
||||
const scopes = ['read', 'write', 'issues:create', 'comments:create'];
|
||||
|
||||
export class LinearOAuth2Api implements ICredentialType {
|
||||
name = 'linearOAuth2Api';
|
||||
|
||||
@@ -50,11 +48,19 @@ export class LinearOAuth2Api implements ICredentialType {
|
||||
],
|
||||
default: 'user',
|
||||
},
|
||||
{
|
||||
displayName: 'Include Admin Scope',
|
||||
name: 'includeAdminScope',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Grants the "Admin" scope, Needed to create webhooks',
|
||||
},
|
||||
{
|
||||
displayName: 'Scope',
|
||||
name: 'scope',
|
||||
type: 'hidden',
|
||||
default: scopes.join(' '),
|
||||
default:
|
||||
'={{$self["includeAdminScope"] ? "read write issues:create comments:create admin" : "read write issues:create comments:create"}}',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user