generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IDWA-28] Close issue when project is "Done" (#39)
* [IDWA-28] Close issue when project is Done * [IDWA-28] Close issue when project is Done * put back PAT instead of default token * test with default token again * back to PAT * see what the despatch * rm push and add step for OCR team * test without open statues option * test with todo * test with in progress * test with review * test with done * rm open_statuses option * fix typo in comment --------- Co-authored-by: Derek Dombek <derek.a.dombek.com>
- Loading branch information
1 parent
880895c
commit 3110fcb
Showing
2 changed files
with
27 additions
and
2 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 |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
project-url: https://github.com/orgs/CDCgov/projects/34 | ||
github-token: ${{ secrets.ASSIGN_ISSUES_TO_PROJECTS }} #this custom action doesn't allow the default GITHUB_TOKEN, it requires us to use a PAT as the secret unfortunetly.. | ||
github-token: ${{ secrets.ASSIGN_ISSUES_TO_PROJECTS }} #this custom action doesn't allow the default GITHUB_TOKEN, it requires us to use a PAT as the secret unfortunately.. | ||
add-to-ocr-project: | ||
if: contains(github.event.issue.labels.*.name, 'OCR') | ||
name: Add issue to the ocr project | ||
|
@@ -21,4 +21,4 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
project-url: https://github.com/orgs/CDCgov/projects/33 | ||
github-token: ${{ secrets.ASSIGN_ISSUES_TO_PROJECTS }} #this custom action doesn't allow the default GITHUB_TOKEN, it requires us to use a PAT as the secret unfortunetly.. | ||
github-token: ${{ secrets.ASSIGN_ISSUES_TO_PROJECTS }} #this custom action doesn't allow the default GITHUB_TOKEN, it requires us to use a PAT as the secret unfortunately.. |
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,25 @@ | ||
name: Project Issue State Sync | ||
on: | ||
schedule: | ||
# Runs on minute 0 every 2 hours | ||
- cron: 0 0-23/2 * * * | ||
workflow_dispatch: | ||
# Manual trigger | ||
jobs: | ||
issue-state-sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Sync issues for dedupe | ||
uses: dasmerlon/project-issue-state-sync@v2 | ||
with: | ||
github_token: ${{ secrets.CLOSE_ISSUE_WHEN_PROJECT_DONE }} #this custom action doesn't allow the default GITHUB_TOKEN, it requires us to use a PAT as the secret unfortunately.. | ||
owner: CDCgov | ||
project_number: 34 | ||
closed_statuses: Done | ||
- name: Sync issues for OCR | ||
uses: dasmerlon/project-issue-state-sync@v2 | ||
with: | ||
github_token: ${{ secrets.CLOSE_ISSUE_WHEN_PROJECT_DONE }} #this custom action doesn't allow the default GITHUB_TOKEN, it requires us to use a PAT as the secret unfortunately.. | ||
owner: CDCgov | ||
project_number: 33 | ||
closed_statuses: Done |