Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 2.39 KB

File metadata and controls

61 lines (45 loc) · 2.39 KB

Remove app restrictions of protected branch

Table of contents

  1. Docs
  2. Quick start
  3. Inputs
  4. Outputs

Docs

Original documentation: https://developer.github.com/v3/repos/branches/#remove-app-restrictions-of-protected-branch

Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see GitHub's products in the GitHub Help documentation.

Removes the ability of an app to push to this branch. Only installed GitHub Apps with write access to the contents permission can be added as authorized actors on a protected branch.

Type Description
array The GitHub Apps that have push access to this branch. Use the app's slug. Note: The list of users, apps, and teams in total is limited to 100 items.

Quick start

- uses: maxkomarychev/octions/octions/repos/remove-protected-branch-app-restrictions@master
  id: my_step_id
  with:
    token: <token value>
    branch: <branch value>
- name: Print outputs
  run: |
    echo ${{ steps.my_step_id.outputs.id }}
    echo ${{ steps.my_step_id.outputs.number }}
    echo ${{ steps.my_step_id.outputs.status }}

Inputs

Name Is required Description
token true Token to authenticate the request
owner false owner parameter
repo false repo parameter
branch true branch parameter
file_output false Path to store full output of the action
custom_outputs false Custom outputs to create for step. This has to be YAML multiline string literal custom_outputs: |<newline> output_name:path.in.result

Outputs

Name Description
id id field of the response (if exists)
number number field of the response (if exists)
status HTTP status of underlying API call