generated from TBD54566975/tbd-project-template
-
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.
- Loading branch information
Tania Chakraborty
authored and
Tania Chakraborty
committed
Sep 30, 2024
1 parent
f94184c
commit b9fd780
Showing
1 changed file
with
26 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,26 @@ | ||
name: Auto-assign issue to contributor | ||
on: | ||
issue_comment: | ||
|
||
jobs: | ||
assign: | ||
name: Take an issue | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
if: ${{ github.event.created_at >= format('{0}-10-01T00:00:00Z', github.event.created_at.substr(0,4)) && github.event.created_at <= format('{0}-10-31T23:59:59Z', github.event.created_at.substr(0,4)) }} | ||
steps: | ||
- name: take the issue | ||
uses: bdougie/take-action@1439165ac45a7461c2d89a59952cd7d941964b87 | ||
with: | ||
message: Thanks for taking this issue! Let us know if you have any questions! | ||
trigger: .take | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
log_out_of_october: | ||
name: Log when outside October | ||
runs-on: ubuntu-latest | ||
if: ${{ !(github.event.created_at >= format('{0}-10-01T00:00:00Z', github.event.created_at.substr(0,4)) && github.event.created_at <= format('{0}-10-31T23:59:59Z', github.event.created_at.substr(0,4))) }} | ||
steps: | ||
- name: Log skipped action | ||
run: echo "Action skipped because the current date is not in October." |