Get git repo information like current branch, last committer, etc.
{ "plugin": { "register": "hapi-info" } }
await server.register({
plugin: require('hapi-git-repo-info')
});
Copy the index.js file to your repo and perform the below action
manifest.register.plugins.push({
plugin: require("./plugins/hapi-branch")
});