Skip to content
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

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

xvanick1
Copy link
Contributor

No description provided.

Copy link
Member

@xstefank xstefank left a 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)
Copy link
Member

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.\
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.\

Copy link
Member

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`
Copy link
Member

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`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Member

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.

Copy link
Contributor Author

@xvanick1 xvanick1 Feb 18, 2021

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.

Copy link
Member

@xstefank xstefank Feb 19, 2021

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`)
Copy link
Member

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)
Copy link
Member

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?

README.md Show resolved Hide resolved
@xvanick1
Copy link
Contributor Author

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.\
Copy link
Member

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`)
Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ngrok + **“/pull-request”*** (e. g., http://f202cf7c.ngrok.io/pull-request)
ngrok + **“/pull-request”*** (e.g., http://f202cf7c.ngrok.io/pull-request)

@xvanick1 xvanick1 force-pushed the update-readme branch 2 times, most recently from 4f91500 to c5de282 Compare February 22, 2021 15:31
README.md Show resolved Hide resolved
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`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(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`)

Copy link
Contributor

@lukasburda lukasburda left a 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.
Copy link
Contributor

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..

Copy link
Contributor Author

@xvanick1 xvanick1 Feb 24, 2021

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.
Copy link
Contributor

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

Update README.md based on PR jboss#143 review

Update README.md based on 2nd review of PR jboss#143
@xstefank xstefank merged commit c830e4c into jboss:master Feb 24, 2021
@xstefank
Copy link
Member

Thanks @xvanick1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants