Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] experiment: configure auto-formatting for all PRs question mark? #1130

Closed
wants to merge 2 commits into from

Conversation

pepopowitz
Copy link
Collaborator

@pepopowitz pepopowitz commented Aug 8, 2022

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 named auto-format. This job runs npm 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.

@pepopowitz pepopowitz added kind/enhancement Issues related with enhancing existing documentation or the documentation structure (nice to have) component:docs Documentation improvements, including new or updated content dx Documentation infrastructure typically handled by the Camunda DX team labels Aug 8, 2022
@pepopowitz pepopowitz self-assigned this Aug 8, 2022
@pepopowitz
Copy link
Collaborator Author

Closing this PR as it was an experiment, and I opened it as a PR only for posterity.

@pepopowitz
Copy link
Collaborator Author

reopening this temporarily to see if the error I'm getting from the forked PR is due to it being closed?

@pepopowitz
Copy link
Collaborator Author

Closing this again, my experiment is done.

@pepopowitz pepopowitz closed this Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:docs Documentation improvements, including new or updated content dx Documentation infrastructure typically handled by the Camunda DX team kind/enhancement Issues related with enhancing existing documentation or the documentation structure (nice to have)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant