AllowMergeCommit field in Repository struct #39758
Replies: 2 comments 1 reply
-
Are you referring to the GraphQL API, and do you mean gh api graphql --raw-field query='{ __type(name: "Repository") { fields { name description}}}' | jq '.data.__type.fields[] | join(" - ")' | grep -i merge
"autoMergeAllowed - Whether or not Auto-merge can be enabled on pull requests in this repository."
"deleteBranchOnMerge - Whether or not branches are automatically deleted when merged in this repository."
"mergeCommitAllowed - Whether or not PRs are merged with a merge commit on this repository."
"mergeCommitMessage - How the default commit message will be generated when merging a pull request."
"mergeCommitTitle - How the default commit title will be generated when merging a pull request."
"rebaseMergeAllowed - Whether or not rebase-merging is enabled on this repository."
"squashMergeAllowed - Whether or not squash-merging is enabled on this repository."
"squashMergeCommitMessage - How the default commit message will be generated when squash merging a pull request."
"squashMergeCommitTitle - How the default commit title will be generated when squash merging a pull request."
"viewerDefaultMergeMethod - The last used merge method by the viewer or the default for the repository." |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Even if AllowMergeCommit field is equal to nil or false , i'm still able to merge commit.
can someone explain me what this field means? and do we have in rest api info about: push access and merge access?
Beta Was this translation helpful? Give feedback.
All reactions