diff --git a/book/chapter-05-gbdialog-reference.md b/book/chapter-05-gbdialog-reference.md index d0d15589..bd72c95c 100644 --- a/book/chapter-05-gbdialog-reference.md +++ b/book/chapter-05-gbdialog-reference.md @@ -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 ```