Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(config): apply CI actions configs #93

Merged
merged 1 commit into from
Jul 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
categories:
- title: 'Features'
label: 'feat'
- title: 'Fixes'
label: 'fix'
- title: 'Documentation'
label: 'docs'
- title: 'Maintenance'
labels:
- 'chore'
- 'ci'
- 'cleanup'
- 'perf'
- 'refactor'
- 'style'
- 'test'

autolabeler:
- label: 'feat'
title: '/^feat:/'
- label: 'fix'
title: '/^fix:/'
- label: 'docs'
title: '/^docs:/'

- label: 'chore'
title: '/^chore:/'
- label: 'ci'
title: '/^ci:/'
- label: 'cleanup'
title: '/^cleanup:/'
- label: 'perf'
title: '/^perf:/'
- label: 'refactor'
title: '/^refactor:/'
- label: 'style'
title: '/^style:/'
- label: 'test'
title: '/^test:/'

template: |
## Contributors
$CONTRIBUTORS
## What's Changed
$CHANGES

23 changes: 23 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types:
- opened
- reopened
- synchronize

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: semantic-pull-request

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

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v3.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 11 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
pull_request_rules:
- name: backport patches to v1 branch
conditions:
- base=main
- label=backport
actions:
backport:
branches:
- v1
assignees:
- "{{ author }}"