Skip to content

Conversation

ooooo-create
Copy link
Collaborator

No description provided.

Copy link

paddle-bot bot commented Oct 6, 2025

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7524.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

@ooooo-create ooooo-create requested a review from Copilot October 6, 2025 14:50
@ooooo-create ooooo-create marked this pull request as ready for review October 6, 2025 14:50
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a GitHub Actions workflow to automatically generate and post preview URLs for documentation changes in pull requests. It creates a CI system that helps reviewers easily preview documentation modifications before they are merged.

  • Adds a shell script to generate preview URLs for changed documentation files
  • Creates a GitHub Actions workflow that triggers on documentation changes in PRs
  • Includes a minor documentation fix for Chinese API documentation formatting

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
docs/api/paddle/abs_cn.rst Minor formatting fix changing comma to "和" in Chinese parameter type list
ci_scripts/report_preview_url.sh Shell script to generate preview URLs for modified documentation files
.github/workflows/preview-url-report.yml GitHub Actions workflow to automatically post preview URLs in PR comments

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ooooo-create ooooo-create marked this pull request as draft October 6, 2025 14:53
@ooooo-create ooooo-create force-pushed the ci/report_preview_url branch from db193cd to 7a28dbd Compare October 7, 2025 00:36
@ooooo-create
Copy link
Collaborator Author

@SigureMo 一师傅,我用了两个 workflow。评论需要写权限,一个流水线的话要用 pull_request_target trigger 才行,但是感觉用这个不安全。改成了只读的得到要 comment 的内容,触发实际 comment 的流水线,但是现在另外一个被流水线触发的 workflow run 流水线的日志得去点 action 才能看见,pr 下面的 check 不会显示
我在我 fork 的仓库测试了一下好像可以(workflow_run 触发的工作流好像得合入才会跑): ooooo-create#1 ooooo-create#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant