diff --git a/.github/workflows/check-for-ab-number.yml b/.github/workflows/check-for-ab-number.yml new file mode 100644 index 0000000..ba96951 --- /dev/null +++ b/.github/workflows/check-for-ab-number.yml @@ -0,0 +1,24 @@ +name: 'Description contains AB# with a valid work item id' +on: # rebuild any PRs for main branch changes + pull_request: + types: [opened, reopened, edited, synchronize] + branches: + - master + +permissions: + contents: read + +jobs: + check-commit-message: + name: Check Commit Message + runs-on: ubuntu-latest + steps: + - uses: gsactions/commit-message-checker@v2 + with: + pattern: 'AB#\d+' + error: 'Commit messages must contain a valid Azure DevOps work item ID (e.g., AB#123).' + excludeDescription: 'true' + excludeTitle: 'true' + checkAllCommitMessages: 'true' + accessToken: ${{ secrets.GITHUB_TOKEN }} + \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c932d7..6a760e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,7 @@ jobs: run: dotnet test --no-build --verbosity normal --configuration Release /p:CollectCoverage=true /p:Threshold=50 /p:ThresholdType=line /p:ThresholdStat=Average /p:CoverletOutput=./TestResults/ /p:ExcludeByAttribute="GeneratedCodeAttribute" publish-github-packages: - name: Publish to GitHub Packages + name: Publish Package to GitHub Packages and NuGet.org runs-on: ubuntu-latest needs: test diff --git a/.github/workflows/validate-pr-ab.yml b/.github/workflows/validate-pr-ab.yml deleted file mode 100644 index 83b0c2c..0000000 --- a/.github/workflows/validate-pr-ab.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: 'Description contains AB# with a valid work item id' -on: # rebuild any PRs for main branch changes - pull_request: - types: [opened, reopened, edited] - branches: - - master - -permissions: - contents: read - pull-requests: write - -jobs: - create-edit-comment: - name: check - runs-on: ubuntu-latest - steps: - - uses: danhellem/github-actions-pr-is-linked-to-work-item@main - \ No newline at end of file diff --git a/LogicBuilder.ComponentModel.Design.Serialization.slnx b/LogicBuilder.ComponentModel.Design.Serialization.slnx index f490f97..a13c195 100644 --- a/LogicBuilder.ComponentModel.Design.Serialization.slnx +++ b/LogicBuilder.ComponentModel.Design.Serialization.slnx @@ -1,8 +1,8 @@ + -