Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support adding multiple users in a single message #127

Merged

Conversation

jakebolam
Copy link
Contributor

@jakebolam jakebolam commented Jan 29, 2019

Closes #100, #146 and all-contributors/all-contributors#591

  • additional improve NLP parsing of usernames


const whos = contributors.map(({ who }) => who).join('--')
const safeWho = getSafeRef(whos)
// TODO: max length on branch name?
Copy link
Member

Choose a reason for hiding this comment

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

If we were to have a max length, what would it be?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd suggest 255 chars. While it's true that people could limit themselves to using GitHub's ui for everything, and with recent changes, it's possible to renaming existing branches, branch names are generally stored in file systems and can be subject to the whims of file systems, some of whom don't particularly like very long file names (I'm not suggesting an 11 character limit...).

I suspect that would give you ~16-20 contributors, which is quite a lot.

Copy link
Member

Choose a reason for hiding this comment

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

@jsoref That makes sense, yeah 255 chars seems good to me.

@Berkmann18
Copy link
Member

Do you think this should be supported by the CLI too?
Cf. all-contributors/cli#187
That way the bot could have an easier time adding multiple users.

@zeke
Copy link

zeke commented Aug 31, 2019

👋 Hey I think this would be a cool feature to land, and I would love to use it on some of my team's repos that already have a lot of existing contributors. Can I help move this PR along somehow?

@gr2m
Copy link
Contributor

gr2m commented Sep 2, 2019

Hey there, I plan to look into it once I find some time to familiarize myself with the code base, I've blocked a day for that on Sep 16th, sorry it takes so long :(

@Berkmann18
Copy link
Member

@gr2m Did you managed to get something working on this?

@gr2m
Copy link
Contributor

gr2m commented Sep 22, 2019

I biggest problem is that the code base is very complex, it is using Probot in a serverless environment which the current version is not build for. With the next version of Probot that should be much simpler, so I focus on that first, because then it would be allow to spend some of my work hours to migrate all-contributors to it as a means of testing.

The current code base is too hard to maintain and contribute to.

@Berkmann18
Copy link
Member

Oh okay, the codebase is very complex. I wonder how we could go about simplifying it.

@tenshiAMD
Copy link
Member

@jakebolam @Berkmann18 @gr2m I think we can revisit this one.

@tenshiAMD tenshiAMD added the enhancement New feature or request label Sep 6, 2022
@tenshiAMD tenshiAMD self-assigned this Sep 6, 2022
@tenshiAMD
Copy link
Member

tenshiAMD commented Sep 28, 2022

Fixes all-contributors/all-contributors#375.

@tenshiAMD tenshiAMD changed the title WIP feat: support adding multiple users in a single message feat: support adding multiple users in a single message Oct 6, 2022
@tenshiAMD tenshiAMD merged commit f8adcf9 into master Oct 6, 2022
@tenshiAMD tenshiAMD deleted the feature/support-adding-multiple-users-in-a-single-message branch October 6, 2022 19:02
@github-actions
Copy link

github-actions bot commented Oct 6, 2022

🎉 This PR is included in version 1.18.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants