create-an-issue
create-an-issue copied to clipboard
Output to tell whether the issue was created or updated
I'm currently using this in a scheduled workflow to check NPM advisories against our yarn.lock
and file issues when an advisory applies to our dependencies. We'd rely on Dependabot, but that has a file size limit of 0.5MB and our monorepo lockfile is well beyond that.
I use the update_existing
option to keep updating the existing issues rather than flooding the repo with new ones. However, I'd like to add the ability to send a Slack message when a new issue is created (but not when one is simply updated). Unfortunately, there's no output from this action that tells my GH Actions job whether the issue was actually created or just updated (or neither).
Would it be possible to get such an output?
Anything other than https://github.com/JasonEtco/create-an-issue#outputs still needed for this one?
I no longer need this, but the intention was for an output that tells me whether the issue was created or it was simply updated, not just the id/url of the issue.
I think https://github.com/JasonEtco/create-an-issue/pull/112 does it, care to confirm?
Maybe I missed it but I don't see a new output there?
I was confused on what "output" meant. I saw output :)
✔ success Existing issue [RELEASE] Release version 2.0.0#24: https://github.com/dblock/opensearch-build/issues/24 found but not updated
See https://github.com/JasonEtco/create-an-issue/pull/120 for an implementation.
#120 looks great, thank you!
I'll close this as @dblock has implemented it in their fork, and it hasn't come up other than this issue. If anyone still wants it, happy to review a PR.