Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
ci(config): apply CI actions configs (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores authored Jul 9, 2021
1 parent 21a58ac commit e2b8e3f
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
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 }}

0 comments on commit e2b8e3f

Please sign in to comment.