int-brain-lab / iblrig

Main repository for IBL rig code
https://int-brain-lab.github.io/iblrig/
MIT License
22 stars 22 forks source link

Personal project task versioning #626

Closed k1o0 closed 5 months ago

k1o0 commented 8 months ago

Personal project tasks within the project_extraction repo do not have versioning, which may cause extraction issues when tasks are modified. Perhaps the project_extraction repo version should be stored in the task settings? Or individual tasks can have their own versions. It's likely that people will forget to bump the versions, therefore we need a way to enforce this, such as a pre-commit hook.

k1o0 commented 8 months ago

I've set main to be a protected branch and added two workflows:

  1. On PRs, check that package version is > version tag on main
  2. On merges to main, push the new version tag

The version check must pass before the user can merge their PR.