GitHub

Delete file

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Delete a file in the specified GitHub repository.

Inputs

Champ

Type

Description

repository [required]

string

The github repository, formatted as {owner}/{repo}, in which to perform the changes. Note: the format organization/repo.git is not supported.

baseBranch

string

The base branch of pull request. If not specified, we use the default branch (ex. main). If a new branch is created, it is created off of this branch.

branchWithChanges

string

Branch to create and put this commit on. If the branch already exists, changes will be force pushed. Defaults to datadog-workflow-{{ InstanceId }}

default: datadog-workflow-{{ InstanceId }}

path [required]

string

The path to the file to be deleted.

createPr

boolean

If true, a pull request will be open with your changes. Defaults to true.

default: true

prTitle

string

The title of the pull request to create.

default: [Datadog Workflows] Changes from {{ WorkflowName }}

prDescription

string

The description for the pull request to create.

Outputs

Champ

Type

Description

data [required]

author [required]

string

title [required]

string