Skip to content

Error: An error occurred while creating the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees #179

@luane-aquino

Description

@luane-aquino

Hi guys, I am getting this error when trying to run the workflow to create issues.

Error:

Run JasonEtco/create-an-issue@v2
⬤  debug     Reading from file .github/issue1.md
ℹ  info      Front matter for .github/issue1.md is { title: 'Components' }
⬤  debug     Templates compiled { body: 'testing\n', title: 'Components' }
ℹ  info      Creating new issue Components
✖  error     An error occurred while creating the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check .github/issue1.md!
✖  error     HttpError: Resource not accessible by integration 
    at /home/runner/work/_actions/JasonEtco/create-an-issue/v2/dist/index.js:5[8](https://github.com/luane-aquino/repo7/actions/runs/11739454377/job/32703977375#step:3:9)55:21
    at process.processTicksAndRejections (node:internal/process/task_queues:[9](https://github.com/luane-aquino/repo7/actions/runs/11739454377/job/32703977375#step:3:10)5:5)

Here is my workflow create-issue.yaml

name: Create issues

on:
  push:
    branches:
        - 'main'

jobs:
  create_issues:
    runs-on: ubuntu-latest
    if: github.run_number == 1
    steps:
      - uses: actions/checkout@v2

      - name: create issue1 by template
        uses: JasonEtco/create-an-issue@v2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          filename: .github/issue1.md

      - name: create issue2 by template
        uses: JasonEtco/create-an-issue@v2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          filename: .github/issue2.md

      - name: create issue3 by template
        uses: JasonEtco/create-an-issue@v2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          filename: .github/issue3.md

      - name: create issue4 by template
        uses: JasonEtco/create-an-issue@v2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          filename: .github/issue4.md

And here is the issue1.md

---
title: Components
---

testing

Any help is welcomed 🙏🏽

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions