Skip to content

Post comment on commit message referencing an issue #437

@webpro

Description

@webpro

Still can't live without this package folks, thanks for maintaining it! ❤️

So I was looking for a solution to have a comment pushed to an issue (not a PR) that's mentioned in a commit message. Each push results in a pkg-pr-new publish anyway, so I thought why not try this use case too?

This works:

https://github.com/webpro-nl/knip/blob/dad24c59ae24378adcc0f0a5d386e99d94519e67/.github/workflows/integration.yml#L28-L52

Result: webpro-nl/knip#1382 (comment)

This seems to do the job just fine. Then it got me wondering if I missed something and there's a better/easier way? Would be cool if the comment would come from the pkg-pr-new bot instead. If that makes sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions