Skip to content

Commit

Permalink
Create schedule-monthly-reopen.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
t-will-gillis authored Nov 23, 2023
1 parent 1a1329f commit f4f0b03
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/schedule-monthly-reopen.yml
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 }}

0 comments on commit f4f0b03

Please sign in to comment.