Skip to content

Commit

Permalink
Merge pull request #95 from shestee/master
Browse files Browse the repository at this point in the history
Remove duplicated code in test
  • Loading branch information
mockitoguy committed Mar 23, 2021
2 parents 2886f3f + f4dd9f2 commit cc6778e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions README.md
Expand Up @@ -263,7 +263,7 @@ Basic task configuration
```

Complete task configuration
(source: [GithubReleasePluginIntegTest](https://github.com/shipkit/shipkit-changelog/blob/master/src/integTest/groovy/org/shipkit/github/release/GithubReleasePluginIntegTest.groovy))
(source: [GithubReleasePluginIntegTest](https://github.com/shipkit/shipkit-changelog/blob/master/src/integTest/groovy/org/shipkit/gh/release/GithubReleasePluginIntegTest.groovy))

```groovy
plugins {
Expand All @@ -280,11 +280,8 @@ Complete task configuration
//The file with changelog (release notes), *no default*
changelog = file("changelog.md")
//The name of the release name, default as below
//The name of the release, default as below
releaseName = "v" + project.version
//The release tag, default as below
releaseName = "v" + project.version
//Github token used for posting to Github API, *no default*
githubToken = System.getenv("GITHUB_TOKEN") // using env var to avoid checked-in secrets
Expand Down
Expand Up @@ -50,10 +50,7 @@ class GithubReleasePluginIntegTest extends BaseSpecification {
//The file with changelog (release notes), *no default*
changelog = file("changelog.md")
//The name of the release name, default as below
releaseName = "v" + project.version
//The release tag, default as below
//The name of the release, default as below
releaseName = "v" + project.version
//SHA of the revision from which release is created; *no default*
Expand Down

0 comments on commit cc6778e

Please sign in to comment.