-
Notifications
You must be signed in to change notification settings - Fork 146
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
Fetch or auto-discover contributors (auto-generate) #117
Comments
Unless I'm mistaken, you can use |
Can check discover the ones not listed in the rc file? |
@mrchief As far as I'm aware there's no way to add multiple people in one go (@jakebolam ?) but it's an interesting feature to have. |
@Berkmann18 Right, that was my understanding too. Adding multiple people (either manually or via discovery) lowers the bar of entry for existing packages. In a fairly active repo, adding everyone one by one manually can be daunting (first time setup). |
@mrchief It's perfectly understandable, would you like to submit a PR for this? |
Sure I'll see what I can do. Progress may be a bit slow as I'm swamped at work right now. |
@mrchief No problem. |
@Berkmann18 Any preference on how to structure this? I was thinking either:
And then surface them like other commands. Sound about right? |
Also, I see that you already have If so, I can use it in the new Am I missing anything? |
Any ideas on how the flow would work for the bot? https://github.com/all-contributors/all-contributors-bot |
@jakebolam Yeah, I'm well aware of rate limiting as I have run into it in the past. I'm using the same approach as As far as the bot goes, I think it can leverage the same discovery features and can be activated with something like |
Sounds good to me! Yes that's a great idea for the bot 👍 Definitely challenging to auto-setup for all contributors. But this would be a great base where projects can start from and branch out into. |
I think that would be better but I'm open to the other option. @jakebolam We could always try this out on the CLI for packages with existing contributors and when it works fine, the bot could get this functionality so we could add this in a regression style (considering the bot might have more factors in play). Related all-contributors#18. |
@Berkmann18, that was my first approach too. But in that case, I see a lot of code duplication between different files (basically request setup and paging logic will be duped). I settled on |
That can be dealt with refactoring and a well-structured codebase so it shouldn't be an issue. |
If only github had a way to keep track of issues I'm contributing to... This got dropped from my radar:) I've been swamped lately and haven't made any progress on this beyond the first few iterations. I'll try to get back to this as soon as possible (hopefully that'll be weeks and not months). |
@mrchief You can still get access to the ones you read you know? |
Yes, it's a tedious process checking them and making sure I didn't miss any commitments. I didn't have this problem (of keeping track) until now so didn't put much thought into it. I've started a todo list now. :) |
@Berkmann18 @jakebolam I got something working. I ran a crude test against and I got this: I'm gonna tidy things up a bit and a send a PR soon. |
@mrchief can you commit the code you used to achieve this so we can see 😻 |
For those who would like a work around, I hacked a workflow together: To add every one who committed code in one swoop:
Grab that list and save it to a file
Then run: To get users who opened bug reports, I used Ocktokit:
and added them to a text file like and run like above
Add multiple users and contribution types at onceAdd them to the text file with comma separated contribution types and run like above
|
@protoEvangelion That looks nice, the problem with this is that there's no auto-fetching and is limited to |
True! It's definitely not ideal ;) Works decent if you label issues well though. |
@protoEvangelion This hasn't escaped my mind. I've been awfully busy lately. I'll try to send it across soon. |
I ended up copy/pasting the output of # add-contributors.sh
yarn all-contributors name1 code
yarn all-contributors name2 code Then running: bash add-contributors.sh Rate limits apply, so using |
@protoEvangelion Been a while so took me a while to piece things together. So it seems I did create a PR for this #184 which got superseded by the work @Berkmann18 was doing in #196. In case you're interested, my code lives here: https://github.com/mrchief/all-contributors-cli/tree/feat/discover. @Berkmann18 it seems like it's been a while since this got any movement. Do you want me to pick this up again? |
@mrchief Yes, it's been a while due to a variety of stuff including one issue (#187) which blocked progress and I haven't got around to resolving that (hopefully the break would have been helpful). I'll go through the code again tomorrow (or on the weekend) and try to get the PR moving. In the meantime, I'll be more than happy if anyone would look into what we have so far. |
@Berkmann18 Sounds good. I can look it over this weekend. Could you add me to |
@jakebolam @kentcdodds Could either of you do that? I don't seem to have access to the settings for this repo. @mrchief In the meantime, I've added you to a fork so you can work on it as soon as you can. |
Would be nice if we could convert the output from name-your-contributors to all-contributors format which some basic config to map contribution types :'( |
@jdalrymple That's essentially automatically done in #196 but I haven't had the time to troubleshoot some issues. |
@Berkmann18 Could you add the issues you are still having in the PR. Id be happy to take a look 😄 EDIT: is this the problem?
|
Yup. |
Ill see what i can figure out 👼 |
If this project is still maintained, I'd be happy to donate the code in https://github.com/JoshuaKGoldberg/all-contributors-for-repository for this feature. ❤️ |
@JoshuaKGoldberg It still is, although most of the maintainers (at least myself and Greg) have been busy with life commitments (families, work and such). |
Heh, such is life in open source... if you all would like some help, I'd be happy to pitch in on this summer! This project is an excellent point for the industry and I really appreciate all the work you all have put into it! ❤️ To be honest I mostly skimmed the PR and then forgot about it 😅. I'm also about to go off for part-work, part-vacation travel for 3 weeks so probably can't effectively collaborate on it till mid-June... but if you're still free then, I'd love to pitch in however would be helpful! |
I recently got back. Although I'm currently more active due to an injury that has prevented me from doing what sponsored players would do (like competing and practising), I'll try to block time every week for AC repos (or GH projects in general) so I should be more active from now on. Here are the contribution categories found by PR (with notes on whether it's found by the AI model so not fully accurate yet) and what your repo has (note: the package I used in the PR for the non-AI stuff doesn't get labels from issues/PRs so more of the AI-suggested categories could be more accurately fetched if we get labels)
Another note: all the categories found by the AI model may not be based on enough data fed to the model (cf. all-contributors/ac-learn#37 for more info) or ones that could reliably be assigned based on repo data alone. And the PR I have doesn't fully take advantage of what NYC returns. |
Just an update on the feature. I've got something that works (there's room for improvement, especially with the contributions assigned to users, but I don't want to delay this feature more just because of that) on #196. @jdalrymple @JoshuaKGoldberg @mrchief Feel free to review the PR and test locally with some repos and let me know if you see any glaring issues. Apologies for the massive delay on this. |
all-contributors-cli
version: 5.4.1Problem description:
Currently,
add
let's you manually add contributors. However, for existing projects, it may be tedious and error prone to follow this manual approach; thereby creating a high barrier of entry for anyone who wants to start implementing the spec.Suggested solution:
It'd be great to have a way of auto-discovering this information. E.g.
Github's contributors API can help discover the first item; while issues API can take care of the remaining two.
If there is interest in adding this, I can help send a PR.
The text was updated successfully, but these errors were encountered: