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