Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access classifiers for linked artifact from Heuristic #194

Open
hlibbabii opened this issue Jun 16, 2021 · 0 comments
Open

Access classifiers for linked artifact from Heuristic #194

hlibbabii opened this issue Jun 16, 2021 · 0 comments

Comments

@hlibbabii
Copy link
Member

Let's consider an example:

@Heuristic(Commit)
def testfix_if_all_test_files(commit: Commit) -> Optional[Labels]:
    for file in commit.files:
        file.label !=CommitFileLabel.TestFile:
            return None
    return CommitLabel.TestFix

TBD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant