Commit Graph

78 Commits

Author SHA1 Message Date
Brandon Keepers 65eaf9300b
Reimplement workflow with new plugin system 2016-11-22 22:44:24 -06:00
Brandon Keepers d67e637bb1
Merge branch 'master' into pure-js-implemented-refactored
* master: (33 commits)
  Simplify event filter logic
  Move logic for filtering workflows
  add label example
  Remove reactions, which are not supported by integrations
  Use installation id from webhook
  Create robot module
  Update github client library
  Remove listening for invites
  Move vm code into sandbox
  GITHUB_TOKEN only needed for console
  Log unhandled errors
  Warn that reactions does not work
  Update docs on running app locally
  Ignore .env
  Add debugging
  Fix lint errors
  Remove useless tests
  Clean up installation implementation
  Ignore priate-key.pem
  Remove unused github api instance
  ...
2016-11-22 19:48:54 -06:00
Brandon Keepers 2d2b8b00f6
Move logic for filtering workflows 2016-11-22 12:26:43 -06:00
Brandon Keepers 90708f3fba
Remove reactions, which are not supported by integrations 2016-11-20 21:31:36 -06:00
Brandon Keepers a8d73722a2
Merge remote-tracking branch 'origin/master' into integration
* origin/master: (65 commits)
  Move vm code into sandbox
  Update docs
  Look for config in .probot.js
  Remove URL stuff for now
  Use handlebars in comment templates
  Remove unnecessary semicolon
  Extract Sanbox class, remove workflows.push
  Move evaluator to its own file
  Remove unused modules
  More style fixes
  Fix style
  Reimplement reactions
  Implement unlock
  Implement locking
  Implement open
  Implement unlabel
  Implement unassign
  Implement issue assignment
  Implement comment test
  Move label tests into plugin
  ...
2016-11-18 14:51:23 -06:00
Matt Colyer f9d7d5eabe
Cleanup evaluator plugin interface 2016-11-18 10:00:34 -08:00
Brandon Keepers 0c237b4fce
Look for config in .probot.js 2016-11-17 22:09:20 -06:00
Brandon Keepers e7a197f6a1
Use handlebars in comment templates 2016-11-17 21:42:51 -06:00
Brandon Keepers 1bae707257
Extract Sanbox class, remove workflows.push 2016-11-17 21:05:49 -06:00
Matt Colyer db87bcec17
More style fixes 2016-11-17 13:26:58 -08:00
Matt Colyer 11040392e2
Fix style 2016-11-17 12:16:13 -08:00
Matt Colyer 4d068ce491
Reimplement reactions 2016-11-17 12:09:26 -08:00
Matt Colyer 7976c94ae7
Implement unlock 2016-11-17 12:00:08 -08:00
Matt Colyer 24d2c21420
Implement locking 2016-11-17 11:57:28 -08:00
Matt Colyer af85ae1bee
Implement open 2016-11-17 11:52:12 -08:00
Matt Colyer 8d965b1ce9
Implement unlabel 2016-11-17 11:47:03 -08:00
Matt Colyer f0f44afadc
Implement unassign 2016-11-17 11:38:56 -08:00
Matt Colyer 5b68c71d72
Implement issue assignment 2016-11-17 11:25:27 -08:00
Matt Colyer 3802c1d115
Implement comment test 2016-11-17 11:20:40 -08:00
Matt Colyer 0a060b670d
Move label tests into plugin 2016-11-17 11:17:05 -08:00
Matt Colyer 09f0d7fa11
Add issues plugin test 2016-11-17 11:08:18 -08:00
Matt Colyer 9348b522c0
Fix configuration tests 2016-11-17 10:22:44 -08:00
Matt Colyer 2d567034d2
Fix dispatcher tests 2016-11-17 09:37:40 -08:00
Brandon Keepers fea4f2cc8a
Refactor args 2016-11-03 23:11:29 -05:00
Brandon Keepers f252b79af9
Clean up parser implementation 2016-11-03 23:11:28 -05:00
Brandon Keepers e6f523efdb
logical-expression => binary-expression 2016-11-03 21:25:10 -05:00
Brandon Keepers fb59548881
Implement negation 2016-11-03 20:33:24 -05:00
Brandon Keepers f0ec15aa19
Move files that are not conditions 2016-10-30 11:42:49 -05:00
Brandon Keepers 1ab58d32f1
Add pegjs-util and asty, consolidate uses of parser 2016-10-29 14:41:27 -05:00
Brandon Keepers 6ba47b439d
Fix operator precidence 2016-10-29 12:33:42 -05:00
Brandon Keepers 6381f8e80b
Add "is", "is not", and "contains" 2016-10-29 11:01:02 -05:00
Brandon Keepers deb87a4589
Add matches operator and refactor 2016-10-29 08:18:29 -05:00
Brandon Keepers 0ed8c8c106
Support n logical expressions 2016-10-28 23:09:23 -05:00
Brandon Keepers a16d38982a
Add logical and 2016-10-28 21:09:18 -05:00
Brandon Keepers 05b2786777
Add logical or 2016-10-28 20:17:06 -05:00
Brandon Keepers 7044b4fd95
Refactor conditions 2016-10-28 11:50:46 -04:00
Brandon Keepers 01bd168c2f
rename "then" to "actions" in ast 2016-10-28 11:32:31 -04:00
Brandon Keepers 1572100fff
Fix lint errors 2016-10-28 11:30:10 -04:00
Brandon Keepers f9db96b7fd
Rename "on" to "events" in ast 2016-10-28 11:24:00 -04:00
Brandon Keepers 71542de659
Refactor to add a transformer 2016-10-28 11:18:27 -04:00
Brandon Keepers bf03127fe8
Implement conditions 2016-10-23 23:19:00 -05:00
Brandon Keepers d1844da0d6
Add conditions 2016-10-23 08:17:26 -05:00
Brandon Keepers 9969849fde
Merge remote-tracking branch 'origin/master' into integration
* origin/master: (34 commits)
  Update docs
  Fix lint error
  Add comment syntax
  "or" instead of "and"
  Add instruction to turn on verbose logging
  Update docs
  Fall back to generating parser at runtime
  Fix lint errrors
  Remove yaml dependency
  Use parser in place of yaml syntax
  Fix lint errors
  Behaviors are separated by a semicolon
  Separate events by 'and' instead of comma
  Implement 'then'
  Implement simple actions
  Implement "on" part of the syntax
  Add pegjs as a dev dep
  Document react action
  Remove 'why' section
  No longer aspirational
  ...
2016-10-19 23:48:19 -05:00
Brandon Keepers 5b9146b0b8
Fix lint error 2016-10-19 23:29:24 -05:00
Brandon Keepers 06479a2be5
Add comment syntax 2016-10-19 22:58:11 -05:00
Brandon Keepers 258fe27bdb
"or" instead of "and"
...because @arfon said so
2016-10-19 22:47:03 -05:00
Brandon Keepers e4166cfe29
Fix lint errrors 2016-10-18 00:05:34 -05:00
Brandon Keepers 66451ef3ee
Use parser in place of yaml syntax 2016-10-18 00:03:55 -05:00
Brandon Keepers 0838ce47de
Fix lint errors 2016-10-17 01:42:21 -05:00
Brandon Keepers b4a45bb2a6
Behaviors are separated by a semicolon 2016-10-17 01:38:08 -05:00