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

[Question] yaml Issue template support #181

Open
dabao1955 opened this issue Oct 20, 2023 · 2 comments
Open

[Question] yaml Issue template support #181

dabao1955 opened this issue Oct 20, 2023 · 2 comments
Labels
question Further information is requested

Comments

@dabao1955
Copy link

🧐 问题描述 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 dabao1955 added the question Further information is requested label Oct 20, 2023
@Wxh16144
Copy link
Member

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)

@dabao1955
Copy link
Author

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.

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

No branches or pull requests

2 participants