File: java.py

package info (click to toggle)
python-azure 20250603%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 851,724 kB
  • sloc: python: 7,362,925; ansic: 804; javascript: 287; makefile: 195; sh: 145; xml: 109
file content (23 lines) | stat: -rw-r--r-- 750 bytes parent folder | download
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', 'haolingdong-msft'}
_JAVA_ASSIGNEE = {'weidongxu-microsoft', 'XiaofeiCao', 'v-hongli1'}


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)