1

My teacher requested me to make this to a github project: Each time the user wants to commit something, he needs to specify an issue that was created on github to associate the commit with the issue. If he commits something without associating any issue, the system should not let the commit be done. In other words: You can ONLY commit if you associate an issue with the commit.

Is it possible to do this with a java project with maven? And what about a web project with maven?

manojlds
  • 290,304
  • 63
  • 469
  • 417

1 Answers1

0

Github does not allow you to create a pre-receive hook such that you can look at commits and ensure that they are linked to issues.

You can probably go the pull request route and merge only commits that have the proper format.

manojlds
  • 290,304
  • 63
  • 469
  • 417