Skip to content

Commit

Permalink
this set of flows uses datatables to retrieve/act on info from GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
kensoh committed Jun 21, 2018
1 parent 708c144 commit a158610
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 38 deletions.
20 changes: 11 additions & 9 deletions src/samples/6_datatables/6A_datatables
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@ https://github.com/telegramdesktop/tdesktop/stargazers?page=`page_no`

// CONTEXT - When TagUI beta was released, someone shared to Hacker News
// and GitHub stars for the project jumped from 2 to 1.5k in a week or so.
// I used this to send an one-time thank you email to all TagUI starrers,
// I used this to send a one-time thank you email to all TagUI starrers,
// but had since stopped using this as it is unsolicited and feels spammy.

// datatables extend the power of repositories files to manage batch automation
// datatable has 2 or more columns, for example below (headers up to you to name)
// data-centric approach with rows representing data fields (usually row = test case)
// TagUI loops through each column to automate using values from different datasets
// when running TagUI, specify datatable csv to use, eg tagui 6A_datatables page_data.csv
// TagUI loops through each row to run automation using the data from different rows
// for example, echo "PAGE NUMBER - `page_no`" in your flow shows PAGE NUMBER - 1

// contents of 6A_datatables.csv
// 6A_GETURL,#1,#2,#3
// page_no,1,2,3
// echo '`[iteration]`' can be used in your flow to show the current iteration number
// a file tagui_datatable.csv will be created in tagui/src folder for TagUI internal use

// contents of page_data.csv
// #,page_no
// 1,1
// 2,2
// 3,3

// now here's the actual flow, it grabs URLs of first 3 pages of Telegram Starrers

Expand Down
2 changes: 0 additions & 2 deletions src/samples/6_datatables/6A_datatables.csv

This file was deleted.

21 changes: 11 additions & 10 deletions src/samples/6_datatables/6B_datatables
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@

// CONTEXT - When TagUI beta was released, someone shared to Hacker News
// and GitHub stars for the project jumped from 2 to 1.5k in a week or so.
// I used this to send an one-time thank you email to all TagUI starrers,
// I used this to send a one-time thank you email to all TagUI starrers,
// but had since stopped using this as it is unsolicited and feels spammy.

// datatables extend the power of repositories files to manage batch automation
// datatable has 2 or more columns, for example below (headers up to you to name)
// data-centric approach with rows representing data fields (usually row = test case)
// TagUI loops through each column to automate using values from different datasets
// when running TagUI, specify datatable csv to use, eg tagui 6B_datatables url_data.csv
// TagUI loops through each row to run automation using the data from different rows
// for example, echo "URL - `user_url`" in your flow shows URL - https://github.com/s0b0lev

// contents of 6B_datatables.csv // with 3 random Telegram GitHub userids as learning examples
// file in this format can be from flow 6A using JavaScript, or using Excel transpose function
// 6B_GETCONTACT,#1,#2,#3
// user_url,https://github.com/s0b0lev,https://github.com/zongUMR,https://github.com/jkmartindale
// echo '`[iteration]`' can be used in your flow to show the current iteration number
// a file tagui_datatable.csv will be created in tagui/src folder for TagUI internal use

// contents of url_data.csv // with 3 random Telegram GitHub userids as learning examples
// #,user_url
// 1,https://github.com/s0b0lev
// 2,https://github.com/zongUMR
// 3,https://github.com/jkmartindale

// now here's the actual flow, it goes to their profile URLs and grabs their contact information

Expand Down
2 changes: 0 additions & 2 deletions src/samples/6_datatables/6B_datatables.csv

This file was deleted.

23 changes: 11 additions & 12 deletions src/samples/6_datatables/6C_datatables
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@ https://medium.com/tebelorg

// CONTEXT - When TagUI beta was released, someone shared to Hacker News
// and GitHub stars for the project jumped from 2 to 1.5k in a week or so.
// I used this to send an one-time thank you email to all TagUI starrers,
// I used this to send a one-time thank you email to all TagUI starrers,
// but had since stopped using this as it is unsolicited and feels spammy.

// datatables extend the power of repositories files to manage batch automation
// datatable has 2 or more columns, for example below (headers up to you to name)
// data-centric approach with rows representing data fields (usually row = test case)
// TagUI loops through each column to automate using values from different datasets
// when running TagUI, specify datatable csv to use, eg tagui 6C_datatables user_data.csv
// TagUI loops through each row to run automation using the data from different rows
// for example, echo "GitHub ID - `GITHUB_ID`" in your flow shows GitHub ID - ironman

// contents of 6C_datatables.csv
// file in this format can be from flow 6B using JavaScript, or using Excel transpose function
// TLE may also be useful to do this programmatically (another open-source project from TA)
// 6C_SENDMAIL,#1,#2,#3
// GITHUB_ID,ironman,batman,superman
// USER_EMAIL,tony@stark.org,bruce@wayne.org,clarke@kent.org
// echo '`[iteration]`' can be used in your flow to show the current iteration number
// a file tagui_datatable.csv will be created in tagui/src folder for TagUI internal use

// contents of user_data.csv
// #,GITHUB_ID,USER_EMAIL
// 1,ironman,tony@stark.org
// 2,batman,bruce@wayne.org
// 3,superman,clarke@kent.org

// now here's the actual flow, it uses part of the information from 6B to email using API

Expand Down
3 changes: 0 additions & 3 deletions src/samples/6_datatables/6C_datatables.csv

This file was deleted.

4 changes: 4 additions & 0 deletions src/samples/6_datatables/page_data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#,page_no
1,1
2,2
3,3
4 changes: 4 additions & 0 deletions src/samples/6_datatables/url_data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#,user_url
1,https://github.com/s0b0lev
2,https://github.com/zongUMR
3,https://github.com/jkmartindale
4 changes: 4 additions & 0 deletions src/samples/6_datatables/user_data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#,GITHUB_ID,USER_EMAIL
1,ironman,tony@stark.org
2,batman,bruce@wayne.org
3,superman,clarke@kent.org

0 comments on commit a158610

Please sign in to comment.