-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b598c9
commit 444f0c3
Showing
20 changed files
with
834 additions
and
363 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
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
on: issue_comment | ||
name: Issue Comments - retest | ||
env: | ||
OPP_PRODUCTION_TYPE: "ocp" | ||
|
||
jobs: | ||
handle_comments: | ||
name: Check comments for /retest | ||
if: | | ||
startsWith(github.event.comment.body, '/retest') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Restest command handler | ||
id: command | ||
uses: xt0rted/slash-command-action@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
command: retest | ||
reaction: "true" | ||
reaction-type: "eyes" | ||
allow-edits: "true" | ||
permission-level: read | ||
|
||
- name: Doing hold | ||
uses: actions/github-script@v6 | ||
if: | | ||
steps.command.outputs.command-name == 'retest' | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: '/hold' | ||
}) | ||
- name: Sleep for 10 seconds | ||
uses: jakejarvis/wait-action@master | ||
with: | ||
time: '10s' | ||
|
||
- name: Doing hold cancel | ||
uses: actions/github-script@v6 | ||
if: | | ||
steps.command.outputs.command-name == 'retest' | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: '/hold cancel' | ||
}) |
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
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
Oops, something went wrong.