[DO NOT MERGE] experiment: configure auto-formatting for all PRs question mark? #1130
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is an experiment to see if the
GITHUB_TOKEN
associated with this repo has the permissions it needs in order to write commits to forks.More specifically, I wanted to find out if the options I recommended in #1104 are even feasible.
It configures a job in the
build-docs
workflow namedauto-format
. This job runsnpm run format
against the branch, then commits any updates. I followed this article as a guide.Findings
No luck.
The
GITHUB_TOKEN
does not have write access when running in forks. (Actually, it has a confusing amount of access when running in forks -- See this PR/comment for more details on what we do/do not have permissions to do against a forked repo.).And we don't have access to the setting in this repo to grant it write access, which suggests it's disabled at the org level.