INNER CODE UNIT · Python

gh_fetch_release

bitwarden/android · .github/scripts/gh_release_update_issues.py:47

def gh_fetch_release(repo: str, release_tag: str) -> Tuple[str, str]:
    result = subprocess.run(
        ['gh', 'release', 'view', release_tag, '--repo', repo, '--json', 'name,body'],
        capture_output=True, text=True, check=True
    )
    data = json.loads(result.stdout)
    return data['name'], data['body']

def gh_comment_issue(repo: str, issue_number: int, comment: str) -> None:
    """Use GitHub CLI to comment on an issue.
    """
    subprocess.run([
        'gh', 'issue', 'comment', str(issue_number), '--body', comment, '--repo', repo
    ], check=True)

def gh_fetch_linked_issues_batched(owner: str, repo_name: str, pr_numbers: List[int]) -> Dict[int, List[int]]:
    """Batch-fetch linked issues for all PRs in a single GraphQL call.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…