Skip to content

Commit ad995b6

Browse files
authored
Merge pull request #49 from TechnologyEnhancedLearning/Automatic_version_update_dependabot
Automatic version update dependabot
2 parents cdd0f65 + 5844a24 commit ad995b6

File tree

3 files changed

+10
-55
lines changed

3 files changed

+10
-55
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ updates:
1010

1111

1212
# Root-level configuration for automerge and versioning
13+
#not working needs seperate script and branch rules
1314
automerge:
1415
enable: true
1516
allow:
@@ -20,32 +21,3 @@ automerge:
2021
- update-type: "digest"
2122

2223
versioning-strategy: auto
23-
24-
n not tried
25-
# name: "Dependabot Automerge - Action"
26-
27-
# on:
28-
# pull_request:
29-
30-
# jobs:
31-
# worker:
32-
# runs-on: ubuntu-latest
33-
34-
# if: github.actor == 'dependabot[bot]'
35-
# steps:
36-
# - name: automerge
37-
# uses: actions/[email protected]
38-
# with:
39-
# script: |
40-
# github.pullRequests.createReview({
41-
# owner: context.payload.repository.owner.login,
42-
# repo: context.payload.repository.name,
43-
# pull_number: context.payload.pull_request.number,
44-
# event: 'APPROVE'
45-
# })
46-
# github.pullRequests.merge({
47-
# owner: context.payload.repository.owner.login,
48-
# repo: context.payload.repository.name,
49-
# pull_number: context.payload.pull_request.number
50-
# })
51-
# github-token: ${{github.token}}

.github/workflows/pull_request.yml

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Pull Request Checks
22

33
on: pull_request
4+
branches:
5+
- master
46
jobs:
57

68
branch-name-check:
@@ -22,7 +24,7 @@ jobs:
2224
exit 1
2325
fi
2426
25-
# qqqq repo will need branch protection rules and PR Template
27+
# qqqq repo will need branch protection rules and PR Templatebr
2628
commitlint:
2729
name: commitlint
2830
runs-on: ubuntu-latest
@@ -70,28 +72,6 @@ jobs:
7072
steps:
7173
- name: Code Coverage
7274
run: echo "TODO Code Coverage"
73-
74-
# All-Checks-Passed:
75-
# name: all checks passed
76-
# runs-on: ubuntu-latest
77-
# needs:
78-
# - branch-name-check
79-
# - commitlint
80-
# - gitguardian-scan
81-
# - Unit-Tests
82-
# - E2E-Tests
83-
# - Code-Coverage
84-
# #if: ${{ success() }}
85-
# steps:
86-
# - name: all checks passed steps
87-
# run: echo "allow all checks to run incase multiple fails then fail here"
88-
89-
# wanted to do it like this it worked neither is putting check in pr git ui but is running in pipeline
90-
# Code-Coverage:
91-
# name: code coverage
92-
# runs-on: ubuntu-latest
93-
#if: success() || failure()
94-
# steps:
95-
# - name: Code Coverage
96-
# run: echo "TODO Code Coverage"
97-
#continue-on-error: true
75+
# code coverage
76+
# these need to be reference in repo ruleset by name
77+
# https://github.com/TechnologyEnhancedLearning/GitPageBlazorWASM/settings/rules

.releaserc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
{
44
"name": "master"
55
},
6+
{
7+
"name": "Automatic_version_update_dependabot"
8+
},
69
{
710
"name": "feat-*",
811
"prerelease": true

0 commit comments

Comments
 (0)