[llvm] [Github] Add workflow to test the issue write workflow (PR #170209)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 3 12:17:04 PST 2025
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/170209
>From d674b501a1873501745115c0cc7b00dedbea87d8 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Mon, 1 Dec 2025 21:49:26 +0000
Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?UTF-8?q?itial=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.7
---
.github/workflows/issue-write-test.yaml | 22 ++++++++++++++++++++++
.github/workflows/issue-write.yml | 1 +
2 files changed, 23 insertions(+)
create mode 100644 .github/workflows/issue-write-test.yaml
diff --git a/.github/workflows/issue-write-test.yaml b/.github/workflows/issue-write-test.yaml
new file mode 100644
index 0000000000000..401be45a11493
--- /dev/null
+++ b/.github/workflows/issue-write-test.yaml
@@ -0,0 +1,22 @@
+name: Test Issue Write Workflow
+
+on:
+ pull_request:
+ paths:
+ - '.github/workflows/issue-write-test.yaml'
+
+jobs:
+ test-issue-write:
+ name: "Test Issue Write"
+ runs-on: ubuntu-24.04
+ if: github.repository == 'llvm/llvm-project'
+ steps:
+ - name: Write Comment
+ run: |
+ echo '[{"body": "This is a comment for testing the issue write workflow"}]' > comments
+ - name: Upload Comment
+ uses: actions/upload-artifact at 330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
+ with:
+ name: workflow-args
+ path: |
+ comments
diff --git a/.github/workflows/issue-write.yml b/.github/workflows/issue-write.yml
index ece6081ce9ba6..ac75dffd8b3b8 100644
--- a/.github/workflows/issue-write.yml
+++ b/.github/workflows/issue-write.yml
@@ -8,6 +8,7 @@ on:
- "PR Request Release Note"
- "Code lint"
- "CI Checks"
+ - "Test Issue Write"
types:
- completed
>From c7a099a9607b251cafceed1001eb6aa631e00dfc Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Mon, 1 Dec 2025 21:51:13 +0000
Subject: [PATCH 2/2] fix
Created using spr 1.3.7
---
.github/workflows/issue-write-test.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.github/workflows/issue-write-test.yaml b/.github/workflows/issue-write-test.yaml
index 401be45a11493..9497e719e35b1 100644
--- a/.github/workflows/issue-write-test.yaml
+++ b/.github/workflows/issue-write-test.yaml
@@ -1,5 +1,8 @@
name: Test Issue Write Workflow
+permissions:
+ contents: read
+
on:
pull_request:
paths:
More information about the llvm-commits
mailing list