diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 602a434..b014e6d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,6 +10,7 @@ updates: # Root-level configuration for automerge and versioning +#not working needs seperate script and branch rules automerge: enable: true allow: @@ -20,32 +21,3 @@ automerge: - update-type: "digest" versioning-strategy: auto - -n not tried -# name: "Dependabot Automerge - Action" - -# on: - # pull_request: - -# jobs: - # worker: - # runs-on: ubuntu-latest - - # if: github.actor == 'dependabot[bot]' - # steps: - # - name: automerge - # uses: actions/github-script@0.2.0 - # with: - # script: | - # github.pullRequests.createReview({ - # owner: context.payload.repository.owner.login, - # repo: context.payload.repository.name, - # pull_number: context.payload.pull_request.number, - # event: 'APPROVE' - # }) - # github.pullRequests.merge({ - # owner: context.payload.repository.owner.login, - # repo: context.payload.repository.name, - # pull_number: context.payload.pull_request.number - # }) - # github-token: ${{github.token}} \ No newline at end of file diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 11b8bfe..27b9619 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,6 +1,8 @@ name: Pull Request Checks on: pull_request + branches: + - master jobs: branch-name-check: @@ -22,7 +24,7 @@ jobs: exit 1 fi - # qqqq repo will need branch protection rules and PR Template + # qqqq repo will need branch protection rules and PR Templatebr commitlint: name: commitlint runs-on: ubuntu-latest @@ -70,28 +72,6 @@ jobs: steps: - name: Code Coverage run: echo "TODO Code Coverage" - - # All-Checks-Passed: - # name: all checks passed - # runs-on: ubuntu-latest - # needs: - # - branch-name-check - # - commitlint - # - gitguardian-scan - # - Unit-Tests - # - E2E-Tests - # - Code-Coverage - # #if: ${{ success() }} - # steps: - # - name: all checks passed steps - # run: echo "allow all checks to run incase multiple fails then fail here" - -# wanted to do it like this it worked neither is putting check in pr git ui but is running in pipeline - # Code-Coverage: - # name: code coverage - # runs-on: ubuntu-latest - #if: success() || failure() - # steps: - # - name: Code Coverage - # run: echo "TODO Code Coverage" - #continue-on-error: true +# code coverage +# these need to be reference in repo ruleset by name +# https://github.com/TechnologyEnhancedLearning/GitPageBlazorWASM/settings/rules \ No newline at end of file diff --git a/.releaserc.json b/.releaserc.json index dcf5be5..c0eea67 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -3,6 +3,9 @@ { "name": "master" }, + { + "name": "Automatic_version_update_dependabot" + }, { "name": "feat-*", "prerelease": true