-
-
Notifications
You must be signed in to change notification settings - Fork 782
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
1a1329f
commit f4f0b03
Showing
1 changed file
with
46 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Schedule Monthly- Reopen Issue | ||
on: | ||
issues: | ||
types: [reopened] | ||
|
||
jobs: | ||
# Checks to see whether the title of the reopened issue contains the words 'Review Inactive Team Members' | ||
First-Pass: | ||
if: ${{ contains(github.event.issue.title, 'Review Inactive Team Members') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check comment | ||
id: check-comment | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const issueNumber = ${{ github.event.issue.number }} | ||
console.log("The issue number is: " + issueNumber) | ||
return issueNumber | ||
# Apply the `ready for dev lead` label | ||
- name: Add `ready for dev lead` label | ||
id: add-dev-lead | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
github.rest.issues.addLabels({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: ${{ steps.check-comment.outputs.result }}, | ||
labels: ['ready for dev lead'], | ||
}); | ||
console.log("Add the `ready for dev lead` label.") | ||
# Moves reopened issue to 'Questions/ In Review" column | ||
Move-Reopened-Issue: | ||
needs: First-Pass | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(github.event.issue.title, 'Review Inactive Team Members') }} | ||
steps: | ||
- name: Move Reopened Issue | ||
uses: alex-page/[email protected] | ||
with: | ||
project: Project Board | ||
column: 'Questions / In Review' | ||
repo-token: ${{ secrets.TEST_GHAS }} |