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

simplify code contributions + reviews by fully automating the dev setup. #1668

Merged
merged 3 commits into from
Jul 5, 2020

Conversation

nisarhassan12
Copy link

Fixes #1665

Hi!

This Pr simplifies code contributions by fully automating the dev setup with Gitpod(An online VS Code like IDE). With a single click, it'll launch a workspace and automatically:

  • clone the repo.
  • install the dependencies.
  • run npm start.

You can give it a try on my fork of the repo via the following link:

https://gitpod.io/#https://github.com/nisarhassan12/image-sequencer/

This is how it looks:

image

Also for having these review comments in PRs and pre-built workspaces, the Gitpod App has to be installed https://github.com/apps/gitpod-io I have added the configuration required you just have to install the app.

image

The app can only be installed by individual developers on their own account (i.e. there is no org billing or so). It can then be enabled/disabled & configured for any accounts or organizations that the developer maintains:

image

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with npm run test-all
  • code is in uniquely-named feature branch and has no merge conflicts
  • PR is descriptively titled
  • ask @publiclab/is-reviewers for help, in a comment below
  • Insert-step functionality is working correct as expected.

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Please make sure to get at least two reviews before asking for merging the PR as that would make the PR more reliable on our part
Thanks!

@welcome
Copy link

welcome bot commented May 1, 2020

Thanks for opening this pull request!
There may be some errors, but don't worry! We're here to help! 👍🎉😄

@nisarhassan12
Copy link
Author

Also, there are some errors when the npm run setup command is run:

image

and the test suite is not working although I have not made any change to the JS and so:

image

@codecov
Copy link

codecov bot commented May 1, 2020

Codecov Report

Merging #1668 into main will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1668   +/-   ##
=======================================
  Coverage   65.42%   65.42%           
=======================================
  Files         132      132           
  Lines        2742     2742           
  Branches      438      438           
=======================================
  Hits         1794     1794           
  Misses        948      948           

@jywarren
Copy link
Member

jywarren commented Jul 5, 2020

Oh my gosh, this is amazing! I'm so sorry to have missed this, things have been very busy and also... pandemic and such. Thank you for your patience. Do you see these same errors happening in Travis? Perhaps it has to do with node version? Wait, travis is stalled, so let me try to get that running again.

This is super appreciated as it will really help us review PRs in an efficient way!

@gitpod-io
Copy link

gitpod-io bot commented Jul 5, 2020

@jywarren
Copy link
Member

jywarren commented Jul 5, 2020

Ooohhhhhhhh......

@jywarren
Copy link
Member

jywarren commented Jul 5, 2020

@jywarren
Copy link
Member

jywarren commented Jul 5, 2020

Merging!

@jywarren jywarren merged commit feba2e7 into publiclab:main Jul 5, 2020
@welcome
Copy link

welcome bot commented Jul 5, 2020

Congrats on merging your first pull request! 🙌🎉⚡️
Your code will be published to https://beta.sequencer.publiclab.org in a day or two.
In the meantime, can you tell us your Twitter handle so we can thank you properly?
Now that you've completed this, you can help someone else take their first step!
See: Public Lab's coding community!

@jywarren
Copy link
Member

jywarren commented Jul 5, 2020

cc @publiclab/is-reviewers @publiclab/image-sequencer-guides check this out! It should hopefully make our reviewing MUCH easier and get things moving again a bit more :-) ❤️

@jywarren
Copy link
Member

jywarren commented Jul 5, 2020

@sashadev-sky maybe we ought to do this for https://github.com/publiclab/Leaflet.DistortableImage/ ?

@jywarren
Copy link
Member

jywarren commented Jul 5, 2020

Ah - one more thing - do we need to change master to main here? I'll try in a new PR.

@jywarren
Copy link
Member

jywarren commented Jul 5, 2020

#1680

jywarren added a commit to publiclab/Leaflet.DistortableImage that referenced this pull request Jul 5, 2020
@jywarren
Copy link
Member

jywarren commented Jul 5, 2020

Ah, i do see that although GitPod is building it, it is not passing tests (though Travis is, or is at least ignoring failed tests). I'll open an issue.

@jywarren
Copy link
Member

jywarren commented Jul 7, 2020

OK, doing follow-up in #1681 and #1685!

@jywarren
Copy link
Member

Hello @nisarhassan12, i'm sorry to bother you -- I've been trying to get this to activate on jywarren/woofmark#16, and have approved the GitPod app on my jywarren personal account, but it just doesn't show up in a comment by the bot! Do you have any idea what I'm doing wrong?

Thank you! ❤️ 🤖

@nisarhassan12
Copy link
Author

Thanks, @jywarren I'm also not sure yet. I'll try to figure out and will try to let you know.

@nisarhassan12
Copy link
Author

I have replied jywarren/woofmark#16 (comment).

@sashadev-sky
Copy link
Member

@jywarren definitely agree we need make some updates to our development workflow in LDI. I'll add this as a "todo" and look into it later!

sashadev-sky pushed a commit to publiclab/Leaflet.DistortableImage that referenced this pull request Jul 25, 2020
* Try setting up gitpod

Building on example at publiclab/image-sequencer#1668

* Update .gitpod.yml
@sashadev-sky
Copy link
Member

@sashadev-sky maybe we ought to do this for https://github.com/publiclab/Leaflet.DistortableImage/ ?

@jywarren Looks like you got ahead and did it yourself! Awesome Thank you

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

Successfully merging this pull request may close these issues.

Auto-generate testable demos from all pull requests with GitPod.io
3 participants