-
Notifications
You must be signed in to change notification settings - Fork 659
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
Automatic unassign for stale issues #2986
Conversation
Signed-off-by: Azanul Haque <42029519+Azanul@users.noreply.github.com>
Signed-off-by: Azanul Haque <42029519+Azanul@users.noreply.github.com>
Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line:
|
@samhita-alla Check it out and let me know if I've missed anything. |
Review changes Signed-off-by: Azanul Haque <42029519+Azanul@users.noreply.github.com>
echo "Unassigning issue ${{ github.event.issue.number }}" | ||
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
-d '{"assignees": []}' \ | ||
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Azanul where is {{ github.event.issue.assignee }}
documented in GitHub docs? I want to make sure this works.
@Azanul, can you work on my suggestions so that I can merge this PR? |
Co-authored-by: Samhita Alla <aallasamhita@gmail.com> Signed-off-by: Azanul Haque <42029519+Azanul@users.noreply.github.com>
Co-authored-by: Samhita Alla <aallasamhita@gmail.com> Signed-off-by: Azanul Haque <42029519+Azanul@users.noreply.github.com>
Co-authored-by: Samhita Alla <aallasamhita@gmail.com> Signed-off-by: Azanul Haque <42029519+Azanul@users.noreply.github.com>
Signed-off-by: Azanul Haque <42029519+Azanul@users.noreply.github.com>
@samhita-alla go to https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
Now checkout the webhook payload of issues event. |
@Azanul, thanks! Will this work if there are multiple assignees? |
Oh, I meant I don't want to block assigning an issue to multiple people. But if we're going to unassign after the issue goes stale, unassigning all of them makes sense, right? |
Signed-off-by: Azanul Haque <42029519+Azanul@users.noreply.github.com>
Done, for multiple assignees |
Added 2 github actions: