-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add example for compose and send commands
- Loading branch information
Showing
7 changed files
with
75 additions
and
6 deletions.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,61 @@ | ||
# Compose and Send | ||
|
||
This scenario describes how to generate many reports for given repositories and organizations and send them to developers. | ||
|
||
> NOTE: knowledge from the [simple-scenario](../simple-flow/README.md) and the [with-template](../with-template/README.md) may be useful to clarify some topics. | ||
1. Create the `.pkupgencompose.yaml` file with the whole configuration ( config details [here](../../pkg/config/config.go) ): | ||
|
||
```yaml | ||
reports: | ||
- outputDir: reports/FILIP_STROZIK | ||
email: "filip.strozik@outlook.com" | ||
signatures: | ||
- username: pPrecel | ||
- username: internalPrecel | ||
enterpriseUrl: "https://github.my-corp" | ||
reportFields: | ||
pkupGenEmployeesName: "Filip Strózik" | ||
pkupGenJobTitle: "Senior Developer" | ||
pkupGenDepartment: "R&D" | ||
pkupGenManagersName: "John Wick" | ||
# - outputDir: ... | ||
|
||
template: templates/report.docx | ||
|
||
orgs: | ||
- name: kyma-project | ||
token: ghp_5...C | ||
- name: kyma-incubator | ||
token: ghp_5...C | ||
- name: kyma | ||
token: ghp_1...G | ||
enterpriseUrl: "https://github.my-corp" | ||
|
||
repos: | ||
- name: kyma-project/busola | ||
token: ghp_5...C | ||
allBranches: true | ||
uniqueOnly: true | ||
- name: kyma-project/cli | ||
token: ghp_5...C | ||
branches: ["main", "v3"] | ||
uniqueOnly: true | ||
|
||
send: | ||
serverAddress: "smtp-mail.outlook.com" | ||
serverPort: 587 | ||
username: "filip.strozik@outlook.com" | ||
password: ************* | ||
subject: "PKUP report" | ||
htmlBodyPath: "templates/email_body_template.html" | ||
from: filip.strozik@outlook.com | ||
``` | ||
2. Compose report ( example output ): | ||
![1](../../assets/screenshot-compose-and-send-1.png) | ||
3. Send email ( example output ): | ||
![2](../../assets/screenshot-compose-and-send-2.png) |
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