Skip to content

feat(prow): use request review for assign/unassign #1905

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

Merged

Conversation

chmouel
Copy link
Member

@chmouel chmouel commented Feb 3, 2025

Updated the prow script to support request review for assign and unassign commands. Changed the API endpoint to requested_reviewers and adjusted the HTTP method accordingly.

Changes

Submitter Checklist

  • 📝 Ensure your commit message is clear and informative. Refer to the How to write a git commit message guide. Include the commit message in the PR body rather than linking to an external site (e.g., Jira ticket).

  • ♽ Run make test lint before submitting a PR to avoid unnecessary CI processing. Consider installing pre-commit and running pre-commit install in the repository root for an efficient workflow.

  • ✨ We use linters to maintain clean and consistent code. Run make lint before submitting a PR. Some linters offer a --fix mode, executable with make fix-linters (ensure markdownlint and golangci-lint are installed).

  • 📖 Document any user-facing features or changes in behavior.

  • 🧪 While 100% coverage isn't required, we encourage unit tests for code changes where possible.

  • 🎁 If feasible, add an end-to-end test. See README for details.

  • 🔎 Address any CI test flakiness before merging, or provide a valid reason to bypass it (e.g., token rate limitations).

  • If adding a provider feature, fill in the following details:

Git Provider Supported
GitHub App ✅️
GitHub Webhook ❌️
Gitea ❌️
GitLab ❌️
Bitbucket Cloud ❌️
Bitbucket Server ❌️

(update the documentation accordingly)

Updated the prow script to support request review for assign and
unassign commands. Changed the API endpoint to requested_reviewers
and adjusted the HTTP method accordingly.

Signed-off-by: Chmouel Boudjnah <[email protected]>
@chmouel chmouel force-pushed the use-request-review-for-assign branch from 2d3b451 to 0df350c Compare February 3, 2025 10:29
@chmouel
Copy link
Member Author

chmouel commented Feb 3, 2025

/assign @vdemeester

Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

Maybe we should have the option for both ? 😛
But as is, yay 🎉 🤗

@vdemeester vdemeester merged commit 5f32325 into openshift-pipelines:main Feb 3, 2025
3 checks passed
@chmouel
Copy link
Member Author

chmouel commented Feb 3, 2025

is anyone using the Assignees field ? it supposed to assign someone else to work on it, i don't think we ever do this kind of thing here (except via reviews)

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

Successfully merging this pull request may close these issues.

2 participants