HomePhabricator

Add GitHubMessageValidator and add logic to switch the MessageValidator
63c561bb6ac3Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Add GitHubMessageValidator and add logic to switch the MessageValidator

Add GitHubMessageValidator and add logic
to detect the remote repo and switch the MessageValidator
to the appropriate MessageValidator, e.g repo with remote
GitHub will be checked with GitHubMessageValidator, and
repo with remote Gerrit will be checked with GerritMessageValidator.

This commit also modifies the way how the tests work,
the tests/data directory has subdirectories
that's where the tests for each MessageValidator
is put in.

Bug: T179905
Change-Id: I990c6d7ac313292e929b1c1aba2e6b9e19fb3e7d

Details

Provenance
rafidaslamAuthored on Jan 14 2018, 2:49 PM
ChangeId
I990c6d7ac313292e929b1c1aba2e6b9e19fb3e7d

Commit No Longer Exists

This commit no longer exists in the repository.