Skip to content

Enhancement: Enhance auto issue comment workflow to skip maintainers #1278

@rohan-pandeyy

Description

@rohan-pandeyy

Description

Currently, the .github/workflows/auto-issue-comment.yml workflow automatically posts a comment under every newly opened issue.

The comment is:

👋 Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)

While this works well for issues opened by new contributors, it creates unnecessary confusion when the issue itself is opened by a maintainer, organization member, or repository collaborator.

In such cases:

  • the issue is already reviewed/validated internally,
  • the automated comment becomes redundant,
  • contributors may incorrectly assume the issue is still awaiting maintainer review.

At the moment, maintainers manually delete this comment whenever it appears on internally created issues.


Expected Behavior

The workflow should:

  • Post the automated comment only for external contributors.
  • Skip the comment if the issue author is:
    • OWNER
    • MEMBER
    • COLLABORATOR

This can be achieved using GitHub's author_association field available in the issue event payload.


Possible Implementation

The workflow can check:

github.event.issue.author_association

Metadata

Metadata

Assignees

Type

No fields configured for Task.

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions