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

Feature Request: change close-issue-reason to not_planned #3

Open
3 tasks done
joey-ma opened this issue Dec 23, 2022 · 1 comment
Open
3 tasks done

Feature Request: change close-issue-reason to not_planned #3

joey-ma opened this issue Dec 23, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@joey-ma
Copy link

joey-ma commented Dec 23, 2022

Terms

Summary

I appreciate how Issue auto-closer aims to close issues that did not follow the issue templates, but I think it would make sense to close it as not_planned instead of completed (which kind of contradicts with the issue-close-message: "this issue was automatically closed because it did not follow the issue template").

Motivation

Why are we doing this?

Improve clarity and consistency; i.e., the issue is closed not because it is completed, but it is closed because it is not planned.

image
image

What use cases does it support?

I think it improves consistency for original intention of issue-closer-action. Another perspective is that it can also introduce flexibility if it is added as an optional input, as not required and with a default value of not_planned.

What is the expected outcome?

image

    steps:
    - name: Autoclose issues that did not follow issue template
      uses: roots/[email protected]
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        close-issue-reason: not_planned 
        # makes more sense than `completed` 
        # and introduces flexibility should user wants to change it

Potential conflicts / foreseeable issues

None, except to add this info in the README.md / documentation.

Additional Context

On a side note, I am seeing this in warning in Annotations. I'm hesitant to turn this into another issue, though. Please let me know if I should.

autoclose

Node.js 12 actions are deprecated. For more information see:
https://github.blog/changelog/2022-09-22-github-actions-all-
actions-will-begin-running-on-node16-instead-of-node12/. 
Please update the following actions to use Node.js 16: 
roots/[email protected]

Not sure how I can confirm running on node16 would not introduce bugs, but I believe Node.js 18 is now out and node12 does seem a bit behind. Will you update this as well?

@joey-ma joey-ma added the enhancement New feature or request label Dec 23, 2022
@swalkinshaw
Copy link
Member

swalkinshaw commented Dec 24, 2022

Adding the close-issue-reason reason sounds like a good idea to me 👍 You're welcome to contribute a PR

Not sure how I can confirm running on node16 would not introduce bugs, but I believe Node.js 18 is now out and node12 does seem a bit behind. Will you update this as well?

Probably not, but you can if you want.

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

No branches or pull requests

2 participants