Update chapter-05-gbdialog-reference.md
This commit is contained in:
parent
526d4ed0d4
commit
2b5f0037bb
1 changed files with 10 additions and 33 deletions
|
@ -164,58 +164,35 @@ SEND EMAIL "noreply@pragmatismo.io", "Subject", doc
|
|||
### Automating GitHub Issue creation with General Bots Automation
|
||||
|
||||
```BASIC
|
||||
|
||||
REM Realiza login no GitHub.
|
||||
|
||||
page = GET HTML "https://github.com/login"
|
||||
|
||||
SET page, "#login_field", "username"
|
||||
|
||||
SET page, "#password", "*******"
|
||||
|
||||
|
||||
|
||||
PRESS ENTER ON page
|
||||
|
||||
REM Verificar 2FA.
|
||||
REM Verifica 2FA.
|
||||
|
||||
SET HEAR ON "5521999999999"
|
||||
|
||||
TALK "Digite o código de dupla autenticação enviado..."
|
||||
|
||||
HEAR code
|
||||
|
||||
SET page, "#otp", code
|
||||
|
||||
PRESS ENTER ON page
|
||||
|
||||
|
||||
|
||||
REM Extrai cada Issue da planilha e cria no GitHub.
|
||||
|
||||
list = FIND "issues.xlsx"
|
||||
|
||||
index = 1
|
||||
|
||||
DO WHILE index <38
|
||||
|
||||
row = list[index]
|
||||
|
||||
page = GET HTML "https://github.com/GeneralBots/BotServer/issues/new"
|
||||
|
||||
SET page, "#issue_title", row.title
|
||||
|
||||
SET page, "#issue_body", row.body
|
||||
|
||||
CLICK page, "#new_issue > div > div > div.Layout-main > div > div.timeline-comment.color-bg-default.hx_comment-box--tip > div > div.flex-items-center.flex-justify-end.d-none.d-md-flex.mx-2.mb-2.px-0 > button"
|
||||
|
||||
TALK "Issue '" + row.title + "' criado."
|
||||
|
||||
WAIT 5
|
||||
|
||||
index = index + 1
|
||||
|
||||
row = list[index]
|
||||
page = GET HTML "https://github.com/GeneralBots/BotServer/issues/new"
|
||||
SET page, "#issue_title", row.title
|
||||
SET page, "#issue_body", row.body
|
||||
CLICK page, "#new_issue > div > div > div.Layout-main > div > div.timeline-comment.color-bg-default.hx_comment-box--tip > div > div.flex-items-center.flex-justify-end.d-none.d-md-flex.mx-2.mb-2.px-0 > button"
|
||||
TALK "Issue '" + row.title + "' criado."
|
||||
WAIT 5
|
||||
index = index + 1
|
||||
LOOP
|
||||
|
||||
EXIT
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue