[go: nahoru, domu]

Skip to content

Commit

Permalink
Inbound PRs from Intel for onednn changes are assigned to onednn team…
Browse files Browse the repository at this point in the history
…, defaults to TF Dev Infra

PiperOrigin-RevId: 450428361
  • Loading branch information
tensorflower-gardener committed May 23, 2022
1 parent 6225c81 commit 9e274ab
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/trusted_partners.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const get_email_domain = async ({github, username}) => {
/** For trusted parters like intel, we want to auto-run tests and mark the PR as ready to pull
This allows us to reduce the delay to external partners
Add Labels - kokoro:force-run, ready to pull
The PR is also assigned to Mihai so it doesn't have to wait for assignment
The PR is also assigned to specific teams to fast track review
Additional reviewers can be added manually based on PR contents
@param {!object}
github enables querying for PR and also create issue using rest endpoint
Expand All @@ -51,7 +51,14 @@ const get_email_domain = async ({github, username}) => {
*/
const intel_action = async ({github, context}) => {
const labels = ['kokoro:force-run', 'ready to pull'];
const assignees = ['mihaimaruseac', 'nitins17', 'learning-to-play'];

// Assign to individual teams. Defaults to devinfra members
const onednn_assignees = ['penpornk'];
let assignees = ['nitins17', 'learning-to-play'];
const title = context.payload.pull_request && context.payload.pull_request.title;
if (title && title.toLowerCase().includes("onednn"))
assignees = onednn_assignees;

const resp_label = await github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand Down

0 comments on commit 9e274ab

Please sign in to comment.