Skip to content

fix: only comment about no contributions after checking all contributors#489

Merged
gr2m merged 2 commits into
all-contributors:masterfrom
JoshuaKGoldberg:no-contributions-delay-log
Sep 12, 2024
Merged

fix: only comment about no contributions after checking all contributors#489
gr2m merged 2 commits into
all-contributors:masterfrom
JoshuaKGoldberg:no-contributions-delay-log

Conversation

@JoshuaKGoldberg

@JoshuaKGoldberg JoshuaKGoldberg commented Feb 17, 2024

Copy link
Copy Markdown
Contributor

What: Fixes #468.

Why: Currently, the bot comments "I couldn't determine ..." as soon as a potential contributor is found to not have any contributions. But if there are multiple potential contributors, that comment shouldn't happen.

How: With these changes, the comment is only added after all potential contributors are checked for sending a PR.

Checklist:

  • Documentation (n/a for bug fix)
  • Ready to be merged
  • [ ] Added myself to contributors table.

@vercel

vercel Bot commented Feb 17, 2024

Copy link
Copy Markdown

@JoshuaKGoldberg is attempting to deploy a commit to the All Contributors Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Sep 12, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2024 5:15am

"updated_at": "2019-01-10T08:36:52Z",
"author_association": "MEMBER",
"body": "@all-contributors please add jakebolam for code, doc and infra"
"body": "@all-contributors please add jakebolam for code, doc and infra\n🤖 Beep boop! This comment was added automatically by [all-contributors-auto-action](https://github.com/marketplace/actions/all-contributors-auto-action).\nNot all contributions can be detected from Git & GitHub alone. Please comment any missing contribution types this bot missed.\n...and of course, thank you for contributing! 💙"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't quite get this change, that does not look like a comment that a user would post?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a comment a bot of mine posts that hits the issue. 🙂

Example: JoshuaKGoldberg/create-typescript-app#429 (comment)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohhh never seen this action! Cool!

@gr2m
gr2m merged commit db6de74 into all-contributors:master Sep 12, 2024
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.19.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@JoshuaKGoldberg
JoshuaKGoldberg deleted the no-contributions-delay-log branch September 12, 2024 21:17
@JoshuaKGoldberg

Copy link
Copy Markdown
Contributor Author

Hooray! Thanks @gr2m!

lwasser added a commit that referenced this pull request Jan 23, 2026
…odecov action (#544)

<!--
Thanks for your interest in the project. Bugs filed and PRs submitted
are appreciated!

Please make sure that you are familiar with and follow the [Code of
Conduct](https://allcontributors.org/docs/en/project/code-of-conduct)
for this project.

Also, please make sure you're familiar with and follow the instructions
in the
[contributing
guidelines](https://github.com/all-contributors/all-contributors/blob/master/CONTRIBUTING.md)
(found in the CONTRIBUTING.md file).

If you're new to contributing to open source projects, you might find
this free
video course helpful: http://kcd.im/pull-request

Please fill out the information below to expedite the review and
(hopefully)
merge of your pull request!
-->

<!-- What changes are being made? (What feature/bug is being fixed
here?)

e.g. Fixes #375 

Check this
[list](https://help.github.com/en/articles/closing-issues-using-keywords)
of valid keywords.
 -->
**What**:

Fixes #530


<!-- Why are these changes necessary? -->
**Why**:

Identified that the cause of the testcase failures were from PR #489, to
address #468 , as it introduced a small logical error and also added a
new testcase for the identified bug without updating the test snapshots.

<!-- How were these changes implemented? -->
**How**:

1. Use of the logical bug `pullCreated ||= await triggerActionAdd(...);`
within the `for` loop caused it to short circuit after the first
contributor, as `pullCreated` is set to True after including the first
contributor, and short circuit for subsequent iterations in the loop
(causing it to not add subsequent contributors in the list).
    * Fixed the bug accordingly to not short-circuit

3. Testcase snapshot outdated due to added case to account for the bug
identified in the PR

4. Testcase snapshot oudated due to change in logging from that PR i.e.
`log.info(`No contributions for ${who}`);`


Testcases were tested on Node v22.22.0 (LTS)


Additionally, update codecov workflow to use `codecov-action` instead of
deprecated codecov npm package (v3.8.3), see [codecov
npm](https://www.npmjs.com/package/codecov?activeTab=readme
) which is no longer functioning correctly in the CI environment.


<!-- Have you done all of these things?  -->
**Checklist**:
<!-- add "N/A" to the end of each line that's irrelevant to your changes
-->
<!-- to check an item, place an "x" in the box like so: "- [x]
Documentation" -->
- [ ] Documentation
- [x] Ready to be merged <!-- In your opinion, is this ready to be
merged as soon as it's reviewed? -->
- [ ] Added myself to contributors table. <!-- this is optional, see the
contributing guidelines for instructions -->
[Bot
Usage](https://allcontributors.org/docs/en/bot/installation#4-update-your-contributing-documentation)

<!-- feel free to add additional comments -->

---------

Co-authored-by: Leah Wasser <leah@pyopensci.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bot both creates a PR and complains about no contributions when extra text in comment

3 participants