Skip to content

Commit d3b2c43

Browse files
authored
Infra enhancements (#206)
1 parent a339fa1 commit d3b2c43

File tree

10 files changed

+64
-11
lines changed

10 files changed

+64
-11
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ A clear and concise description of what the bug is.
1212

1313
**To Reproduce**
1414
Steps to reproduce the behavior:
15-
1. Go to '...'
16-
2. Click on '....'
17-
3. Scroll down to '....'
18-
4. See error
15+
1. Kotlin version
16+
2. Gradle version
17+
3. OS (Or at least KMP platform)
18+
4. Minimal reproducer in code
19+
5. Error description
20+
6. And so on
1921

2022
**Expected behavior**
2123
A clear and concise description of what you expected to happen.

.github/ISSUE_TEMPLATE/feature_request.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Feature request
33
about: Suggest an idea for this project
44
title: ''
5-
labels: enhancement
5+
labels: feature
66
assignees: Mr3zee
77

88
---

.github/pull_request_template.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ Describe what problem this PR solves and why it is important. Refer to a bug/tic
77
**Solution**
88
Describe your solution.
99

10+
**ATTENTION**
11+
Provide this pull request with proper labels, it is important to simplify generation of releases.

.github/release.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- renovate[bot]
5+
categories:
6+
- title: Features 🎉
7+
labels:
8+
- feature
9+
- title: Breaking Changes 🔴
10+
labels:
11+
- breaking
12+
- title: Deprecations ⚠️
13+
labels:
14+
- deprecation
15+
- title: Bug fixes 🐛
16+
labels:
17+
- bug
18+
- title: Documentation 📗
19+
labels:
20+
- docs
21+
- title: Infra 🚧
22+
labels:
23+
- infra
24+
- title: Other Changes 🧹
25+
labels:
26+
- "*"

.github/workflows/labels.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Check PR Labels
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- labeled
10+
- unlabeled
11+
- converted_to_draft
12+
- ready_for_review
13+
14+
jobs:
15+
check-labels:
16+
name: Check labels
17+
runs-on: ubuntu-latest
18+
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') }}
19+
steps:
20+
- name: Fail build after no labels present
21+
run: |
22+
echo "Pull request does not contain any required labels"
23+
echo "Please use at least one of 'feature', 'bug', 'breaking', 'infra', 'docs', 'deprecation' or 'dependencies' labels"
24+
exit 1

compiler-plugin/gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../gradle.properties

gradle-conventions/src/main/kotlin/conventions-publishing.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import util.*
66

7-
val isGradlePlugin = project.properties["kotlinx.rpc.gradle.plugin"] == "true"
7+
val isGradlePlugin = project.name == "gradle-plugin"
88
val publishingExtension = project.extensions.findByType<PublishingExtension>()
99
val globalRootDir: String by extra
1010

gradle-plugin/gradle.properties

-5
This file was deleted.

gradle-plugin/gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../gradle.properties

ksp-plugin/gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../gradle.properties

tests/compiler-plugin-tests/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ dependencies {
9191
testImplementation(libs.junit5.platform.runner)
9292
testImplementation(libs.junit5.platform.suite.api)
9393

94+
testDataClasspath(projects.utils)
9495
testDataClasspath(libs.coroutines.core)
9596
testDataClasspath(libs.serialization.core)
9697
}

0 commit comments

Comments
 (0)