Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy somewhere to allow usage :-) #17

Closed
mithro opened this issue Oct 31, 2017 · 8 comments
Closed

Deploy somewhere to allow usage :-) #17

mithro opened this issue Oct 31, 2017 · 8 comments

Comments

@mithro
Copy link
Owner

mithro commented Oct 31, 2017

I'd love to use it even with just the basic simple functionality.

See https://github.com/mithro/HDMI2USB-litex-firmware/blob/probot-autolabeler/.github/autolabeler.yml for example :-)

@johnbillion
Copy link

johnbillion commented Oct 31, 2017

Edit: Sorry, wrong thread.

@bkeepers
Copy link
Contributor

@mithro you're welcome to deploy this. There are several hosts that you can run it for free on.

@grrowl
Copy link

grrowl commented Nov 30, 2017

I think he means to publish on NPM, so other probots can require('probot-autolabeler')(robot) :)

edit: actually he probably doesn't >_<. For those who are including this in an existing project, I can confirm npm install probot/autolabeler and the above require statement works

@mithro
Copy link
Owner Author

mithro commented Nov 30, 2017

Actually I did mean just deploy it so I don't have to host it myself :-P

@mithro
Copy link
Owner Author

mithro commented Jan 16, 2018

I've tried following the instructions at https://probot.github.io/docs/deployment/ and have created a Glitch App but I'm having trouble understanding why it is broken / not working.

I've set LOG_LEVEL=debug in the environment and see the following in the logs;

