Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interpolation support to labels and assignees #166

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jnewland
Copy link

@jnewland jnewland commented Sep 6, 2023

Fixes #164.

@fieldsfarmer
Copy link

fieldsfarmer commented Oct 3, 2023

Thanks for the PR. I believe it could also resolve my issue: #168. Can someone approve this?

@dblock
Copy link
Contributor

dblock commented Nov 28, 2023

I have an active fork in https://github.com/dblock/create-a-github-issue if you want to port this?

@fieldsfarmer
Copy link

fieldsfarmer commented Jan 22, 2024

@dblock I found your fork did not work either.

# In the workflow yaml file:
      - name: Report success 2
        uses: dblock/[email protected]
        env:
          GITHUB_TOKEN: ${{ secrets.xxx }}
          launcher: "fieldsfarmer"
        with:
          filename: .github/ISSUE_TEMPLATE/template.md

# In the template.md
---
title: "Title"
labels: lable
assignees: {{env.launcher}}
---
Report generated at: `{{ date | date('YYYY-MM-DD, hh:mm z') }}`

The error is:

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/ISSUE_TEMPLATE/template.md!
✖  error     TypeError: list.split is not a function 
    at listToArray (/runner/_work/_actions/dblock/create-a-github-issue/v3.1.1/dist/index.js:38005:46)
    at createAnIssue (/runner/_work/_actions/dblock/create-a-github-issue/v3.1.1/dist/index.js:37974:102)

Does your fork include this PR?

@jnewland do you think your PR could fix my example?

fieldsfarmer added a commit to fieldsfarmer/create-an-issue that referenced this pull request Jan 25, 2024
fieldsfarmer added a commit to fieldsfarmer/create-an-issue that referenced this pull request Jan 25, 2024
@fieldsfarmer
Copy link

fieldsfarmer commented Jan 26, 2024

I patched this PR and created a action fieldsfarmer/[email protected]. Verified that it works.

@dblock
Copy link
Contributor

dblock commented Jan 28, 2024

@dblock I found your fork did not work either.

Right, someone needs to take this PR and finish it in my fork, with tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interpolation not supported in front-matter
3 participants