File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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+ });
You can’t perform that action at this time.
0 commit comments