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

feat: add support for team review requests #180

Merged
merged 2 commits into from Jul 24, 2023

Conversation

fernandogelin
Copy link
Contributor

This PR adds the new input argument pull_request_team_reviewers. GitHub's API to request reviewers takes different arguments for users and teams, for example:

curl -L \
  -X POST \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/repos/OWNER/REPO/pulls/PULL_NUMBER/requested_reviewers \
  -d '{"reviewers":["octocat","hubot","other_user"],"team_reviewers":["justice-league"]}'

With these changes, PRs opened by this action can now have requested reviews from users and/or teams. Both are optional.

Documentation has also been updated to include the new argument.

@fernandogelin
Copy link
Contributor Author

fernandogelin commented Jul 21, 2023

Hi @andrii-bodnar, we are starting to use Crowdin at my company and we have a need to request team reviews when using this action. Would love if you or someone at Crowdin could review this PR. And let me know your thoughts. Thank you so much!

@andrii-bodnar
Copy link
Member

andrii-bodnar commented Jul 21, 2023

Hi @fernandogelin, thanks a lot for the contribution! It's a nice feature for this GH Action! 🚀

@andrii-bodnar andrii-bodnar merged commit ecdf564 into crowdin:master Jul 24, 2023
2 checks passed
@fernandogelin fernandogelin deleted the feat/team-reviewers branch July 24, 2023 13:21
kodiakhq bot pushed a commit to weareinreach/InReach that referenced this pull request Jul 24, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [Codesee-io/codesee-action](https://togithub.com/Codesee-io/codesee-action) | action | digest | `7e12789` -> `7d6ca0f` |
| [chromaui/action](https://togithub.com/chromaui/action) | action | digest | `44caff7` -> `aaf825f` |
| [crowdin/github-action](https://togithub.com/crowdin/github-action) | action | minor | `v1.11.0` -> `v1.12.0` |

---

### Release Notes

<details>
<summary>crowdin/github-action (crowdin/github-action)</summary>

### [`v1.12.0`](https://togithub.com/crowdin/github-action/releases/tag/v1.12.0)

[Compare Source](https://togithub.com/crowdin/github-action/compare/v1.11.0...v1.12.0)

##### What's Changed

-   feat: add support for team review requests by [@&#8203;fernandogelin](https://togithub.com/fernandogelin) in [crowdin/github-action#180

```diff
​- name: Crowdin Action
  uses: crowdin/github-action@v1
  with:
    upload_sources: true
    download_translations: true
    localization_branch_name: l10n_crowdin_translations
    create_pull_request: true
    pull_request_title: 'New Crowdin Translations'
    pull_request_body: 'New Crowdin translations by Crowdin GH Action'
    pull_request_base_branch_name: 'main'
+    pull_request_team_reviewers: 'crowdin-team-reviewer'
  env:
    GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
    CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
    CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
```

##### New Contributors

-   [@&#8203;fernandogelin](https://togithub.com/fernandogelin) made their first contribution in [crowdin/github-action#180

**Full Changelog**: crowdin/github-action@v1...v1.12.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/weareinreach/InReach).



PR-URL: #679
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants