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

Gitlab: Undefined array key "project_id" warning #370

Closed dregad closed 3 years ago

dregad commented 3 years ago

When both a GitHub and a GitLab repo are defined in the same instance, and a GitHub webhook triggers a checkin operation, GitLab's precommit() attempts to process the GitHub payload.

Since that does not have the _projectid key, PHP throws SYSTEM WARNING: 'Undefined array key "project_id"' in '/path.to/mantisbt/plugins/source-integration/SourceGitlab/SourceGitlab.php' line 215