Closed harshraj8843 closed 1 year ago
I am ready to contribute , can u assign me this ... so that i can unasssign users lol :^)
Sure @patel-aum :)
Someone, please work on this. Many users assigned issues to themselves months ago, but haven't solved them.
Hey @sharvil1205
Sorry for the issue, it will be solved ASAP
Hey @patel-aum
Are you still working on this issue? Otherwise I would like to solve it
Hey @patel-aum
Are you still working on this issue? Otherwise I would like to solve it
yess i will try again!!
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 duringHacktoberfest 2022
but were never completed.How to contribute
scripts
folderThe way I am thinking of the solution is as follows:-
GET
allgood-first-issues
from the Github APIGET
https://api.github.com/repos/codinasion/program/issues?labels=good%20first%20issueCheck for the length of
assignees
. If length > 0Get
issue events from the Github APIGET
https://api.github.com/repos/codinasion/program/issues/5657/eventsFind the latest assignment event
Check event time and compare from time. now
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