Skip to content

Allow option to pass file mode when opening a PR #32

@LucaLanziani

Description

@LucaLanziani

Proposal to pass file mode when opening a PR:

Use case

PR containing a bash script that should have the executable flag set

Proposal

Allow the files values to be either a string, null or an object.

If the value is an object, the object must contain the key content that can either be a string or null.

The object might contain the mode key that will override the default 100644 mode for the specific file.

Implementation

I've already drafted a possible implementation in case you are willing to accept this change.

https://github.com/LucaLanziani/octokit-create-pull-request/pull/1/files

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions