gradle-pullrequest-builder

Gradle plugin to commit, push local files xand create pull request on github

License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

de.jodamob.gradle
ArtifactId

ArtifactId

gradle-pullrequest-builder
Last Version

Last Version

1.0.RC2
Release Date

Release Date

Type

Type

jar
Description

Description

gradle-pullrequest-builder
Gradle plugin to commit, push local files xand create pull request on github
Project URL

Project URL

https://github.com/dpreussler/gradle-pullrequest-builder
Source Code Management

Source Code Management

https://github.com/dpreussler/gradle-pullrequest-builder.git

Download gradle-pullrequest-builder

How to add to project

<!-- https://jarcasting.com/artifacts/de.jodamob.gradle/gradle-pullrequest-builder/ -->
<dependency>
    <groupId>de.jodamob.gradle</groupId>
    <artifactId>gradle-pullrequest-builder</artifactId>
    <version>1.0.RC2</version>
</dependency>
// https://jarcasting.com/artifacts/de.jodamob.gradle/gradle-pullrequest-builder/
implementation 'de.jodamob.gradle:gradle-pullrequest-builder:1.0.RC2'
// https://jarcasting.com/artifacts/de.jodamob.gradle/gradle-pullrequest-builder/
implementation ("de.jodamob.gradle:gradle-pullrequest-builder:1.0.RC2")
'de.jodamob.gradle:gradle-pullrequest-builder:jar:1.0.RC2'
<dependency org="de.jodamob.gradle" name="gradle-pullrequest-builder" rev="1.0.RC2">
  <artifact name="gradle-pullrequest-builder" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.jodamob.gradle', module='gradle-pullrequest-builder', version='1.0.RC2')
)
libraryDependencies += "de.jodamob.gradle" % "gradle-pullrequest-builder" % "1.0.RC2"
[de.jodamob.gradle/gradle-pullrequest-builder "1.0.RC2"]

Dependencies

compile (1)

Group / Artifact Type Version
com.github.kittinunf.fuel : fuel jar 1.4.0

Project Modules

There are no modules declared in this project.

gradle-pullrequest-builder

Travis

Purpose

An Github Pull Request builder. Commits unchanged files to Git (local git installation needed) and creates Pull request. Meant as part of CI jobs that need to change code.

Applying the Plugin

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.de.jodamob.gradle:gradle-pullrequest-builder:1.0.RC1"
  }
}

apply plugin: "de.jodamob.gradle.github"

Configuration

gitPullRequest {
    // where to publish to (repo must exist)
    githubUri = 'https://github.com/dpreussler/gradle-pullrequest-builder'

    // github user name to use
    user = 'dpreussler'

    // github password or better access token
    accessToken = '12345678901234567890'

    // the name the branch should start with (will be added by timestamp to avoid collisions)
    branchSuffix = 'TICKET-1234_automatic'

    // the target branch to send pull request to
    master = 'develop'

    // optional, the folder to commit all new or changed files from (default=src)
    source = 'app/src'

    // optional, the title of the pull request
    title = 'TICKET-1234: automatic pull request'

    // optional, the message of the commit
    message = 'TICKET-1234: automatic pull request'

}

Tasks and Execution

Generally, you'll just run gitPullRequest

  • gitPullRequest - runs 'gitCommit' and then creates Pull Request
  • gitCommit - commits and pushes

Licensed under MIT license (c) 2017 Danny Preussler

Versions

Version
1.0.RC2
1.0.RC1