Skip to content

Gitlab: Undefined array key "project_id" warning #370

@dregad

Description

@dregad

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 project_id key, PHP throws
SYSTEM WARNING: 'Undefined array key "project_id"' in '/path.to/mantisbt/plugins/source-integration/SourceGitlab/SourceGitlab.php' line 215

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions