-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Arthur Dzieniszewski <[email protected]>
- Loading branch information
Showing
5 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ jobs: | |
path: "test.txt" | ||
commit-message: "debug" | ||
author: "Gregor Martynus <[email protected]>" | ||
reviewers: gr2m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,3 +209,39 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- if: ${{ fromJson(steps.get-pull-request.outputs.data).title != 'Updated test pull request' }} | ||
run: 'echo "Pull request title is \"${{ fromJson(steps.get-pull-request.outputs.data).title }}\" but expected \"Updated test pull request\"" && exit 1' | ||
|
||
addReviewers: | ||
name: "[TEST] Add Reviewers" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
- run: "date > test.txt" | ||
- run: "npm ci" | ||
- run: "npm run build" | ||
- uses: ./ | ||
id: run | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ACTIONS_STEP_DEBUG: true | ||
with: | ||
title: Test Add Reviewers | ||
body: This pull request is part of the CI - please ignore. | ||
branch: test-add-reviewers-${{ github.run_number }} | ||
commit-message: "Just testing [skip ci]" | ||
reviewers: gr2m | ||
- uses: octokit/[email protected] | ||
id: get-pull-request | ||
with: | ||
route: GET /repos/{owner}/{repo}/pulls/{pull_number} | ||
owner: gr2m | ||
repo: create-or-update-pull-request-action | ||
pull_number: ${{ steps.run.outputs.pull-request-number }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git :test-add-reviewers-${{ github.run_number }}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- if: ${{ !contains(toJson(fromJson(steps.get-pull-request.outputs.data).requested_reviewers.*.login), 'gr2m') }} | ||
run: 'echo "Requested reviewers are \"${{ toJson(fromJson(steps.get-pull-request.outputs.data).requested_reviewers.*.login) }}\" but expected \"[\n gr2m \n]\"" && exit 1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ with: | |
author: "Lorem J. Ipsum <[email protected]>" | ||
labels: label1, label2 | ||
assignees: user1, user2 | ||
reviewers: user1, user2 | ||
auto-merge: squash | ||
update-pull-request-title-and-body: false | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters