Skip to content

Exclude model_computed_fields from docs #14

Exclude model_computed_fields from docs

Exclude model_computed_fields from docs #14

Workflow file for this run

name: Team review
on:
pull_request_target:
types: [review_requested]
jobs:
review:
runs-on: ubuntu-latest
if: ${{ github.event.requested_team.name == 'mlflow-team'}}
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.MLFLOW_AUTOMATION_TOKEN }}
script: |
const { owner, repo } = context.repo;
const pull_number = context.payload.pull_request.number;
const members = [
"B-Step62",
"BenWilson2",
"daniellok-db",
"harupy",
"serena-ruan",
"WeichenXu123",
];
const author = context.payload.pull_request.user.login;
const reviews = await github.rest.pulls.listReviews({
owner,
repo,
pull_number,
});
const approved = reviews.data
.filter((r) => r.state === "APPROVED")
.map((r) => r.user.login);
await github.rest.pulls.requestReviewers({
owner,
repo,
pull_number,
reviewers: members.filter((m) => !approved.includes(m) && m !== author),
});
await github.rest.pulls.removeRequestedReviewers({
owner,
repo,
pull_number,
reviewers: [],
team_reviewers: ["mlflow-team"]
});