-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#143] Update README instructions with the latest project changes #152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments, good work.
README.md
Outdated
# Tyr | ||
|
||
![Powered by OpenShift Online](https://www.openshift.com/images/logos/powered_by_openshift.png) | ||
# Tyr ![Powered by OpenShift Online](https://www.openshift.com/images/logos/powered_by_openshift.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this be now part of the title? Leave it on a separate line please.
README.md
Outdated
|
||
## Description | ||
|
||
Tyr is a Pull request status check tool for maintaining clean and uniform PR format of your project based on a preset template.\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tyr is a Pull request status check tool for maintaining clean and uniform PR format of your project based on a preset template.\ | |
Tyr is a Pull request status check tool for maintaining a clean and uniform PR format of your project based on a preset template.\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xvanick1 I am using suggestions just to show precisely what I want changed. You can include changes in your next push no need to use Commit suggestion actions here.
README.md
Outdated
`tyr.template.format.url` | ||
1. start Tyr - `java -jar tyr-runner.jar` with above MP config properties set | ||
(as for instance system properties, e.g. `-Dtyr.template.format.file=/path/to/file`) | ||
1. Build Tyr with Maven in `tyr/tyr-runner/` folder using command `mvn clean install` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, the whole project needs to be built + there is no tyr-runner anymore.
README.md
Outdated
1. Tick repo:status | ||
1. Generate token | ||
1. Use it as a value of this property, so the Tyr will be able to communicate with GitHub. | ||
2. Next one is `tyr.template.format.file`, alternatively `tyr.template.format.url` - Represents path to configuration file specifying desired format of the Pull request. Example can be found in `tyr-runner/src/main/resources/format-example.yaml` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. Next one is `tyr.template.format.file`, alternatively `tyr.template.format.url` - Represents path to configuration file specifying desired format of the Pull request. Example can be found in `tyr-runner/src/main/resources/format-example.yaml` | |
2. Next one is `tyr.template.format.file`, alternatively `tyr.template.format.url` - Represents the path to configuration file specifying desired format of the Pull request. Example can be found in `tyr-runner/src/main/resources/format-example.yaml` |
README.md
Outdated
> Both properties can be passed to Tyr as:\ | ||
a. application properties - set once in `tyr-runner/src/main/resources/application.properties`. Necessary to rebuild Tyr after every adjustment of the file.\ | ||
b. system properties - passed as a parameter when starting Tyr. e.g. `-Dtyr.template.format.file=/path/to/file` (preferred option)\ | ||
c. CDI injection right into the code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?? by default, there is also an option to pass MP config as Environment property but I have no idea what you mean by this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you provide any suggestions? This was meant just as an information for the user how the MC properties can be set in case of insufficient experience with microprofile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c. as environment property TYR_TEMPLATE_FORMAT_FILE=/path/to/file
README.md
Outdated
b. system properties - passed as a parameter when starting Tyr. e.g. `-Dtyr.template.format.file=/path/to/file` (preferred option)\ | ||
c. CDI injection right into the code. | ||
1. start Tyr - `java -jar tyr-runner.jar` with above MP config properties set.\ | ||
(as for instance with system properties, e.g. `java -jar -Dtyr.template.format.file="/path/to/file"tyr.github.oauth.token="afegxh64hnxh4646..." tyr-runner.jar`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all system properties must come before -jar
and also the jar is now called tyr-webhook-runner.jar
README.md
Outdated
- Set *Let me select individual events* and check only *Pull requests* | ||
1. In you test-repo - go to Settings -> Webhooks -> Add webhook | ||
1. Fill in Payload URL -> *your local exposed IP which is provided by | ||
ngrok + “__/pull-request__”* (e. g., http://f202cf7c.ngrok.io/pull-request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the reason for underscores?
Thanks, I'll look into it. |
README.md
Outdated
a. application properties - set once in `tyr-core/src/main/resources/application.properties`. Necessary to rebuild Tyr after every adjustment of the file.\ | ||
b. system properties - passed as a parameter when starting Tyr. e.g. `-Dtyr.template.format.file=/path/to/file` (preferred option)\ | ||
c. as environment property TYR_TEMPLATE_FORMAT_FILE=/path/to/file | ||
1. start Tyr - `java -jar tyr-webhook-core.jar` with above MP config properties set.\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? where did you find tyr-webhook-core.jar? Please try to follow your instructions to verify that they are working :)
README.md
Outdated
b. system properties - passed as a parameter when starting Tyr. e.g. `-Dtyr.template.format.file=/path/to/file` (preferred option)\ | ||
c. as environment property TYR_TEMPLATE_FORMAT_FILE=/path/to/file | ||
1. start Tyr - `java -jar tyr-webhook-core.jar` with above MP config properties set.\ | ||
(as for instance with system properties, e.g. `java -Dtyr.template.format.file="/path/to/file"tyr.github.oauth.token="afegxh64hnxh4646..." -jar tyr-webhook-core.jar`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, try to run this command and you'll see that you need to specify each system property with separate -D
README.md
Outdated
- Set *Let me select individual events* and check only *Pull requests* | ||
1. In you test-repo - go to Settings -> Webhooks -> Add webhook | ||
1. Fill in Payload URL -> *your local exposed IP which is provided by | ||
ngrok + **“/pull-request”*** (e. g., http://f202cf7c.ngrok.io/pull-request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ngrok + **“/pull-request”*** (e. g., http://f202cf7c.ngrok.io/pull-request) | |
ngrok + **“/pull-request”*** (e.g., http://f202cf7c.ngrok.io/pull-request) |
4f91500
to
c5de282
Compare
README.md
Outdated
b. system properties - passed as a parameter when starting Tyr. e.g. `-Dtyr.template.format.file=/path/to/file` (preferred option)\ | ||
c. as environment property TYR_TEMPLATE_FORMAT_FILE=/path/to/file | ||
1. start Tyr - `java -jar tyr-webhook-runner.jar` with above MP config properties set.\ | ||
(as for instance with system properties, e.g. `java -Dtyr.template.format.file="/path/to/file"t -Dyr.github.oauth.token="afegxh64hnxh4646..." -jar tyr-webhook-runner.jar`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(as for instance with system properties, e.g. `java -Dtyr.template.format.file="/path/to/file"t -Dyr.github.oauth.token="afegxh64hnxh4646..." -jar tyr-webhook-runner.jar`) | |
(as for instance with system properties, e.g. `java -Dtyr.template.format.file="/path/to/file" -Dtyr.github.oauth.token="afegxh64hnxh4646..." -jar tyr-webhook-runner.jar`) |
c5de282
to
562a5e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good.. Can you provide information i request? Or you think it is described enough?
1. Edit value of the variable `repository` so it points to __your__ test-repo. | ||
1. Edit value of the variable `statusUrl` so it points to __your__ test-repo or leave it default. | ||
1. Now you have to set if you want Tyr to use any CI. | ||
* If NO, remove variable `CI` and all of it's content. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command regexes could be removed also..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently readme file describes only required steps to successfully set up Tyr for first run and having those command regexes in there does not affect the first successful set up and run. I think that what you are suggesting would be better to have described in format-template.yaml file as a set of comments to let user know what does he have available in Tyr and how to set or disable individual options because it is up to user to specify what he wants to have available - how he configures the file. I admit that having the "statusUrl" on default does not affect the first successful run, but it is required to remove whole CI section from the file or set it correctly.
README.md
Outdated
1. Edit value of the variable `statusUrl` so it points to __your__ test-repo or leave it default. | ||
1. Now you have to set if you want Tyr to use any CI. | ||
* If NO, remove variable `CI` and all of it's content. | ||
* If YES, set CI name, and it's properties. We are using TeamCity CI which properties are defined in the `TeamCityProperties` interface. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tyr.whitelist.enabled=true should be specified for allowing whitelisting and triggering CI
562a5e3
to
4440eac
Compare
Thanks @xvanick1 |
No description provided.