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

Support targeting repos with specific label like #hacktoberfest #1680

Open
1 of 3 tasks
schneems opened this issue Sep 21, 2022 · 8 comments · Fixed by #1683
Open
1 of 3 tasks

Support targeting repos with specific label like #hacktoberfest #1680

schneems opened this issue Sep 21, 2022 · 8 comments · Fixed by #1683

Comments

@schneems
Copy link
Member

schneems commented Sep 21, 2022

Maintainer of CodeTriage here. I'm interested in adding a proof of concept for displaying repos with a given tag. Let's keep it simple and start with #hacktoberfest on one new page as the goal. We can do this as an experiment.

Context

Every year Digital Ocean sends shirts to developers who get qualifying commits in open source during the month of October.

In prior years this caused spam as projects not equipped to get new PRs would get an influx of work. To help the new rule is projects must have ahacktoberfest or hacktoberfest-accepted label.

From: https://hacktoberfest.com/participation/

Hacktoberfest is now opt-in for maintainers, so only contribute to projects that indicate they’re looking for Hacktoberfest PR/MRs.

Once your PR/MR has passed this check, we won’t check this again (unless your PR/MR fails a check before this, such as it being marked as spammy).

Implementation

I'm thinking it could be fun for someone to write such a page for hacktoberfest. Basically wait until October 1st then send a PR. I'll be happy to hacktoberfest-accepted this feature.

It will need:

I think this is a big project it can be split into several PRs:

  • Code to query the API and update the database
  • Code to pull it the repos with the tags from the database and render them via a view. Add a codetriage.com/hacktoberfest page
  • Code to filter and sort those hacktoberfest projects by language (similar to homepage).

Could perhaps be split up other ways, but that's a rough start.

@schneems
Copy link
Member Author

schneems commented Oct 5, 2022

That last PR didn't totally close out the feature. Going to re-open.

@schneems schneems reopened this Oct 5, 2022
@schneems
Copy link
Member Author

schneems commented Oct 5, 2022

@yez thanks again for your awesome PR. The code is scheduled and running. It looks like we have 513 projects participating:

RepoLabel.where(label: Label.where(name: "hacktoberfest")).count
D, [2022-10-05T15:58:31.922343 #26] DEBUG -- :    (6.7ms)  SELECT COUNT(*) FROM "repo_labels" WHERE "repo_labels"."label_id" IN (SELECT "labels"."id" FROM "labels" WHERE "labels"."name" = $1)  [["name", "hacktoberfest"]]
=> 513

I made the other two remaining tasks a bit more clear at the bottom. Are you interested in them or it's okay if I hand them out?

@yez
Copy link
Contributor

yez commented Oct 5, 2022

I'd love to try and tackle them @schneems!

@yez
Copy link
Contributor

yez commented Oct 13, 2022

I know its been a week but I still plan to do this!

@schneems
Copy link
Member Author

You still working or want me to open it up?

@yez
Copy link
Contributor

yez commented Oct 20, 2022

@schneems unfortunately my free time is less than I thought it would be so please feel to open this up! Thanks for your patience.

@schneems
Copy link
Member Author

It looks like there's a lot of prior art. This PR was lost to the sands of time, but it might be good for inspiration: https://github.com/codetriage/CodeTriage/pull/677/files

@avcwisesa
Copy link
Contributor

Hello @schneems. I'm interested to work on this part if no one is currently working on it

Code to pull it the repos with the tags from the database and render them via a view. Add a codetriage.com/hacktoberfest page

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

Successfully merging a pull request may close this issue.

3 participants