Skip to content

Commit e22a4c8

Browse files
Merge branch 'master' into CR-22902-security
2 parents 27f55ab + 22d3f4f commit e22a4c8

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## What
2+
3+
## Why
4+
5+
## Notes
6+
<!-- Add any notes here -->
7+
8+
## Labels
9+
10+
Assign the following labels to the PR:
11+
12+
`security` - to trigger image scanning in CI build
13+
14+
## PR Comments
15+
16+
Add the following comments to the PR:
17+
18+
`/e2e` - to trigger E2E build

.github/release-drafter.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
4+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
5+
template: |
6+
## Changes
7+
8+
$CHANGES

.github/workflows/draft-release.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## Reference: https://github.com/release-drafter/release-drafter
2+
name: Create Release
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
create_release:
11+
name: Create Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Set up YQ
20+
uses: frenck/action-setup-yq@v1
21+
22+
- name: Get release version from service.yaml
23+
run: |
24+
RELEASE_VERSION=$(yq eval '.version' service.yaml )
25+
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
26+
27+
- uses: release-drafter/release-drafter@v5
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
with:
31+
publish: true
32+
version: ${{ env.RELEASE_VERSION }}
33+
config-name: release-drafter.yaml
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## Reference: https://github.com/amannn/action-semantic-pull-request
2+
name: PR title
3+
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- edited
10+
- synchronize
11+
12+
jobs:
13+
validate-pr-title:
14+
runs-on: ubuntu-latest
15+
steps:
16+
17+
- uses: amannn/[email protected]
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
requireScope: false

0 commit comments

Comments
 (0)