The issueDescription constant defines the configuration for the 'issue' resource within a GitHub node. It is an array of INodeProperties that handles the selection of operations and the subsequent parameters required for those operations.
When the resource is set to issue, the following operations are available:
- Get Many (
getAll): Fetches multiple issues from a repository. Uses GET on /repos/{{$parameter.owner}}/{{$parameter.repository}}/issues. - Get (
get): Fetches data for a single specific issue. Uses GET on /repos/{{$parameter.owner}}/{{$parameter.repository}}/issues/{{$parameter.issue}}. - Create (
create): Creates a new issue. Uses POST on /repos/{{$parameter.owner}}/{{$parameter.repository}}/issues.
The description automatically includes repository owner and name selectors (repoOwnerSelect and repoNameSelect) and spreads additional property descriptions based on the selected operation (issueGetManyDescription, issueGetDescription, and issueCreateDescription).
import { issueDescription } from './nodes/GithubIssues/resources/issue/index';
// issueDescription is used within the main node definition to provide
// the UI fields for the 'issue' resource.
export const nodeProperties: INodeProperties[] = [
// ... other resource definitions
...issueDescription,
];