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
|
### Automating GitHub Issue creation with General Bots Automation
|
||||||
|
|
||||||
```BASIC
|
```BASIC
|
||||||
|
|
||||||
REM Realiza login no GitHub.
|
REM Realiza login no GitHub.
|
||||||
|
|
||||||
page = GET HTML "https://github.com/login"
|
page = GET HTML "https://github.com/login"
|
||||||
|
|
||||||
SET page, "#login_field", "username"
|
SET page, "#login_field", "username"
|
||||||
|
|
||||||
SET page, "#password", "*******"
|
SET page, "#password", "*******"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
PRESS ENTER ON page
|
PRESS ENTER ON page
|
||||||
|
|
||||||
REM Verificar 2FA.
|
REM Verifica 2FA.
|
||||||
|
|
||||||
SET HEAR ON "5521999999999"
|
SET HEAR ON "5521999999999"
|
||||||
|
|
||||||
TALK "Digite o código de dupla autenticação enviado..."
|
TALK "Digite o código de dupla autenticação enviado..."
|
||||||
|
|
||||||
HEAR code
|
HEAR code
|
||||||
|
|
||||||
SET page, "#otp", code
|
SET page, "#otp", code
|
||||||
|
|
||||||
PRESS ENTER ON page
|
PRESS ENTER ON page
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
REM Extrai cada Issue da planilha e cria no GitHub.
|
REM Extrai cada Issue da planilha e cria no GitHub.
|
||||||
|
|
||||||
list = FIND "issues.xlsx"
|
list = FIND "issues.xlsx"
|
||||||
|
|
||||||
index = 1
|
index = 1
|
||||||
|
|
||||||
DO WHILE index <38
|
DO WHILE index <38
|
||||||
|
|
||||||
row = list[index]
|
row = list[index]
|
||||||
|
|
||||||
page = GET HTML "https://github.com/GeneralBots/BotServer/issues/new"
|
page = GET HTML "https://github.com/GeneralBots/BotServer/issues/new"
|
||||||
|
|
||||||
SET page, "#issue_title", row.title
|
SET page, "#issue_title", row.title
|
||||||
|
|
||||||
SET page, "#issue_body", row.body
|
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"
|
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."
|
TALK "Issue '" + row.title + "' criado."
|
||||||
|
|
||||||
WAIT 5
|
WAIT 5
|
||||||
|
|
||||||
index = index + 1
|
index = index + 1
|
||||||
|
|
||||||
LOOP
|
LOOP
|
||||||
|
|
||||||
EXIT
|
EXIT
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue