Skip to content

Commit 6f4146d

Browse files
committed
Adding instructions for registering new repository
1 parent 9a0f523 commit 6f4146d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,22 @@ This project still requires some manual updates to the code in order to make it
3030

3131
## SVN
3232

33+
### Credentials
34+
3335
You either need to hardcode SVN credentials to `PHPCS_Diff_SVN` class ( related code: https://github.com/Automattic/phpcs-diff/blob/master/class-phpcs-diff-svn.php#L5 ) or pass those via the `(array) $options` param to class' constructor from the WP CLI command - https://github.com/Automattic/phpcs-diff/blob/master/wp-cli-command.php#L64
3436

3537
```
3638
new PHPCS_Diff_SVN( $repo, array( 'svn_username' => 'my_username', 'svn_password' => 'my_password' ) );
3739
```
3840

41+
### Repository
42+
43+
You'll have to either register your repository in the `PHPCS_Diff_SVN`'s constructor ( [example](https://github.com/Automattic/phpcs-diff/blob/master/class-phpcs-diff-svn.php#L25,L27) ) or pass your own repository to the constructor via `(array) $options` param from the WP CLI command - https://github.com/Automattic/phpcs-diff/blob/master/wp-cli-command.php#L64
44+
45+
```
46+
new PHPCS_Diff_SVN( $repo, array( 'repo_url' => 'https://plugins.svn.wordpress.org/hello-dolly' ) );
47+
```
48+
3949
## PHPCS
4050

4151
If default values for running PHPCS command does not match your environment (see https://github.com/Automattic/phpcs-diff/blob/master/class-phpcs-diff.php#L5 ), you either need to hardcode them to the `PHPCS_Diff` class, or pass those in the `(array) $options` param to class' constructor from the WP CLI command - https://github.com/Automattic/phpcs-diff/blob/master/wp-cli-command.php#L64

0 commit comments

Comments
 (0)