1
0
Fork 0
llvm-premerge-checks/scripts/phabtalk/phabtalk.py
2019-10-14 09:07:34 +02:00

18 lines
No EOL
372 B
Python
Executable file

#!/usr/bin/env python3
from phabricator import Phabricator
class PhabTalk:
def __init__(self):
self._phab = Phabricator()
def get_revision_id
def main(phid: str, diff: str):
result = phab.differential.querydiffs(ids=[diff])
return 'D'+result[diff]['revisionID'])
if __name__ == '__main__':
main('PHID-HMBT-vitgimipuq4ntrmacw67','223623')