gr2m / gr2m/octokit-plugin-create-pull-request

Allow option to pass file mode when opening a PR

Open
#32 6 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
TypeScript
Stars
116
Forks
31
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.