github / github/platform-samples

Get repo default branch

Open
#760 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
2.2k
Forks
1.9k
Avg merge
7d 19h
Merged PRs (30d)
1

Description

Hi,
Is it possible to get the repo's default branch with sql query?

In this script, it only list the protect branch info, but there is no default branch information.
sql/audit/repos-audit.sql

Anybody know which table store the default branch data ?

Thanks

Contributor guide

Open the contributing guide

Research direction

Start with sql/audit/repos-audit.sql and trace the tables and fields used for protected-branch information. Determine whether the repository default branch is available through the same queryable data, then update the audit script only if the required source is identified and verify that its output includes the default branch.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.