From 08b8aefc37224ab2b40f0f265a77f98ce0f4c9b4 Mon Sep 17 00:00:00 2001
From: Zettat123 <zettat123@gmail.com>
Date: Mon, 18 Sep 2023 18:38:58 +0800
Subject: [PATCH 1/4] update actions docs related to pull_request

---
 docs/content/usage/actions/faq.en-us.md | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docs/content/usage/actions/faq.en-us.md b/docs/content/usage/actions/faq.en-us.md
index 031509a033e1f..b1b3c7838a9d3 100644
--- a/docs/content/usage/actions/faq.en-us.md
+++ b/docs/content/usage/actions/faq.en-us.md
@@ -180,3 +180,6 @@ For events supported only by GitHub, see GitHub's [documentation](https://docs.g
 | pull_request_review_comment | `created`, `edited`                                                                                                      |
 | release                     | `published`, `edited`                                                                                                    |
 | registry_package            | `published`                                                                                                              |
+
+> For `pull_request` events, in Github, the `ref` is `refs/pull/:prNumber/merge`. However, Gitea has no such reference.
+> Therefore, the `ref` in Gitea Actions is `refs/pull/:prNumber/head` which points to the head of pull request rather than the merge commit.

From 822905768e12a0c5e0eab533ca592c3c429c31fc Mon Sep 17 00:00:00 2001
From: Zettat123 <zettat123@gmail.com>
Date: Tue, 19 Sep 2023 10:20:41 +0800
Subject: [PATCH 2/4] update zh-cn docs

---
 docs/content/usage/actions/faq.en-us.md | 4 ++--
 docs/content/usage/actions/faq.zh-cn.md | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/docs/content/usage/actions/faq.en-us.md b/docs/content/usage/actions/faq.en-us.md
index b1b3c7838a9d3..e3e7ff7c402b3 100644
--- a/docs/content/usage/actions/faq.en-us.md
+++ b/docs/content/usage/actions/faq.en-us.md
@@ -181,5 +181,5 @@ For events supported only by GitHub, see GitHub's [documentation](https://docs.g
 | release                     | `published`, `edited`                                                                                                    |
 | registry_package            | `published`                                                                                                              |
 
-> For `pull_request` events, in Github, the `ref` is `refs/pull/:prNumber/merge`. However, Gitea has no such reference.
-> Therefore, the `ref` in Gitea Actions is `refs/pull/:prNumber/head` which points to the head of pull request rather than the merge commit.
+> For `pull_request` events, in [GitHub Actions](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request), the `ref` is `refs/pull/:prNumber/merge`, which is a reference to the merge commit preview.
+> Therefore, the `ref` in Gitea Actions is `refs/pull/:prNumber/head`, which points to the head of the pull request rather than the preview of the merge commit.
diff --git a/docs/content/usage/actions/faq.zh-cn.md b/docs/content/usage/actions/faq.zh-cn.md
index f5dc8e179bdd1..7bb79d02fc4a8 100644
--- a/docs/content/usage/actions/faq.zh-cn.md
+++ b/docs/content/usage/actions/faq.zh-cn.md
@@ -180,3 +180,6 @@ defaults:
 | pull_request_review_comment | `created`, `edited`                                                                                                      |
 | release                     | `published`, `edited`                                                                                                    |
 | registry_package            | `published`                                                                                                              |
+
+> 对于 `pull_request` 事件,在 [GitHub Actions](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request) 中 `ref` 是 `refs/pull/:prNumber/merge`,它指向这个拉取请求合并提交的一个预览。但是 Gitea 没有这种 reference。
+> 因此,Gitea Actions 中 `ref` 是 `refs/pull/:prNumber/head`,它指向这个拉取请求的头分支而不是合并提交的预览。

From e3245e5c8808e3799a39a5a6464bab243ee8d7a7 Mon Sep 17 00:00:00 2001
From: Zettat123 <zettat123@gmail.com>
Date: Tue, 19 Sep 2023 16:52:54 +0800
Subject: [PATCH 3/4] fix

---
 docs/content/usage/actions/faq.en-us.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/content/usage/actions/faq.en-us.md b/docs/content/usage/actions/faq.en-us.md
index e3e7ff7c402b3..6391118c70da7 100644
--- a/docs/content/usage/actions/faq.en-us.md
+++ b/docs/content/usage/actions/faq.en-us.md
@@ -181,5 +181,5 @@ For events supported only by GitHub, see GitHub's [documentation](https://docs.g
 | release                     | `published`, `edited`                                                                                                    |
 | registry_package            | `published`                                                                                                              |
 
-> For `pull_request` events, in [GitHub Actions](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request), the `ref` is `refs/pull/:prNumber/merge`, which is a reference to the merge commit preview.
-> Therefore, the `ref` in Gitea Actions is `refs/pull/:prNumber/head`, which points to the head of the pull request rather than the preview of the merge commit.
+> For `pull_request` events, in [GitHub Actions](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request), the `ref` is `refs/pull/:prNumber/merge`, which is a reference to the merge commit preview. However, Gitea has no such reference.
+> Therefore, the `ref` in Gitea Actions is `refs/pull/:prNumber/head`, which points to the head of  pull request rather than the preview of the merge commit.

From f064eefb18721b27ad9e95fff4ef40639eb7b27c Mon Sep 17 00:00:00 2001
From: Zettat123 <zettat123@gmail.com>
Date: Tue, 19 Sep 2023 16:58:01 +0800
Subject: [PATCH 4/4] format

---
 docs/content/usage/actions/faq.en-us.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/content/usage/actions/faq.en-us.md b/docs/content/usage/actions/faq.en-us.md
index 6391118c70da7..1d59872936a46 100644
--- a/docs/content/usage/actions/faq.en-us.md
+++ b/docs/content/usage/actions/faq.en-us.md
@@ -182,4 +182,4 @@ For events supported only by GitHub, see GitHub's [documentation](https://docs.g
 | registry_package            | `published`                                                                                                              |
 
 > For `pull_request` events, in [GitHub Actions](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request), the `ref` is `refs/pull/:prNumber/merge`, which is a reference to the merge commit preview. However, Gitea has no such reference.
-> Therefore, the `ref` in Gitea Actions is `refs/pull/:prNumber/head`, which points to the head of  pull request rather than the preview of the merge commit.
+> Therefore, the `ref` in Gitea Actions is `refs/pull/:prNumber/head`, which points to the head of pull request rather than the preview of the merge commit.