Skip to content

Docs workflows: allow fork preview deploy for members and owners#30

Merged
reakaleek merged 1 commit intomainfrom
impartial-guitar
Mar 26, 2026
Merged

Docs workflows: allow fork preview deploy for members and owners#30
reakaleek merged 1 commit intomainfrom
impartial-guitar

Conversation

@reakaleek
Copy link
Copy Markdown
Member

What

  • Allow docs preview deployment for fork pull requests when the author is an organization member or repository owner
  • Update docs-build fork messages so trusted authors do not see a false warning

Why

  • Team members often open PRs from forks; they should still get previews without merging the old “forks never deploy” rule with untrusted external forks

Notes

  • Trusted associations use GitHub author_association (MEMBER, OWNER) from the pull request API, not the workflow_run payload
  • Outside collaborators (COLLABORATOR) are intentionally excluded from this path

Made with Cursor

Read author_association from the PR API in docs-deploy preflight so
workflow_run can gate fork checkouts. Align docs-build fork messages.

Made-with: Cursor
@reakaleek reakaleek added the enhancement New feature or request label Mar 26, 2026
@reakaleek reakaleek merged commit 5844922 into main Mar 26, 2026
2 of 3 checks passed
@reakaleek reakaleek deleted the impartial-guitar branch March 26, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants