-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This can be done with using the command '/status check', assigning a user and unassigning a user.
- Loading branch information
1 parent
f813cdc
commit 003fa84
Showing
3 changed files
with
43 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -72,3 +72,21 @@ jobs: | |
} else { | ||
Test-NewIssue -issueNumber ${{ github.event.issue.number }} -repository "${{ github.event.repository.full_name }}" | ||
} | ||
status_recheck: | ||
if: ${{ (needs.comments.outputs.success == 'True' || startsWith(github.event.comment.body, '/status check') && github.event.issue.state == 'open' }} | ||
runs-on: ubuntu-latest | ||
needs: comments | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Pull latest commits | ||
run: git pull | ||
- name: Run status check on Issue | ||
run: | | ||
Import-Module "${{ github.workspace }}\scripts\validation.psm1" | ||
if ("${{ github.event.comment.body }}" -match "^/status check") { | ||
Update-Issue -issueNumber ${{ github.event.issue.number }} -repository "${{ github.event.repository.full_name }}" -commentUser "${{ github.event.sender.login }}" | ||
} else { | ||
Update-Issue -issueNumber ${{ github.event.issue.number }} -repository "${{ github.event.repository.full_name }}" | ||
} |
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: Status Initialization | ||
- name: Status Updating | ||
run: | | ||
Import-Module "${{ github.workspace }}/scripts/validation.psm1" | ||
$arguments = @{ | ||
|
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,24 @@ | ||
name: Status Checks | ||
|
||
on: | ||
issues: | ||
types: [assigned, unassigned] | ||
|
||
jobs: | ||
update: | ||
if: ${{ contains(github.event.issue.labels.*.name, format('{0}:{1}', 'Status', ' Available For Maintainer(s)')) }} | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: Status Initialization | ||
run: | | ||
Import-Module "${{ github.workspace }}/scripts/validation.psm1" | ||
$arguments = @{ | ||
issueNumber = ${{ github.event.issue.number }} | ||
repository = "${{ github.event.repository.full_name }}" | ||
} | ||
Update-IssueStatus @arguments | ||
shell: pwsh |