Skip to content

[Feature]: Add function to create issues from data #5

@devynspencer

Description

@devynspencer

Describe the solution

  • Add parameter set - WithParams (default, using Verb/Noun params)
  • Add parameter - Noun
  • Add parameter - Verb(s)
  • Add parameter set - WithData (using only Data param)
  • Add parameter - Data (describes the resources and related verbs for each, alternative to Noun + Verb)

Example

$Verbs = @("Get", "Find", "New", "Update", "Remove", "Copy", "Rename", "Import", "Export", "Edit", "Open", "Complete", "Close", "Group", "Merge", "Test", "Suspend", "Resume", "Approve", "Deny", "Submit", "Show")

$ResourceName = "Worklog"

foreach ($Verb in ($Verbs | sort -Unique)) {
    gh issue create --repo devynspencer/powershell-sdp-cloud --assignee `@me --project 'PowerShell Modules' --label 'function,tests,documentation' --title "Add function $Verb-ServiceDesk$ResourceName" --body "PowerShell function to $($Verb.ToLower()) a specific $($ResourceName.ToLower()) resource."

    Start-Sleep -Seconds 5
}

Data

[
  {
    "Noun": "Worklog",
    "Verbs": [
      "Get", Find", "New", "Update", "Remove", "Copy", "Rename", "Import", "Export", "Edit", "Open", "Complete", "Close", "Group", "Merge", "Test", "Suspend", Resume", "Approve", "Deny", "Submit", "Show"
    ]
  },
  {
    "Noun": "Reminder",
    "Verbs": [ Get", "Add", "New", "Find", "Update", "Remove", "Suspend", "Resume", "Test", "Send", "Reset" ]
  }
]

Related issues

No response

Example usage

No response

Alternative solutions

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

item: documentationInvolves the development/maintenance/cleanup/automation of project documentation.item: functionInvolves the development/maintenance of individual functions/methods.item: templateInvolves the development/maintenance of templates.item: unit testInvolves the development/maintenance of unit tests.priority: mediumIndicates the issue is of moderate importance, and will be scheduled for remediation.size: smallRequires a minimal work effort (a few hours).type: feature requestA proposed feature, integration, or other major functionality.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions