Skip to content

Commit 2994699

Browse files
committed
chore: adopt shared SDK PR template and auto-request sdk-team reviews
- Replace PR template with the shared SDK template - Add workflow to request review from @Iterable/sdk-team on new PRs
1 parent 05c8e67 commit 2994699

2 files changed

Lines changed: 43 additions & 4 deletions

File tree

.github/pull_request_template.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1-
## 🔹 JIRA Ticket(s) if any
1+
# 📝 Summary
2+
> _This should be a 150 characters summary of the changes on this PR_
23
3-
* [MOB-XXXX](https://iterable.atlassian.net/browse/MOB-XXXX)
4+
###### 🎟️ Jira Ticket: [SDK-XXXX](https://iterable.atlassian.net/browse/SDK-XXXX)
45

5-
## ✏️ Description
6+
## 📖 Description
7+
> Please provide a description of what this pull request does.
68
7-
> Please provide a brief description of what this pull request does.
9+
## 🧪 How to test?
10+
> How to test the changes added?
11+
12+
## 📹 Loom recording if applicable
13+
> If it helps the reviewer, add a short Loom going over the changes or showcasing the change in behavior.
14+
15+
#### 🐞 Github Issues solved
16+
> If this solves any open GH Issues, please link them here.
17+
18+
#### 📚 Docs PR if applicable
19+
> Open a PR on the [Docs Repo](https://github.com/Iterable/iterable-docs) documenting the changes.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Assign SDK Team Reviewers
2+
3+
on:
4+
pull_request:
5+
types: [opened, ready_for_review]
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
assign-reviewers:
12+
if: github.event.pull_request.draft == false
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/github-script@v7
16+
with:
17+
script: |
18+
try {
19+
await github.rest.pulls.requestReviewers({
20+
owner: context.repo.owner,
21+
repo: context.repo.repo,
22+
pull_number: context.payload.pull_request.number,
23+
team_reviewers: ['sdk-team'],
24+
});
25+
} catch (error) {
26+
core.warning(`Failed to request sdk-team review: ${error.message}`);
27+
}

0 commit comments

Comments
 (0)