Skip to content

Commit

Permalink
Added release labels infra
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr3zee committed Sep 24, 2024
1 parent be31e6e commit e963b7d
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
1. Kotlin version
2. Gradle version
3. OS (Or at least KMP platform)
4. Minimal reproducer in code
5. Error description
6. And so on

**Expected behavior**
A clear and concise description of what you expected to happen.
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
labels: feature
assignees: Mr3zee

---
Expand Down
2 changes: 2 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ Describe what problem this PR solves and why it is important. Refer to a bug/tic
**Solution**
Describe your solution.

**ATTENTION**
Provide this pull request with proper labels, it is important to simplify generation of releases.
26 changes: 26 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
changelog:
exclude:
authors:
- renovate[bot]
categories:
- title: Features 🎉
labels:
- feature
- title: Breaking Changes 🔴
labels:
- breaking
- title: Deprecations ⚠️
labels:
- deprecation
- title: Bug fixes 🐛
labels:
- bug
- title: Documentation 📗
labels:
- docs
- title: Infra 🚧
labels:
- infra
- title: Other Changes 🧹
labels:
- "*"
24 changes: 24 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check PR Labels

on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled
- converted_to_draft
- ready_for_review

jobs:
check-labels:
name: Check labels
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'feature') && !contains(github.event.pull_request.labels.*.name, 'bug') && !contains(github.event.pull_request.labels.*.name, 'breaking') && !contains(github.event.pull_request.labels.*.name, 'infra') && !contains(github.event.pull_request.labels.*.name, 'docs') && !contains(github.event.pull_request.labels.*.name, 'deprecation') && !contains(github.event.pull_request.labels.*.name, 'dependencies') }}
steps:
- name: Fail build after no labels present
run: |
echo "Pull request does not contain any required labels"
echo "Please use at least one of 'feature', 'bug', 'breaking', 'infra', 'docs', 'deprecation' or 'dependencies' labels"
exit 1

0 comments on commit e963b7d

Please sign in to comment.