Skip to content

Commit 67805a2

Browse files
authored
Merge pull request #366 from PlagueHO/main
Updated pipeline files to support change of master to main - fixes #348
2 parents bb71e2b + 02f9b2f commit 67805a2

File tree

62 files changed

+74
-66
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+74
-66
lines changed

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,22 @@ The format is based on and uses the types of changes according to [Keep a Change
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

66
## [Unreleased]
7-
- WindowsCapability
8-
- Added the 'Source' parameter for Add-WindowsCapability as an
9-
optional parameter - Fixes [Issue #361](https://github.com/dsccommunity/ComputerManagementDsc/issues/361)
107

118
### Added
129

1310
- WindowsEventLog
1411
- Added support to restrict guest access - Fixes [Issue #338](https://github.com/dsccommunity/ComputerManagementDsc/issues/338).
1512
- Added support to create custom event sources and optionally register
1613
resource files - Fixes [Issue #355](https://github.com/dsccommunity/ComputerManagementDsc/issues/355).
14+
- WindowsCapability
15+
- Added the 'Source' parameter for Add-WindowsCapability as an
16+
optional parameter - Fixes [Issue #361](https://github.com/dsccommunity/ComputerManagementDsc/issues/361)
1717

1818
### Changed
1919

2020
- WindowsEventLog
2121
- Reformatted code to better align with current DSCResources coding standards.
22+
- Renamed `master` branch to `main` - Fixes [Issue #348](https://github.com/dsccommunity/ComputerManagementDsc/issues/348).
2223

2324
### Fixed
2425

GitVersion.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ assembly-informational-format: '{NuGetVersionV2}+Sha.{Sha}.Date.{CommitDate}'
88
branches:
99
master:
1010
tag: preview
11+
regex: ^main$
1112
pull-request:
1213
tag: PR
1314
feature:

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# ComputerManagementDsc
22

3-
[![Build Status](https://dev.azure.com/dsccommunity/ComputerManagementDsc/_apis/build/status/dsccommunity.ComputerManagementDsc?branchName=master)](https://dev.azure.com/dsccommunity/ComputerManagementDsc/_build/latest?definitionId=18&branchName=master)
4-
![Code Coverage](https://img.shields.io/azure-devops/coverage/dsccommunity/ComputerManagementDsc/18/master)
5-
[![Azure DevOps tests](https://img.shields.io/azure-devops/tests/dsccommunity/ComputerManagementDsc/18/master)](https://dsccommunity.visualstudio.com/ComputerManagementDsc/_test/analytics?definitionId=18&contextType=build)
3+
[![Build Status](https://dev.azure.com/dsccommunity/ComputerManagementDsc/_apis/build/status/dsccommunity.ComputerManagementDsc?branchName=main)](https://dev.azure.com/dsccommunity/ComputerManagementDsc/_build/latest?definitionId=18&branchName=main)
4+
![Code Coverage](https://img.shields.io/azure-devops/coverage/dsccommunity/ComputerManagementDsc/18/main)
5+
[![Azure DevOps tests](https://img.shields.io/azure-devops/tests/dsccommunity/ComputerManagementDsc/18/main)](https://dsccommunity.visualstudio.com/ComputerManagementDsc/_test/analytics?definitionId=18&contextType=build)
66
[![PowerShell Gallery (with prereleases)](https://img.shields.io/powershellgallery/vpre/ComputerManagementDsc?label=ComputerManagementDsc%20Preview)](https://www.powershellgallery.com/packages/ComputerManagementDsc/)
77
[![PowerShell Gallery](https://img.shields.io/powershellgallery/v/ComputerManagementDsc?label=ComputerManagementDsc)](https://www.powershellgallery.com/packages/ComputerManagementDsc/)
88

@@ -12,7 +12,7 @@ This project has adopted [this code of conduct](CODE_OF_CONDUCT.md).
1212

1313
## Releases
1414

15-
For each merge to the branch `master` a preview release will be
15+
For each merge to the branch `main` a preview release will be
1616
deployed to [PowerShell Gallery](https://www.powershellgallery.com/).
1717
Periodically a release version tag will be pushed which will deploy a
1818
full release to [PowerShell Gallery](https://www.powershellgallery.com/).

azure-pipelines.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
trigger:
22
branches:
33
include:
4-
- master
4+
- main
55
paths:
66
include:
77
- source/*
@@ -252,7 +252,7 @@ stages:
252252
and(
253253
succeeded(),
254254
or(
255-
eq(variables['Build.SourceBranch'], 'refs/heads/master'),
255+
eq(variables['Build.SourceBranch'], 'refs/heads/main'),
256256
startsWith(variables['Build.SourceBranch'], 'refs/tags/')
257257
),
258258
contains(variables['System.TeamFoundationCollectionUri'], 'dsccommunity')
@@ -281,6 +281,8 @@ stages:
281281
env:
282282
GitHubToken: $(GitHubToken)
283283
GalleryApiToken: $(GalleryApiToken)
284+
ReleaseBranch: main
285+
MainGitBranch: main
284286

285287
- task: PowerShell@2
286288
name: sendChangelogPR
@@ -291,3 +293,6 @@ stages:
291293
pwsh: true
292294
env:
293295
GitHubToken: $(GitHubToken)
296+
ReleaseBranch: main
297+
MainGitBranch: main
298+

build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ DscTest:
7474
- output
7575
ExcludeModuleFile:
7676
- Modules/DscResource.Common
77+
MainGitBranch: main
7778

7879
Resolve-Dependency:
7980
Gallery: 'PSGallery'

source/ComputerManagementDsc.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
Tags = @('DesiredStateConfiguration', 'DSC', 'DSCResource')
6767

6868
# A URL to the license for this module.
69-
LicenseUri = 'https://github.com/dsccommunity/ComputerManagementDsc/blob/master/LICENSE'
69+
LicenseUri = 'https://github.com/dsccommunity/ComputerManagementDsc/blob/main/LICENSE'
7070

7171
# A URL to the main website for this project.
7272
ProjectUri = 'https://github.com/dsccommunity/ComputerManagementDsc'

source/Examples/Resources/Computer/1-Computer_RenameComputerAndSetWorkgroup_Config.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.COMPANYNAME DSC Community
66
.COPYRIGHT Copyright the DSC Community contributors. All rights reserved.
77
.TAGS DSCConfiguration
8-
.LICENSEURI https://github.com/dsccommunity/ComputerManagementDsc/blob/master/LICENSE
8+
.LICENSEURI https://github.com/dsccommunity/ComputerManagementDsc/blob/main/LICENSE
99
.PROJECTURI https://github.com/dsccommunity/ComputerManagementDsc
1010
.ICONURI
1111
.EXTERNALMODULEDEPENDENCIES

source/Examples/Resources/Computer/2-Computer_JoinDomain_Config.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.COMPANYNAME DSC Community
66
.COPYRIGHT Copyright the DSC Community contributors. All rights reserved.
77
.TAGS DSCConfiguration
8-
.LICENSEURI https://github.com/dsccommunity/ComputerManagementDsc/blob/master/LICENSE
8+
.LICENSEURI https://github.com/dsccommunity/ComputerManagementDsc/blob/main/LICENSE
99
.PROJECTURI https://github.com/dsccommunity/ComputerManagementDsc
1010
.ICONURI
1111
.EXTERNALMODULEDEPENDENCIES

source/Examples/Resources/Computer/3-Computer_RenameComputerInDomain_Config.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.COMPANYNAME DSC Community
66
.COPYRIGHT Copyright the DSC Community contributors. All rights reserved.
77
.TAGS DSCConfiguration
8-
.LICENSEURI https://github.com/dsccommunity/ComputerManagementDsc/blob/master/LICENSE
8+
.LICENSEURI https://github.com/dsccommunity/ComputerManagementDsc/blob/main/LICENSE
99
.PROJECTURI https://github.com/dsccommunity/ComputerManagementDsc
1010
.ICONURI
1111
.EXTERNALMODULEDEPENDENCIES

source/Examples/Resources/Computer/4-Computer_RenameComputerInWorkgroup_Config.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.COMPANYNAME DSC Community
66
.COPYRIGHT Copyright the DSC Community contributors. All rights reserved.
77
.TAGS DSCConfiguration
8-
.LICENSEURI https://github.com/dsccommunity/ComputerManagementDsc/blob/master/LICENSE
8+
.LICENSEURI https://github.com/dsccommunity/ComputerManagementDsc/blob/main/LICENSE
99
.PROJECTURI https://github.com/dsccommunity/ComputerManagementDsc
1010
.ICONURI
1111
.EXTERNALMODULEDEPENDENCIES

0 commit comments

Comments
 (0)