Skip to content

Commit 9bea172

Browse files
Repo File Sync: synced file(s) with microsoft/mu_devops (#371)
synced local file(s) with [microsoft/mu_devops](https://github.com/microsoft/mu_devops). Signed-off-by: Project Mu UEFI Bot <uefibot@microsoft.com> Co-authored-by: mu-automation[bot] <204385837+mu-automation[bot]@users.noreply.github.com>
1 parent 6344689 commit 9bea172

14 files changed

Lines changed: 64 additions & 28 deletions

.azurepipelines/MuDevOpsWrapper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resources:
1919
type: github
2020
endpoint: microsoft
2121
name: microsoft/mu_devops
22-
ref: refs/tags/v13.0.3
22+
ref: refs/tags/v14.0.1
2323

2424
parameters:
2525
- name: do_ci_build

.github/release-draft-config-n-1-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
name-template: 'dev-v$RESOLVED_VERSION'
2121
tag-template: 'dev-v$RESOLVED_VERSION'
2222

23-
commitish: refs/heads/dev/202311
23+
commitish: refs/heads/dev/202405
2424
filter-by-commitish: true
2525

2626
template: |

.github/release-draft-config-n-1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
name-template: 'dev-v$RESOLVED_VERSION'
2121
tag-template: 'dev-v$RESOLVED_VERSION'
2222

23-
commitish: refs/heads/dev/202311
23+
commitish: refs/heads/dev/202405
2424
filter-by-commitish: true
2525
include-labels: ["type:backport"]
2626

.github/release-draft-config-n-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
name-template: 'dev-v$RESOLVED_VERSION'
2121
tag-template: 'dev-v$RESOLVED_VERSION'
2222

23-
commitish: refs/heads/dev/202405
23+
commitish: refs/heads/dev/202502
2424
filter-by-commitish: true
2525

2626
template: |

.github/release-draft-config-n.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
name-template: 'dev-v$RESOLVED_VERSION'
2121
tag-template: 'dev-v$RESOLVED_VERSION'
2222

23-
commitish: refs/heads/dev/202405
23+
commitish: refs/heads/dev/202502
2424
filter-by-commitish: true
2525
include-labels: ["type:backport"]
2626

.github/workflows/backport-to-release-branch.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# This workflow moves marked commits from a development branch to a release branch.
22
#
3+
# This workflow requires a GitHub App with the following permissions:
4+
# - Read and write access to repository contents
5+
# - Read and write access to pull requests
6+
#
7+
# The GitHub App ID and private key should be stored in the repository as a variable named `MU_ACCESS_APP_ID` and a
8+
# secret named `MU_ACCESS_APP_PRIVATE_KEY` respectively.
9+
#
310
# Each commit in the development branch is cherry-picked to the release branch if the commit originates from a merged
411
# PR that is marked for backport.
512
#
@@ -25,6 +32,7 @@ name: Backport Commits to Release Branch
2532
on:
2633
push:
2734
branches:
35+
- dev/202502
2836
- dev/202405
2937

3038
jobs:
@@ -33,11 +41,18 @@ jobs:
3341
runs-on: ubuntu-latest
3442

3543
steps:
44+
- name: Generate Token
45+
id: app-token
46+
uses: actions/create-github-app-token@v2
47+
with:
48+
app-id: ${{ vars.MU_ACCESS_APP_ID }}
49+
private-key: ${{ secrets.MU_ACCESS_APP_PRIVATE_KEY }}
50+
3651
- name: Checkout code
3752
uses: actions/checkout@v4
3853
with:
3954
fetch-depth: 0
40-
token: ${{ secrets.CHERRY_PICK_TOKEN }}
55+
token: ${{ steps.app-token.outputs.token }}
4156

4257
- name: Determine Contribution Info
4358
id: backport_info
@@ -229,5 +244,5 @@ jobs:
229244
-H "Content-Type: application/json" \
230245
-d "{\"title\":\"$PR_TITLE\",\"body\":\"$PR_BODY\",\"head\":\"$PR_BRANCH\",\"base\":\"$BASE_BRANCH\",\"labels\":[\"type:release-merge-conflict\"]}"
231246
env:
232-
CHERRY_PICK_TOKEN: ${{ secrets.CHERRY_PICK_TOKEN }}
247+
CHERRY_PICK_TOKEN: ${{ steps.app-token.outputs.token }}
233248

.github/workflows/issue-assignment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
contents: read
2424
issues: write
2525

26-
uses: microsoft/mu_devops/.github/workflows/IssueAssignment.yml@v13.0.3
26+
uses: microsoft/mu_devops/.github/workflows/IssueAssignment.yml@v14.0.1

.github/workflows/label-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ jobs:
3636
contents: read
3737
pull-requests: write
3838

39-
uses: microsoft/mu_devops/.github/workflows/Labeler.yml@v13.0.3
39+
uses: microsoft/mu_devops/.github/workflows/Labeler.yml@v14.0.1

.github/workflows/label-issues/regex-pull-requests.yml

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,45 @@
1010
# SPDX-License-Identifier: BSD-2-Clause-Patent
1111
#
1212
# For more information, see:
13-
# https://github.com/github/issue-labeler
13+
# https://github.com/srvaroa/labeler
1414

1515
# Maintenance: Keep labels organized in ascending alphabetical order - easier to scan, identify duplicates, etc.
16+
version: 1
17+
issues: False
1618

17-
type:backport:
18-
- '\s*-\s*\[\s*[x|X]\s*\] Backport to release branch\?'
19+
labels:
20+
- label: type:backport
21+
type: "pull_request"
22+
body: '\s*\[\s*(x|X){1}\s*\]\s*Backport to release branch\?'
1923

20-
impact:breaking-change:
21-
- '\s*-\s*\[\s*[x|X]\s*\] Breaking change\?'
24+
- label: type:backport
25+
type: "pull_request"
26+
authors: ["mu-automation[bot]"]
27+
branch : "repo-sync/mu_devops/default"
28+
base-branch: "dev/20[0-9]{4}"
2229

23-
type:documentation:
24-
- '\s*-\s*\[\s*[x|X]\s*\] Includes documentation\?'
30+
- label: type:backport
31+
type: "pull_request"
32+
authors: ["dependabot[bot]"]
33+
branch : "dependabot/*"
34+
base-branch: "dev/20[0-9]{4}"
2535

26-
impact:non-functional:
27-
- '\s*-\s*\[\s*(?![x|X])\s*\] Impacts functionality\?'
36+
- label: impact:breaking-change
37+
type: "pull_request"
38+
body: '\s*\[\s*(x|X){1}\s*\]\s*Breaking\s*change\?'
2839

29-
impact:security:
30-
- '\s*-\s*\[\s*[x|X]\s*\] Impacts security\?'
40+
- label: type:documentation
41+
type: "pull_request"
42+
body: '\s*\[\s*(x|X){1}\s*\]\s*Includes\s*documentation\?'
3143

32-
impact:testing:
33-
- '\s*-\s*\[\s*[x|X]\s*\] Includes tests\?'
44+
- label: impact:non-functional
45+
type: "pull_request"
46+
body: '\s*\[\s*\]\s*Impacts\s*functionality\?'
47+
48+
- label: impact:security
49+
type: "pull_request"
50+
body: '\s*\[\s*(x|X){1}\s*\]\s*Impacts\s*security\?'
51+
52+
- label: impact:testing
53+
type: "pull_request"
54+
body: '\[\s*(x|X){1}\s*\]\s*Includes\s*tests\?'

.github/workflows/label-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
permissions:
2929
issues: write
3030

31-
uses: microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v13.0.3
31+
uses: microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v14.0.1

0 commit comments

Comments
 (0)