create-an-issue icon indicating copy to clipboard operation
create-an-issue copied to clipboard

Output to tell whether the issue was created or updated

Open sargunv opened this issue 3 years ago • 6 comments

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?

sargunv avatar Feb 22 '21 05:02 sargunv

Anything other than https://github.com/JasonEtco/create-an-issue#outputs still needed for this one?

dblock avatar Sep 21 '21 15:09 dblock

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.

sargunv avatar Sep 22 '21 21:09 sargunv

I think https://github.com/JasonEtco/create-an-issue/pull/112 does it, care to confirm?

dblock avatar Sep 28 '21 21:09 dblock

Maybe I missed it but I don't see a new output there?

sargunv avatar Sep 28 '21 22:09 sargunv

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.

dblock avatar Sep 29 '21 14:09 dblock

#120 looks great, thank you!

sargunv avatar Sep 29 '21 20:09 sargunv

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.

JasonEtco avatar Dec 23 '22 06:12 JasonEtco