Wikimedia

WikiEduDashboard: Create a git pull hook to automatically update the packages and gems

At WikiEduDashboard, there's a constant development and there's a constant changes being made to the versions of the packages or gems we use. Sometimes new packages/gems will be added.

When this happens, we have to manually do bundle install for gems and yarn for npm packages. Not doing this means we end up using the older packages/gems which might throw annoying errors.

This git pull hook will check for changes in the Gemfile or package.json and automatically runs the corresponding command.

You can have a look at https://gist.github.com/sindresorhus/7996717 to have a reference. The official docs are at https://git-scm.com/docs/githooks#_post_merge

The work is to be submitted via a pull request on this repository - https://github.com/WikiEducationFoundation/WikiEduDashboard

Task tags

  • hook
  • git
  • bash

Students who completed this task

minhducsun2002

Task type

  • code Code
close

2019