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

ci: added ping-for-attention command to notify the reviewers #239

Merged
merged 10 commits into from
Apr 2, 2024

Conversation

Priyansh61
Copy link
Contributor

Description
The PR adds the functionality to use /pfaor /ping-for-attention.
The functionality is achieved by

  • Gets the PR data on which we use the command.
  • Gets the list of requested_reviewers.
  • Checks for reviewers who have made a review.
  • Finally pings the reviewrs by adding a comment who have not reviewed.

Proof of Work

ping-for-attention-2023-05-18_20.53.51.mp4

Related issue(s)

Resolves #211

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey, thanks for the PR, please have a look at the bot message and failing logs and update the PR title 🙏🏼

@derberg
Copy link
Member

derberg commented May 22, 2023

@Priyansh61 please engage with the community in clack in contributing channel. Explain the goal of your command and ask what they thing about this command, if this is ok name that you put here or maybe there have better ideas

in the meantime please update help command workflow so it yields info about this command

@Priyansh61 Priyansh61 changed the title feat : added ping-for-attention command to notify the reviewers feat: added ping-for-attention command to notify the reviewers May 24, 2023
@quetzalliwrites
Copy link
Member

This will be useful for people like me 😅

@@ -33,7 +33,11 @@ jobs:

- `/ready-to-merge` or `/rtm` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added
- `/do-not-merge` or `/dnm` - This comment will block automerging even if all conditions are met and ready-to-merge label is added
- `/autoupdate` or `/au` - This comment will add `autoupdate` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR.`
- `/autoupdate` or `/au` - This comment will add `autoupdate` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR.
- `/ping-for-attention` or `/pfa` or `/ptal` - This comment will add a comment to the PR asking for attention from the reviewrs who have not reviewed the PR yet.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just go with one way, and ptal is the best one as it is known short, just do ptal and longer version which probably is something like please take a look (probably something to check with urban dictionary)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Priyansh61 Priyansh61 requested a review from derberg May 30, 2023 08:42
KhudaDad414
KhudaDad414 previously approved these changes Jun 12, 2023
Copy link
Member

@KhudaDad414 KhudaDad414 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Priyansh61 hey, you added to help command info about rerequest and review but the PR contains only support for ptal 🤔

@derberg
Copy link
Member

derberg commented Jun 26, 2023

unless the plan is to have it here, to not add it in https://github.com/asyncapi/.github/pull/243/files to not face merge conflicts later? so we basically wait for #243 until it is approved and we merge both PRs together?

@KhudaDad414 as you were in review when I was out, did you discuss that these new workflows need to be added to https://github.com/asyncapi/.github/blob/master/.github/workflows/global-replicator.yml#L141?

@KhudaDad414
Copy link
Member

@derberg my bad, totally forgot that. 🤦

@KhudaDad414 KhudaDad414 self-requested a review June 26, 2023 12:07
@derberg
Copy link
Member

derberg commented Mar 11, 2024

@KhudaDad414 since a lot for work is done, but contributor is not around, maybe you can just commit directly to his for what is missing and we can merge?

KhudaDad414
KhudaDad414 previously approved these changes Mar 12, 2024
Copy link
Member

@KhudaDad414 KhudaDad414 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@derberg everything looks good from my side. 👍

derberg
derberg previously approved these changes Mar 27, 2024
Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@KhudaDad414 KhudaDad414 dismissed stale reviews from derberg and themself via 1c9bf53 April 2, 2024 18:49
@KhudaDad414
Copy link
Member

/rtm

@KhudaDad414 KhudaDad414 changed the title feat: added ping-for-attention command to notify the reviewers ci: added ping-for-attention command to notify the reviewers Apr 2, 2024
@asyncapi-bot asyncapi-bot merged commit bf6ed7d into asyncapi:master Apr 2, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

We need another command for PRs which acts as re-request for review and also reminder for codeowners
5 participants