-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pull request template to sub packages (#876)
* Add pull request template to sub packages * Fix doc generator * Fix copyright year
- Loading branch information
Showing
27 changed files
with
620 additions
and
1 deletion.
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
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
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
/** | ||
* Copyright 2018 Google Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
namespace Google\Cloud\Dev\AddComponent; | ||
|
||
/** | ||
* Create pull request template file. | ||
*/ | ||
class PullRequestTemplate | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private $cliBasePath; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $path; | ||
|
||
|
||
public function __construct($cliBasePath, $path) | ||
{ | ||
$this->cliBasePath = $cliBasePath; | ||
$this->path = $path; | ||
} | ||
|
||
public function run() | ||
{ | ||
$source = $this->cliBasePath . '/src/AddComponent/templates/template-pull_request_template.md.txt'; | ||
$dir = $this->path .'/.github'; | ||
$dest = $dir . '/pull_request_template.md'; | ||
@mkdir($dir); | ||
|
||
$pathParts = explode('/', $this->path); | ||
$template = file_get_contents($source); | ||
$template = str_replace('{clientBase}', array_pop($pathParts), $template); | ||
|
||
file_put_contents($dest, $template); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
dev/src/AddComponent/templates/template-pull_request_template.md.txt
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**PLEASE READ THIS ENTIRE MESSAGE** | ||
|
||
Hello, and thank you for your contribution! Please note that this repository is | ||
a read-only split of `GoogleCloudPlatform/google-cloud-php`. As such, we are | ||
unable to accept pull requests to this repository. | ||
|
||
We welcome your pull request and would be happy to consider it for inclusion in | ||
our library if you follow these steps: | ||
|
||
* Clone the parent client library repository: | ||
|
||
```sh | ||
$ git clone [email protected]:GoogleCloudPlatform/google-cloud-php.git | ||
``` | ||
|
||
* Move your changes into the correct location in that library. Library code | ||
belongs in `src/{clientBase}`, and tests in `tests/*/{clientBase}`. | ||
|
||
* Push the changes in a new branch to a fork, and open a new pull request | ||
[here](https://github.com/GoogleCloudPlatform/google-cloud-php). | ||
|
||
Thanks again, and we look forward to seeing your proposed change! | ||
|
||
The Google Cloud PHP team |
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**PLEASE READ THIS ENTIRE MESSAGE** | ||
|
||
Hello, and thank you for your contribution! Please note that this repository is | ||
a read-only split of `GoogleCloudPlatform/google-cloud-php`. As such, we are | ||
unable to accept pull requests to this repository. | ||
|
||
We welcome your pull request and would be happy to consider it for inclusion in | ||
our library if you follow these steps: | ||
|
||
* Clone the parent client library repository: | ||
|
||
```sh | ||
$ git clone [email protected]:GoogleCloudPlatform/google-cloud-php.git | ||
``` | ||
|
||
* Move your changes into the correct location in that library. Library code | ||
belongs in `src/BigQuery`, and tests in `tests/*/BigQuery`. | ||
|
||
* Push the changes in a new branch to a fork, and open a new pull request | ||
[here](https://github.com/GoogleCloudPlatform/google-cloud-php). | ||
|
||
Thanks again, and we look forward to seeing your proposed change! | ||
|
||
The Google Cloud PHP team |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**PLEASE READ THIS ENTIRE MESSAGE** | ||
|
||
Hello, and thank you for your contribution! Please note that this repository is | ||
a read-only split of `GoogleCloudPlatform/google-cloud-php`. As such, we are | ||
unable to accept pull requests to this repository. | ||
|
||
We welcome your pull request and would be happy to consider it for inclusion in | ||
our library if you follow these steps: | ||
|
||
* Clone the parent client library repository: | ||
|
||
```sh | ||
$ git clone [email protected]:GoogleCloudPlatform/google-cloud-php.git | ||
``` | ||
|
||
* Move your changes into the correct location in that library. Library code | ||
belongs in `src/Bigtable`, and tests in `tests/*/Bigtable`. | ||
|
||
* Push the changes in a new branch to a fork, and open a new pull request | ||
[here](https://github.com/GoogleCloudPlatform/google-cloud-php). | ||
|
||
Thanks again, and we look forward to seeing your proposed change! | ||
|
||
The Google Cloud PHP team |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**PLEASE READ THIS ENTIRE MESSAGE** | ||
|
||
Hello, and thank you for your contribution! Please note that this repository is | ||
a read-only split of `GoogleCloudPlatform/google-cloud-php`. As such, we are | ||
unable to accept pull requests to this repository. | ||
|
||
We welcome your pull request and would be happy to consider it for inclusion in | ||
our library if you follow these steps: | ||
|
||
* Clone the parent client library repository: | ||
|
||
```sh | ||
$ git clone [email protected]:GoogleCloudPlatform/google-cloud-php.git | ||
``` | ||
|
||
* Move your changes into the correct location in that library. Library code | ||
belongs in `src/Container`, and tests in `tests/*/Container`. | ||
|
||
* Push the changes in a new branch to a fork, and open a new pull request | ||
[here](https://github.com/GoogleCloudPlatform/google-cloud-php). | ||
|
||
Thanks again, and we look forward to seeing your proposed change! | ||
|
||
The Google Cloud PHP team |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**PLEASE READ THIS ENTIRE MESSAGE** | ||
|
||
Hello, and thank you for your contribution! Please note that this repository is | ||
a read-only split of `GoogleCloudPlatform/google-cloud-php`. As such, we are | ||
unable to accept pull requests to this repository. | ||
|
||
We welcome your pull request and would be happy to consider it for inclusion in | ||
our library if you follow these steps: | ||
|
||
* Clone the parent client library repository: | ||
|
||
```sh | ||
$ git clone [email protected]:GoogleCloudPlatform/google-cloud-php.git | ||
``` | ||
|
||
* Move your changes into the correct location in that library. Library code | ||
belongs in `src/Core`, and tests in `tests/*/Core`. | ||
|
||
* Push the changes in a new branch to a fork, and open a new pull request | ||
[here](https://github.com/GoogleCloudPlatform/google-cloud-php). | ||
|
||
Thanks again, and we look forward to seeing your proposed change! | ||
|
||
The Google Cloud PHP team |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**PLEASE READ THIS ENTIRE MESSAGE** | ||
|
||
Hello, and thank you for your contribution! Please note that this repository is | ||
a read-only split of `GoogleCloudPlatform/google-cloud-php`. As such, we are | ||
unable to accept pull requests to this repository. | ||
|
||
We welcome your pull request and would be happy to consider it for inclusion in | ||
our library if you follow these steps: | ||
|
||
* Clone the parent client library repository: | ||
|
||
```sh | ||
$ git clone [email protected]:GoogleCloudPlatform/google-cloud-php.git | ||
``` | ||
|
||
* Move your changes into the correct location in that library. Library code | ||
belongs in `src/Dataproc`, and tests in `tests/*/Dataproc`. | ||
|
||
* Push the changes in a new branch to a fork, and open a new pull request | ||
[here](https://github.com/GoogleCloudPlatform/google-cloud-php). | ||
|
||
Thanks again, and we look forward to seeing your proposed change! | ||
|
||
The Google Cloud PHP team |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**PLEASE READ THIS ENTIRE MESSAGE** | ||
|
||
Hello, and thank you for your contribution! Please note that this repository is | ||
a read-only split of `GoogleCloudPlatform/google-cloud-php`. As such, we are | ||
unable to accept pull requests to this repository. | ||
|
||
We welcome your pull request and would be happy to consider it for inclusion in | ||
our library if you follow these steps: | ||
|
||
* Clone the parent client library repository: | ||
|
||
```sh | ||
$ git clone [email protected]:GoogleCloudPlatform/google-cloud-php.git | ||
``` | ||
|
||
* Move your changes into the correct location in that library. Library code | ||
belongs in `src/Datastore`, and tests in `tests/*/Datastore`. | ||
|
||
* Push the changes in a new branch to a fork, and open a new pull request | ||
[here](https://github.com/GoogleCloudPlatform/google-cloud-php). | ||
|
||
Thanks again, and we look forward to seeing your proposed change! | ||
|
||
The Google Cloud PHP team |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**PLEASE READ THIS ENTIRE MESSAGE** | ||
|
||
Hello, and thank you for your contribution! Please note that this repository is | ||
a read-only split of `GoogleCloudPlatform/google-cloud-php`. As such, we are | ||
unable to accept pull requests to this repository. | ||
|
||
We welcome your pull request and would be happy to consider it for inclusion in | ||
our library if you follow these steps: | ||
|
||
* Clone the parent client library repository: | ||
|
||
```sh | ||
$ git clone [email protected]:GoogleCloudPlatform/google-cloud-php.git | ||
``` | ||
|
||
* Move your changes into the correct location in that library. Library code | ||
belongs in `src/Debugger`, and tests in `tests/*/Debugger`. | ||
|
||
* Push the changes in a new branch to a fork, and open a new pull request | ||
[here](https://github.com/GoogleCloudPlatform/google-cloud-php). | ||
|
||
Thanks again, and we look forward to seeing your proposed change! | ||
|
||
The Google Cloud PHP team |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**PLEASE READ THIS ENTIRE MESSAGE** | ||
|
||
Hello, and thank you for your contribution! Please note that this repository is | ||
a read-only split of `GoogleCloudPlatform/google-cloud-php`. As such, we are | ||
unable to accept pull requests to this repository. | ||
|
||
We welcome your pull request and would be happy to consider it for inclusion in | ||
our library if you follow these steps: | ||
|
||
* Clone the parent client library repository: | ||
|
||
```sh | ||
$ git clone [email protected]:GoogleCloudPlatform/google-cloud-php.git | ||
``` | ||
|
||
* Move your changes into the correct location in that library. Library code | ||
belongs in `src/Dlp`, and tests in `tests/*/Dlp`. | ||
|
||
* Push the changes in a new branch to a fork, and open a new pull request | ||
[here](https://github.com/GoogleCloudPlatform/google-cloud-php). | ||
|
||
Thanks again, and we look forward to seeing your proposed change! | ||
|
||
The Google Cloud PHP team |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**PLEASE READ THIS ENTIRE MESSAGE** | ||
|
||
Hello, and thank you for your contribution! Please note that this repository is | ||
a read-only split of `GoogleCloudPlatform/google-cloud-php`. As such, we are | ||
unable to accept pull requests to this repository. | ||
|
||
We welcome your pull request and would be happy to consider it for inclusion in | ||
our library if you follow these steps: | ||
|
||
* Clone the parent client library repository: | ||
|
||
```sh | ||
$ git clone [email protected]:GoogleCloudPlatform/google-cloud-php.git | ||
``` | ||
|
||
* Move your changes into the correct location in that library. Library code | ||
belongs in `src/ErrorReporting`, and tests in `tests/*/ErrorReporting`. | ||
|
||
* Push the changes in a new branch to a fork, and open a new pull request | ||
[here](https://github.com/GoogleCloudPlatform/google-cloud-php). | ||
|
||
Thanks again, and we look forward to seeing your proposed change! | ||
|
||
The Google Cloud PHP team |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**PLEASE READ THIS ENTIRE MESSAGE** | ||
|
||
Hello, and thank you for your contribution! Please note that this repository is | ||
a read-only split of `GoogleCloudPlatform/google-cloud-php`. As such, we are | ||
unable to accept pull requests to this repository. | ||
|
||
We welcome your pull request and would be happy to consider it for inclusion in | ||
our library if you follow these steps: | ||
|
||
* Clone the parent client library repository: | ||
|
||
```sh | ||
$ git clone [email protected]:GoogleCloudPlatform/google-cloud-php.git | ||
``` | ||
|
||
* Move your changes into the correct location in that library. Library code | ||
belongs in `src/Firestore`, and tests in `tests/*/Firestore`. | ||
|
||
* Push the changes in a new branch to a fork, and open a new pull request | ||
[here](https://github.com/GoogleCloudPlatform/google-cloud-php). | ||
|
||
Thanks again, and we look forward to seeing your proposed change! | ||
|
||
The Google Cloud PHP team |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**PLEASE READ THIS ENTIRE MESSAGE** | ||
|
||
Hello, and thank you for your contribution! Please note that this repository is | ||
a read-only split of `GoogleCloudPlatform/google-cloud-php`. As such, we are | ||
unable to accept pull requests to this repository. | ||
|
||
We welcome your pull request and would be happy to consider it for inclusion in | ||
our library if you follow these steps: | ||
|
||
* Clone the parent client library repository: | ||
|
||
```sh | ||
$ git clone [email protected]:GoogleCloudPlatform/google-cloud-php.git | ||
``` | ||
|
||
* Move your changes into the correct location in that library. Library code | ||
belongs in `src/Language`, and tests in `tests/*/Language`. | ||
|
||
* Push the changes in a new branch to a fork, and open a new pull request | ||
[here](https://github.com/GoogleCloudPlatform/google-cloud-php). | ||
|
||
Thanks again, and we look forward to seeing your proposed change! | ||
|
||
The Google Cloud PHP team |
Oops, something went wrong.