codinasion-archive / codinasion-monorepo

Community Monorepo
https://codinasion.org
MIT License
52 stars 170 forks source link

Unassign Issues #4306

Closed harshraj8843 closed 1 year ago

harshraj8843 commented 1 year ago

Write a script to unassign users from good first issue whose assignment is older than a month.

Why

Hundreds of good first issue were assigned to different contributors during Hacktoberfest 2022 but were never completed.

How to contribute


The way I am thinking of the solution is as follows:-

  1. GET all good-first-issues from the Github API

    GET https://api.github.com/repos/codinasion/program/issues?labels=good%20first%20issue

  2. Check for the length of assignees. If length > 0

  3. Get issue events from the Github API

    GET https://api.github.com/repos/codinasion/program/issues/5657/events

  4. Find the latest assignment event

    "event": "assigned",
  5. Check event time and compare from time. now

    "created_at": "2022-12-31T14:57:00Z",
  6. If the assignment is older than a specific time period unassign the user

    https://docs.github.com/en/rest/issues/assignees?apiVersion=2022-11-28#remove-assignees-from-an-issue

patel-aum commented 1 year ago

I am ready to contribute , can u assign me this ... so that i can unasssign users lol :^)

hi-Kartik2004 commented 1 year ago

Sure @patel-aum :)

sharvil1205 commented 1 year ago

Someone, please work on this. Many users assigned issues to themselves months ago, but haven't solved them.

harshraj8843 commented 1 year ago

Hey @sharvil1205

Sorry for the issue, it will be solved ASAP

harshraj8843 commented 1 year ago

Hey @patel-aum

Are you still working on this issue? Otherwise I would like to solve it

patel-aum commented 1 year ago

Hey @patel-aum

Are you still working on this issue? Otherwise I would like to solve it

yess i will try again!!