I hereby claim:
- I am orthros on github.
- I am orthros (https://keybase.io/orthros) on keybase.
- I have a public key ASAKv5nIr40wrphhVOo51bjTqfjKOnAEpxbmQCytpSv9IQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| function worker(x) { | |
| console.log("Look at me I'm calling some function"); | |
| if('someFunction' in x) { | |
| x.someFunction(); | |
| } | |
| else{ | |
| console.log("Wait... there's nothing here"); | |
| } | |
| }; |
| const client = new stitch.StitchClient(APP_ID); | |
| const db = client.service('mongodb', 'mongodb-atlas') | |
| .db(APP_DB); | |
| function displayIssuesOnLoad() { | |
| client.authenticate('apiKey', APP_API_KEY) | |
| .then(displayIssues); | |
| } | |
| function displayIssues() { |
| const APP_ID = "githubissuelist-lkmxz"; | |
| const APP_DB = 'ghdata'; | |
| const APP_COLLECTION = 'issues'; | |
| const APP_API_KEY = '<YOUR API KEY HERE>'; |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |
| <script src="../static/scripts/stitch.min.js"></script> | |
| <script src="../static/scripts/config.js"></script> | |
| <script> | |
| displayIssuesOnLoad() { | |
| //Connect to stitch then display issues | |
| } | |
| displayIssues(){ |
| { | |
| "expression": { | |
| "owner_id": "<API USER ID HERE>", | |
| "issue": "%%vars.issue" | |
| } | |
| } |
| { | |
| "issue": "%%item" | |
| } |
| { | |
| "projection": { | |
| "issue.html_url": 1, | |
| "issue.id": 1, | |
| "issue.title": 1, | |
| "issue.comments": 1, | |
| "issue.created_at": 1, | |
| "repository.name": 1, | |
| "repository.html_url": 1, | |
| } |
| { | |
| "expression": { | |
| "issue": { | |
| "%exists": true | |
| } | |
| }, | |
| "action": { | |
| "%in": [ | |
| "opened" | |
| ] |
| { | |
| "pull_request":{ | |
| }, | |
| "action":"closed" | |
| } |