mantisbt-plugins / source-integration

Source control integration plugin framework for MantisBT, including support for Github, Gitlab, Bitbucket, Gitea, Gitweb, Cgit, Subversion, Mercurial and more
http://noswap.com/projects/source-integration/
MIT License
181 stars 130 forks source link

GitHub precommit() processes other repository types #366

Closed dregad closed 3 years ago

dregad commented 3 years ago

The SourceGitHub plugin's precommit() function retrieves all repositories where the info field contains the name of the repository referenced in the payload.

This may result in processing of other VCS repositories, leading to errors or system warnings, e.g. if a GitHub-specific key such as hub_reponame does not exist in the repository's info.