Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

buggless_if_one_file_markdown_ext.py 590 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  1. from typing import Optional
  2. from bohrapi.artifacts import Commit
  3. from bohrapi.core import Heuristic
  4. from bohrapi.util.extensiontypes import code_extensions, passive_code_extensions
  5. from bohrlabels.core import OneOrManyLabels
  6. from bohrlabels.labels import CommitLabel
  7. @Heuristic(Commit)
  8. def buggless_if_one_file_markdown_ext(commit: Commit) -> Optional[OneOrManyLabels]:
  9. if len(commit.commit_files) != 1:
  10. return None
  11. filename = str(commit.commit_files[0].filename)
  12. if filename.split(".")[-1] == "md":
  13. return CommitLabel.NonBugFix
  14. else:
  15. return None
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...