�[90m10:25:22.826Z�[39m �[90mDEBUG�[39m probot: �[36mGitHub request: GET /app/installations - 200 OK�[39m
9:25 PM

�[90m  params: {
9:25 PM

    "per_page": 100
9:25 PM

  }
9:25 PM

18 minutes ago

�[39m�[90m10:25:22.949Z�[39m �[90mDEBUG�[39m probot: �[36mGitHub request: POST /installations/:installation_id/access_tokens - 201 Created�[39m�[90m (installation=80633)�[39m
9:25 PM

�[90m  params: {
9:25 PM

    "installation_id": 80633
9:25 PM

  }
9:25 PM

�[39m�[90m10:25:23.858Z�[39m �[32m INFO�[39m probot: �[36mGET / 302 - 10.47 ms�[39m�[90m (id=c9829903db89cca3)�[39m
9:25 PM

�[90m10:25:23.941Z�[39m �[90mDEBUG�[39m probot: �[36mGitHub request: GET /installation/repositories - 200 OK�[39m�[90m (installation=80633)�[39m
9:25 PM

�[90m  params: {
9:25 PM

    "per_page": 100
9:25 PM

  }
9:25 PM

�[39m�[90m10:25:24.180Z�[39m �[32m INFO�[39m probot: �[36mGET /probot 200 - 82.75 ms�[39m�[90m (id=25aaa254aa952c64)�[39m
9:25 PM

�[90m10:25:24.479Z�[39m �[32m INFO�[39m probot: �[36mGET /primer.css 304 - 3.88 ms�[39m�[90m (id=b8e6288faf7099ab)�[39m
9:25 PM

�[90m10:25:24.491Z�[39m �[32m INFO�[39m probot: �[36mGET /robot.svg 304 - 0.65 ms�[39m�[90m (id=b0cd64f7d035fcb8)�[39m
9:25 PM

�[90m10:43:17.910Z�[39m �[32m INFO�[39m probot: �[36mPOST /probot 404 - 3.49 ms�[39m�[90m (id=8d1850b98c3964e6)�[39m
9:43 PM

And the app is at https://github.com/apps/autolabeler

I'm sure I have just done something stupid :-P

Probot
GitHub Apps to automate and improve your workflow
GitHub
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 75 million projects.

@mithro
Copy link
Owner Author

mithro commented Jan 16, 2018

Getting closer I think...

�[39m�[90m10:59:10.605Z�[39m �[32m INFO�[39m probot: �[36mPOST / 200 - 1.43 ms�[39m�[90m (id=a2219f5b2b5621a1)�[39m
9:59 PM

�[90m10:59:47.332Z�[39m �[32m INFO�[39m probot: �[36mWebhook received�[39m
9:59 PM

�[90m  event: {
9:59 PM

    "id": "5d936870-faac-11e7-9030-339d1b59f0ba",
9:59 PM

    "event": "pull_request.opened",
9:59 PM

    "repository": "mithro/HDMI2USB-litex-firmware",
9:59 PM

    "installation": 80633
9:59 PM

  }
9:59 PM

�[39m�[90m10:59:47.333Z�[39m �[32m INFO�[39m probot: �[36mPOST / 200 - 1.26 ms�[39m�[90m (id=e3e84ec6f5203334)�[39m
9:59 PM

�[90m10:59:47.412Z�[39m �[90mDEBUG�[39m probot: �[36mGitHub request: GET /repos/:owner/:repo/contents/:path - 200 OK�[39m�[90m (id=5d936870-faac-11e7-9030-339d1b59f0ba, installation=80633)�[39m
9:59 PM

�[90m  params: {
9:59 PM

    "owner": "mithro",
9:59 PM

    "repo": "HDMI2USB-litex-firmware",
9:59 PM

    "path": ".github/autolabeler.yml"
9:59 PM

  }
9:59 PM

�[39m�[90m10:59:47.849Z�[39m �[32m INFO�[39m probot: �[36mWebhook received�[39m
9:59 PM

�[90m  event: {
9:59 PM

    "id": "5e05b15a-faac-11e7-8cf2-a5f56c2409e5",
9:59 PM

    "event": "status",
9:59 PM

    "repository": "mithro/HDMI2USB-litex-firmware",
9:59 PM

    "installation": 80633
9:59 PM

  }
9:59 PM

�[39m�[90m10:59:47.849Z�[39m �[32m INFO�[39m probot: �[36mPOST / 200 - 39.99 ms�[39m�[90m (id=18048354c177cb20)�[39m
9:59 PM

�[90m10:59:48.407Z�[39m �[90mDEBUG�[39m probot: �[36mGitHub request: GET /repos/:owner/:repo/pulls/:number/files - 200 OK�[39m�[90m (id=5d936870-faac-11e7-9030-339d1b59f0ba, installation=80633)�[39m
9:59 PM

�[90m  params: {
9:59 PM

    "number": 57,
9:59 PM

    "owner": "mithro",
9:59 PM

    "repo": "HDMI2USB-litex-firmware"
9:59 PM

  }
9:59 PM

�[39m�[90m10:59:48.408Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes board-arty [ 'targets/arty', 'platforms/arty.py' ]�[39m
9:59 PM

�[90m10:59:48.409Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes board-atlys [ 'targets/atlys', 'platforms/atlys.py' ]�[39m
9:59 PM

�[90m10:59:48.410Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes board-mimasv2 [ 'targets/mimasv2', 'platforms/mimasv2.py' ]�[39m
9:59 PM

�[90m10:59:48.410Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes board-minispartan6 [ 'targets/minispartan6', 'platforms/minispartan6.py' ]�[39m
9:59 PM

�[90m10:59:48.410Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes board-netv2 [ 'targets/netv2', 'platforms/netv2.py' ]�[39m
9:59 PM

�[90m10:59:48.411Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes board-nexys-video [ 'targets/nexys-video', 'platforms/nexys-video.py' ]�[39m
9:59 PM

�[90m10:59:48.411Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes board-opsis [ 'targets/opsis', 'platforms/opsis.py', 'platforms/tofe_*.py' ]�[39m
9:59 PM

�[90m10:59:48.412Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes board-pipstrello [ 'targets/pipstrello', 'platforms/pipstrello.py' ]�[39m
9:59 PM

�[90m10:59:48.412Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes boards-all [ 'targets/common/' ]�[39m
9:59 PM

�[90m10:59:48.412Z�[39m �[32m INFO�[39m probot:
9:59 PM

�[90m  �[36mlooking for changes boards-artix7 [ 'targets/arty',
9:59 PM

    'platforms/arty.py',
9:59 PM

    'targets/netv2',
9:59 PM

    'platforms/netv2.py',
9:59 PM

    'targets/nexys-video',
9:59 PM

    'platforms/nexys-video.py' ]�[39m
9:59 PM

�[39m�[90m10:59:48.413Z�[39m �[32m INFO�[39m probot:
9:59 PM

�[90m  �[36mlooking for changes boards-spartan6 [ 'targets/atlys',
9:59 PM

    'platforms/atlys.py',
9:59 PM

    'targets/mimasv2',
9:59 PM

    'platforms/mimasv2.py',
9:59 PM

    'targets/minispartan6',
9:59 PM

    'platforms/minispartan6.py',
9:59 PM

    'targets/opsis',
9:59 PM

    'platforms/opsis.py',
9:59 PM

    'targets/pipstrello',
9:59 PM

    'platforms/pipstrello.py' ]�[39m
9:59 PM

�[39m�[90m10:59:48.413Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes firmware-fpga [ 'gateware/' ]�[39m
9:59 PM

�[90m10:59:48.413Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes firmware-softcpu [ 'firmware/' ]�[39m
9:59 PM

�[90m10:59:48.414Z�[39m �[32m INFO�[39m probot:
9:59 PM

�[90m  �[36mlooking for changes hdmi2ethernet [ 'targets/*/net.py',
9:59 PM

    'targets/*/hdmi2eth.py',
9:59 PM

    'firmware/uip/',
9:59 PM

    'third_party/libuip/' ]�[39m
9:59 PM

�[39m�[90m10:59:48.414Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes hdmi2usb [ 'targets/*/hdmi2usb.py', 'gateware/encoder/' ]�[39m
9:59 PM

�[90m10:59:48.415Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes hdmi2*** [ 'targets/*/base.py' ]�[39m
9:59 PM

�[90m10:59:48.415Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes level-docs [ 'docs/', 'README.md', '*.md' ]�[39m
9:59 PM

�[90m10:59:48.415Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes level-firmware [ 'gateware/', 'firmware/' ]�[39m
9:59 PM

�[90m10:59:48.415Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes level-infrastructure [ '.travis.yml', '.travis/', 'scripts/', '.github/' ]�[39m
9:59 PM

�[90m10:59:48.416Z�[39m �[32m INFO�[39m probot: �[36mlooking for changes level-software [ 'software/' ]�[39m
9:59 PM

�[90m10:59:48.416Z�[39m �[32m INFO�[39m probot: �[36mAdding labels [ 'hdmi2***' ]�[39m
9:59 PM

�[90m10:59:49.462Z�[39m �[90mDEBUG�[39m probot: �[36mGitHub request: POST /repos/:owner/:repo/issues/:number/labels - 200 OK�[39m�[90m (id=5d936870-faac-11e7-9030-339d1b59f0ba, installation=80633)�[39m
9:59 PM

�[90m  params: {
9:59 PM

    "number": 57,
9:59 PM

    "owner": "mithro",
9:59 PM

    "repo": "HDMI2USB-litex-firmware",
9:59 PM

    "labels": [
9:59 PM

      "hdmi2***"
9:59 PM

    ]
9:59 PM

  }
9:59 PM

�[39m�[90m10:59:49.633Z�[39m �[32m INFO�[39m probot: �[36mWebhook received�[39m
9:59 PM

�[90m  event: {
9:59 PM

    "id": "5f0e2190-faac-11e7-872a-18a8af562021",
9:59 PM

    "event": "pull_request.labeled",
9:59 PM

    "repository": "mithro/HDMI2USB-litex-firmware",
9:59 PM

    "installation": 80633
9:59 PM

  }
9:59 PM

�[39m�[90m10:59:49.633Z�[39m �[32m INFO�[39m probot: �[36mPOST / 200 - 37.51 ms�[39m�[90m (id=be388cc39302b333)�[39m
9:59 PM

@mithro
Copy link
Owner Author

mithro commented Feb 26, 2018

It now seems to be working regularly for me!

@mithro
Copy link
Owner Author

mithro commented Feb 26, 2018

image

My config file can be found here -> https://github.com/timvideos/HDMI2USB-litex-firmware/blob/master/.github/autolabeler.yml

The app can be found here -> https://github.com/apps/probot-autolabeler

GitHub
HDMI2USB-litex-firmware - A version of the HDMI2USB firmware based around LiteX tools produced by @enjoy-digital (based on misoc+migen created by @m-labs)
GitHub
GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 79 million projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants