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

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

Open
1 of 6 tasks
devynspencer opened this issue Jul 4, 2024 · 0 comments
Open
1 of 6 tasks

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

devynspencer opened this issue Jul 4, 2024 · 0 comments
Assignees
Labels
item: documentation Involves the development/maintenance/cleanup/automation of project documentation. item: function Involves the development/maintenance of individual functions/methods. item: template Involves the development/maintenance of templates. item: unit test Involves the development/maintenance of unit tests. priority: medium Indicates the issue is of moderate importance, and will be scheduled for remediation. size: small Requires a minimal work effort (a few hours). type: feature request A proposed feature, integration, or other major functionality.

Comments

@devynspencer
Copy link
Owner

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
@devynspencer devynspencer self-assigned this Jul 4, 2024
@devynspencer devynspencer added item: documentation Involves the development/maintenance/cleanup/automation of project documentation. priority: medium Indicates the issue is of moderate importance, and will be scheduled for remediation. type: feature request A proposed feature, integration, or other major functionality. item: unit test Involves the development/maintenance of unit tests. item: function Involves the development/maintenance of individual functions/methods. size: small Requires a minimal work effort (a few hours). item: template Involves the development/maintenance of templates. labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
item: documentation Involves the development/maintenance/cleanup/automation of project documentation. item: function Involves the development/maintenance of individual functions/methods. item: template Involves the development/maintenance of templates. item: unit test Involves the development/maintenance of unit tests. priority: medium Indicates the issue is of moderate importance, and will be scheduled for remediation. size: small Requires a minimal work effort (a few hours). type: feature request A proposed feature, integration, or other major functionality.
Projects
None yet
Development

No branches or pull requests

1 participant