File: java.py

package info (click to toggle)
python-azure 20251118%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 783,356 kB
  • sloc: python: 6,474,533; ansic: 804; javascript: 287; sh: 205; makefile: 198; xml: 109
file content (23 lines) | stat: -rw-r--r-- 737 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from common import IssueProcess, Common
from typing import Any, List

# assignee dict which will be assigned to handle issues
_JAVA_OWNER = {"azure-sdk"}
_JAVA_ASSIGNEE = {"weidongxu-microsoft", "haolingdong-msft", "XiaofeiCao"}


class IssueProcessJava(IssueProcess):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.language_name = "java"


class Java(Common):
    def __init__(self, issues, language_owner, sdk_assignees):
        super(Java, self).__init__(issues, language_owner, sdk_assignees)
        if not self.for_test():
            self.file_out_name = "release_java_status.md"


def java_process(issues: List[Any]) -> Java:
    return Java(issues, _JAVA_OWNER, _JAVA_ASSIGNEE)