issues-helper icon indicating copy to clipboard operation
issues-helper copied to clipboard

[Question] yaml Issue template support

Open dabao1955 opened this issue 1 year ago • 2 comments

🧐 问题描述 Problem Description

Hello author, I encountered a small problem using this actions:

  • How to automatically close newly opened and edited issues using issue template yaml if the content filled in the log output section does not contain the URL such as [bookmarks.tar.gz](https://github.com/username/repo/files/number/bookmarks.tar.gz) ?

💻 示例代码 Sample code

Here is a short issue template yaml file:

name: Bug Report
description: "Create a report to help us improve."
title: "[BUG]"
labels: "bug"

body:
  - type: markdown
    id: detail-info
    attributes:
      value: "## Detail Infomation"
  - type: textarea
    id: logs
    attributes:
      label: "Related log output"
      description: "The format should be .tar.gz"
    validations:
      required: true

🚑 其他信息 Other information

2023-10-20T11:14:33.8943711Z ##[group]Run actions-cool/issues-helper@v3
2023-10-20T11:14:33.8944454Z with:
2023-10-20T11:14:33.8944852Z   actions: close-issue
2023-10-20T11:14:33.8945670Z   token: ***
2023-10-20T11:14:33.8946087Z   issue-number: 16
2023-10-20T11:14:33.8946549Z   title-includes: Bug
2023-10-20T11:14:33.8947393Z   body-includes: https://github.com/dabao1955/test/files/[-\w.]+/[-\w.]+.tar.gz
2023-10-20T11:14:33.8948364Z ##[endgroup]
2023-10-20T11:14:34.1438198Z [📝 AC] [Init] [dabao1955/test => 16]
2023-10-20T11:14:34.3344246Z ##[error][🚨 AC] Resource not accessible by integration
2023-10-20T11:14:34.3682082Z Cleaning up orphan processes

dabao1955 avatar Oct 20 '23 11:10 dabao1955

Forgive me for not speaking English, I'd love to help you, from your description I guess you might want to implement an associative upstream repository? Or are you trying to capture the url of the comment section in a specific format? If it's upstream consider https://github.com/antfu/issue-up

If you want to capture a specific format, I don't think it's supported yet.

(not sure if I understand you correctly)

Wxh16144 avatar Oct 23 '23 15:10 Wxh16144

Forgive me for not speaking English, I'd love to help you, from your description I guess you might want to implement an associative upstream repository? Or are you trying to capture the url of the comment section in a specific format? If it's upstream consider https://github.com/antfu/issue-up

If you want to capture a specific format, I don't think it's supported yet.

(not sure if I understand you correctly)

I think I should prefer the latter.

dabao1955 avatar Oct 24 '23 06:10 dabao1955