MCPcopy Create free account
hub / github.com/DataDog/datadog-agent / get_pulls

Method get_pulls

tasks/libs/common/github_api.py:77–88  ·  view source on GitHub ↗
(self, milestone=None, labels=None)

Source from the content-addressed store, hash-verified

75 return None
76
77 def get_pulls(self, milestone=None, labels=None):
78 if milestone is None:
79 m = GithubObject.NotSet
80 else:
81 m = self.get_milestone_by_name(milestone)
82 if not m:
83 print(f'Unknown milestone {milestone}')
84 return None
85 if labels is None:
86 labels = []
87 issues = self._repository.get_issues(milestone=m, state='all', labels=labels)
88 return [i.as_pull_request() for i in issues if i.pull_request is not None]
89
90 def get_tags(self, pattern=""):
91 """

Callers 1

list_major_changeFunction · 0.95

Calls 2

get_milestone_by_nameMethod · 0.95
printFunction · 0.85

Tested by

no test coverage detected