Skip to content

Commit

Permalink
Merge branch 'release/v8.3' into cherry-pick/836
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarne authored Nov 8, 2024
2 parents c3aca9c + 9c3b7d2 commit 4299743
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 18 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/check-label-added.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Label Check"
on:
pull_request:
types: [opened, edited, labeled, unlabeled, synchronize]

jobs:
check-label:
runs-on: ubuntu-latest
steps:
- name: Check labels
uses: actions/github-script@v7
with:
script: |
const labels = context.payload.pull_request.labels;
const releaseLabels = ["ignore-for-release", "breaking-change", "feature", "bugfix", "dependency"];
if(!releaseLabels.some(r=>labels.some(l=>l.name == r))){
core.setFailed(`The PR must have at least one of these labels: ${releaseLabels}`)
}
2 changes: 0 additions & 2 deletions .github/workflows/dotnet-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Verify dotnet format

on:
pull_request:
branches:
- "main"

jobs:
verify-no-changes:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/dotnet-test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: Build and Test on windows, macos and ubuntu
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
analyze:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/test-and-analyze-fork.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Code test and analysis (fork)
on:
pull_request:
branches:
- "main"
types: [opened, synchronize, reopened, ready_for_review]
jobs:
test:
if: github.repository_owner == 'Altinn' && (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true)
Expand Down Expand Up @@ -64,4 +61,4 @@ jobs:
uses: marocchino/sticky-pull-request-comment@v2
with:
recreate: true
path: code-coverage-results.md
path: code-coverage-results.md
6 changes: 0 additions & 6 deletions .github/workflows/test-and-analyze.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: Code test and analysis
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
analyze:
Expand Down

0 comments on commit 4299743

Please sign in to comment.