---
title: "Ensure-Milestone"
---
Ensures a GitHub milestone exists with the specified properties.
GitHub::Ensure-Milestone(
[From: <text>],
[UserName: <text>],
[Password: <text>],
[Organization: <text>],
[Repository: <text>],
[ApiUrl: <text>],
Title: <text>,
[DueDate: <text>],
[Description: <text>],
[State: <text>]
);
| Name | Format | Script Usage | Usage Notes |
|---|---|---|---|
| From GitHub resource | text | From | |
| User name | text | UserName | Not specifying will "Use user name from GitHub resource's credentials". |
| Password | text | Password | Not specifying will "Use password from GitHub resource's credentials". |
| Organization name | text | Organization | Not specifying will "Use organization from Github resource". |
| Repository name | text | Repository | Not specifying will "Use repository from Github resource". |
| API URL | text | ApiUrl | Not specifying will "Use URL from Github resource.". |
| ☆ Title | text | Title | This argument is required. |
| Due date | text | DueDate | |
| Description | text | Description | |
| State | text | State |