mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
Request Akvelon team as reviewers for image update pull requests (#3915)
This commit is contained in:
committed by
GitHub
parent
83fcc4aeab
commit
a98af57cf3
18
.github/workflows/create_pull_request.yml
vendored
18
.github/workflows/create_pull_request.yml
vendored
@@ -21,15 +21,29 @@ jobs:
|
|||||||
git push origin ${{ github.event.client_payload.ReleaseBranchName }}-docs
|
git push origin ${{ github.event.client_payload.ReleaseBranchName }}-docs
|
||||||
|
|
||||||
- name: Create pull request for ${{ github.event.client_payload.ReleaseBranchName }}
|
- name: Create pull request for ${{ github.event.client_payload.ReleaseBranchName }}
|
||||||
|
id: create-pr
|
||||||
uses: actions/github-script@v2
|
uses: actions/github-script@v2
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
script: |
|
script: |
|
||||||
github.pulls.create({
|
let response = await github.pulls.create({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
title: "${{ github.event.client_payload.PullRequestTitle }}",
|
title: "${{ github.event.client_payload.PullRequestTitle }}",
|
||||||
head: "${{ github.event.client_payload.ReleaseBranchName }}-docs",
|
head: "${{ github.event.client_payload.ReleaseBranchName }}-docs",
|
||||||
base: "${{ github.event.client_payload.PullRequestBase }}",
|
base: "${{ github.event.client_payload.PullRequestBase }}",
|
||||||
body: `${{ github.event.client_payload.PullRequestBody }}`
|
body: `${{ github.event.client_payload.PullRequestBody }}`
|
||||||
});
|
});
|
||||||
|
return response.data.number
|
||||||
|
|
||||||
|
- name: Request reviewers
|
||||||
|
uses: actions/github-script@v2
|
||||||
|
with:
|
||||||
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
script: |
|
||||||
|
github.pulls.requestReviewers({
|
||||||
|
owner: context.repo.owner
|
||||||
|
repo: context.repo.repo
|
||||||
|
pull_number: ${{ steps.create-pr.outputs.result }}
|
||||||
|
team_reviewers: ['virtual-environments-akvelon']
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user