You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: implement graceful fork PR degradation and document workflow_run pattern
- Add Job Summary notice when PR comments are skipped for fork PRs
(not just a ::warning:: log line, but also visible in GH UI)
- Update warning message to reference new documentation section
- Add comprehensive Fork PR Comments section to README with:
- Two-workflow (workflow_run) pattern as recommended best practice
- pull_request_target alternative with security warnings
- Add unit tests for the new Job Summary behavior
Closes#143
*[Badging Your Repository](#badging-your-repository)
30
31
*[Versioning](#versioning)
31
32
@@ -123,7 +124,12 @@ jobs:
123
124
> [!IMPORTANT]
124
125
> `pr-comments` is an experimental feature. By default, it's disabled.
125
126
>
126
-
> PR comments are skipped for pull requests from forked repositories. For more details, refer to issue [`#143`](https://github.com/commit-check/commit-check-action/issues/143).
127
+
> PR comments are skipped for pull requests from forked repositories. See
128
+
> [Fork PR Comments](#fork-pr-comments) for details on how to enable this feature
129
+
> for fork contributions.
130
+
>
131
+
> Note: write-access to pull-requests requires the `pull-requests: write` permission.
132
+
> See [usage example](#usage).
127
133
128
134
Note: the default rule of above inputs is following [this configuration](https://github.com/commit-check/commit-check-action/blob/main/commit-check.toml). If you want to customize, just add your [`commit-check.toml`](https://commit-check.github.io/commit-check/configuration.html) config file under your repository root directory.
129
135
@@ -149,6 +155,184 @@ By default, commit-check-action results are shown on the job summary page of the
0 commit comments