generated from xoap-io/xoap-powershell-dsc-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d7efde2
Showing
41 changed files
with
1,528 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
name: General question or documentation update | ||
about: If you have a general question or documentation update suggestion around the resource module. | ||
--- | ||
|
||
<!-- | ||
Your feedback and support is greatly appreciated, thanks for contributing! | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: Problem with a resource | ||
description: If you have a problem, bug, or enhancement with a resource in this resource module. | ||
labels: [] | ||
assignees: [] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Please prefix the issue title (above) with the resource name, e.g. 'ResourceName: Short description of my issue'! | ||
Your feedback and support is greatly appreciated, thanks for contributing! | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Problem description | ||
description: Details of the scenario you tried and the problem that is occurring. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Verbose logs | ||
description: | | ||
Verbose logs showing the problem. **NOTE! Sensitive information should be obfuscated.** _Will be automatically formatted as plain text._ | ||
placeholder: | | ||
Paste verbose logs here | ||
render: text | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: configuration | ||
attributes: | ||
label: DSC configuration | ||
description: | | ||
The DSC configuration that is used to reproduce the issue (as detailed as possible). **NOTE! Sensitive information should be obfuscated.** _Will be automatically formatted as PowerShell code._ | ||
placeholder: | | ||
Paste DSC configuration here | ||
render: powershell | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: suggestedSolution | ||
attributes: | ||
label: Suggested solution | ||
description: Do you have any suggestions how to solve the issue? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: targetNodeOS | ||
attributes: | ||
label: Operating system the target node is running | ||
description: | | ||
Please provide as much as possible about the target node, for example edition, version, build, and language. _Will be automatically formatted as plain text._ | ||
On OS with WMF 5.1 the following command can help get this information: `Get-ComputerInfo -Property @('OsName','OsOperatingSystemSKU','OSArchitecture','WindowsVersion','WindowsBuildLabEx','OsLanguage','OsMuiLanguages')` | ||
placeholder: | | ||
Add operating system information here | ||
render: text | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: targetNodePS | ||
attributes: | ||
label: PowerShell version and build the target node is running | ||
description: | | ||
Please provide the version and build of PowerShell the target node is running. _Will be automatically formatted as plain text._ | ||
To help with this information, please run this command: `$PSVersionTable` | ||
placeholder: | | ||
Add PowerShell information here | ||
render: text | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: moduleVersion | ||
attributes: | ||
label: xoap-application-packaging-dsc version | ||
description: | | ||
Please provide the version of the xoap-application-packaging-dsc module that was used. _Will be automatically formatted as plain text._ | ||
To help with this information, please run this command: `Get-Module -Name 'xoap-application-packaging-dsc' -ListAvailable | ft Name,Version,Path` | ||
placeholder: | | ||
Add module information here | ||
render: text | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: New resource proposal | ||
description: If you have a new resource proposal that you think should be added to this resource module. | ||
title: "NewResourceName: New resource proposal" | ||
labels: [] | ||
assignees: [] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Please replace `NewResourceName` in the issue title (above) with your proposed resource name. | ||
Thank you for contributing and making this resource module better! | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Resource proposal | ||
description: Provide information how this resource will/should work and how it will help users. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: proposedProperties | ||
attributes: | ||
label: Proposed properties | ||
description: | | ||
List all the proposed properties that the resource should have (key, required, write, and/or read). For each property provide a detailed description, the data type, if a default value should be used, and if the property is limited to a set of values. | ||
value: | | ||
Property | Type qualifier | Data type | Description | Default value | Allowed values | ||
--- | --- | --- | --- | --- | --- | ||
PropertyName | Key | String | Detailed description | None | None | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: considerations | ||
attributes: | ||
label: Special considerations or limitations | ||
description: | | ||
Provide any considerations or limitations you can think of that a contributor should take in account when coding the proposed resource, and or what limitations a user will encounter or should consider when using the proposed resource. | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: "Virtual PowerShell User Group #DSC channel" | ||
url: https://dsccommunity.org/community/contact/ | ||
about: "To talk to the community and maintainers of DSC Community, please visit the #DSC channel." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Description | ||
|
||
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. | ||
|
||
Fixes # (issue) | ||
|
||
## Type of change | ||
|
||
Please delete options that are not relevant. | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] This change requires a documentation update | ||
|
||
# How Has This Been Tested? | ||
|
||
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration | ||
|
||
- [ ] Test A | ||
- [ ] Test B | ||
|
||
|
||
# Checklist: | ||
|
||
- [ ] My code follows the style guidelines of this project | ||
- [ ] I have performed a self-review of my code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] My changes generate no new warnings | ||
- [ ] I have added tests or screenshots that prove my fix is effective or that my feature works | ||
- [ ] Any dependent changes have been merged and published in downstream modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
target-branch: dev | ||
schedule: | ||
interval: daily | ||
labels: | ||
- github-actions | ||
- dependencies | ||
- package-ecosystem: terraform | ||
directory: / | ||
target-branch: dev | ||
schedule: | ||
interval: daily | ||
labels: | ||
- terraform | ||
- dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Feature: | ||
- head-branch: ['^feature', 'feature'] | ||
Hotfix: | ||
- head-branch: ['^hotfix', 'hotfix'] | ||
Documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/*.md' | ||
CICD: | ||
- changed-files: | ||
- any-glob-to-any-file: '.github/**' | ||
|
||
typescript: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/*.ts' | ||
css: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/*.css' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
reviewers: | ||
defaults: | ||
- repository-owners | ||
- bbrauneck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Commit linter | ||
on: | ||
pull_request: | ||
branches: [main, master] | ||
jobs: | ||
commitlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: wagoid/commitlint-github-action@v5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: Dependabot Pull Request Approve and Merge | ||
on: pull_request_target | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
jobs: | ||
dependabot: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
steps: | ||
- name: Dependabot metadata | ||
id: dependabot-metadata | ||
uses: dependabot/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Approve a PR | ||
run: gh pr review --approve "$PR_URL" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Enable auto-merge for Dependabot PRs | ||
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} | ||
run: gh pr merge --auto --squash "$PR_URL" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: label PRs | ||
on: | ||
pull_request: | ||
branches: [dev, master] | ||
jobs: | ||
size-label: | ||
needs: pr-reviewer | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: size-label | ||
uses: "pascalgn/[email protected]" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
sizes: > | ||
{ | ||
"0": "XS", | ||
"20": "S", | ||
"50": "M", | ||
"200": "L", | ||
"800": "XL", | ||
"2000": "XXL" | ||
} | ||
- name: general-labels | ||
uses: actions/labeler@v5 | ||
with: | ||
sync-labels: true | ||
pr-reviewer: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
- name: Request review and assign | ||
uses: necojackarc/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
config: .github/reviewers.yml | ||
use_local: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: Linting files | ||
on: | ||
pull_request: | ||
branches: [main, master] | ||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
name: MegaLinter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
name: Create tag and release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
tag: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
- name: Github Tag with semantic versioning | ||
# You may pin to the exact commit or the version. | ||
# uses: hennejg/github-tag-action@2cd21a8413aa58e36a69cb22e64d5ad20aeb9b99 | ||
id: tag_version | ||
uses: hennejg/[email protected] | ||
with: | ||
tag_prefix: "" | ||
# Required for permission to tag the repo. | ||
github_token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} | ||
- name: Zip Release | ||
# You may pin to the exact commit or the version. | ||
# uses: TheDoctor0/zip-release@09336613be18a8208dfa66bd57efafd9e2685657 | ||
id: zip | ||
uses: TheDoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'XOAPModuleTemplateDSC_${{ steps.tag_version.outputs.new_tag }}.zip' | ||
exclusions: '*.git* /*License/* CONTRIBUTING.md CODEOWNERS.md CODE_OF_CONDUCT.md .pre-commit.yaml .gitignore .gitattributes .github /templates/* New-CompositeResource.ps1 /test/*' | ||
- name: Create a GitHub release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: 'XOAPModuleTemplateDSC_${{ steps.tag_version.outputs.new_tag }}.zip' | ||
tag: ${{ steps.tag_version.outputs.new_tag }} | ||
name: ${{ steps.tag_version.outputs.new_tag }} | ||
body: ${{ steps.tag_version.outputs.changelog }} |
Oops, something went wrong.