mirror of
https://github.com/servo/servo.git
synced 2025-07-08 16:03:40 +01:00
Print as JSON
This commit is contained in:
parent
8d6e17db09
commit
ed3c23d2f0
1 changed files with 1 additions and 4 deletions
|
@ -2,13 +2,10 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import pprint
|
|
||||||
import taskcluster
|
import taskcluster
|
||||||
|
|
||||||
event = json.loads(os.environ["GITHUB_EVENT"])
|
event = json.loads(os.environ["GITHUB_EVENT"])
|
||||||
print("GitHub event:")
|
print("GitHub event:\n%s\n" % json.dumps(event, sort_keys=True, indent=4, separators=(',', ': ')))
|
||||||
pprint.pprint(event)
|
|
||||||
print("")
|
|
||||||
|
|
||||||
task_id = taskcluster.slugId()
|
task_id = taskcluster.slugId()
|
||||||
payload = {
|
payload = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue