Skip to content

Commit

Permalink
Merge branch 'master' into CR-22902-security
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalii-codefresh authored Apr 1, 2024
2 parents 27f55ab + 22d3f4f commit e22a4c8
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## What

## Why

## Notes
<!-- Add any notes here -->

## Labels

Assign the following labels to the PR:

`security` - to trigger image scanning in CI build

## PR Comments

Add the following comments to the PR:

`/e2e` - to trigger E2E build
8 changes: 8 additions & 0 deletions .github/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
template: |
## Changes
$CHANGES
33 changes: 33 additions & 0 deletions .github/workflows/draft-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## Reference: https://github.com/release-drafter/release-drafter
name: Create Release

on:
push:
branches:
- main

jobs:
create_release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up YQ
uses: frenck/action-setup-yq@v1

- name: Get release version from service.yaml
run: |
RELEASE_VERSION=$(yq eval '.version' service.yaml )
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
publish: true
version: ${{ env.RELEASE_VERSION }}
config-name: release-drafter.yaml
21 changes: 21 additions & 0 deletions .github/workflows/validate-pr-title.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Reference: https://github.com/amannn/action-semantic-pull-request
name: PR title

on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize

jobs:
validate-pr-title:
runs-on: ubuntu-latest
steps:

- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
requireScope: false

0 comments on commit e22a4c8

Please sign in to comment.