Skip to content

🚀 Feature: Deduplicate posted comments #180

Description

@JoshuaKGoldberg

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Overview

Right now, each contribution per user generates a single comment via the GitHub API:

// TODO: It'd be nice to deduplicate these comments.
// PRs that include multiple types will cause multiple comments...
// https://github.com/JoshuaKGoldberg/all-contributors-auto-action/issues/180
const newComment = await octokit.request(...commentRequestArgs);

I haven't investigated this deeply but think it should be able to ask for multiple contributions in a single comment. If a user has multiple contributions out of a single issue or PR, it'd be nice to mention multiple in a comment:

@allcontributors please add <person> for bug, maintenance

Additional Info

Within this repo, I'm guessing the postContributionComment function will need to be changed up a bit.

all-contributors/app#127 is a good starting reference to see things on the allcontributors side. Though that PR is for multiple contributors per comment. I'd really like to see multiple contribution types per comment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsPlease, send a pull request to resolve this! 🙏type: featureNew enhancement or request 🚀

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions