Skip to content

Commit 02138c6

Browse files
committed
Add test workflow for GitHub Actions issue creation permissions
1 parent 2867e1e commit 02138c6

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test-issues.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test Issue Creation
2+
3+
on:
4+
workflow_dispatch: # Manual trigger only for testing
5+
6+
jobs:
7+
test-issue-creation:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Test issue creation
15+
uses: actions/github-script@v7
16+
with:
17+
script: |
18+
const title = 'Test issue creation permissions';
19+
const body = `This is a test issue to verify GitHub Actions has permission to create issues.
20+
21+
Created at: ${new Date().toISOString()}
22+
Run ID: ${{ github.run_id }}
23+
24+
If you see this issue, the permissions are working correctly.`;
25+
26+
github.rest.issues.create({
27+
owner: context.repo.owner,
28+
repo: context.repo.repo,
29+
title: title,
30+
body: body,
31+
labels: ['test', 'github-actions']
32+
});

0 commit comments

Comments
 (0)