-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: create the file for checking commits
- Loading branch information
1 parent
62e9500
commit 6c3e298
Showing
2 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
src/main/kotlin/it/nicolasfarabegoli/gradle/ConventionalCommitsExtension.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
package it.nicolasfarabegoli.gradle | ||
|
||
import org.gradle.api.Project | ||
import org.gradle.api.provider.ListProperty | ||
import org.gradle.kotlin.dsl.listProperty | ||
|
||
open class ConventionalCommitsExtension(private val project: Project) | ||
open class ConventionalCommitsExtension(project: Project) { | ||
|
||
/** | ||
* List of scopes admitted in the project. | ||
* If an empty list is given, all scopes are admitted. | ||
* By default, any scope is admitted. | ||
*/ | ||
val scopes: ListProperty<String> = project.objects.listProperty() | ||
} |