Skip to content

Commit

Permalink
ci: add reusable issue workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed Jun 12, 2024
1 parent 4dbeb10 commit a670ffd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/comment-and-close-reusable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
workflow_call:
secrets:
DHIS2_BOT_GITHUB_TOKEN:
required: true

jobs:
comment-and-close:
runs-on: ubuntu-latest
steps:
- uses: vardevs/candc@v1
with:
close-comment: 'If you would like to file a bug report or feature request, please refer to our issue tracker: https://dhis2.atlassian.net'
exempt-users: dhis2-bot,dependabot,kodiakhq
github-token: ${{secrets.DHIS2_BOT_GITHUB_TOKEN}}
9 changes: 2 additions & 7 deletions .github/workflows/comment-and-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,5 @@ on:

jobs:
comment-and-close:
runs-on: ubuntu-latest
steps:
- uses: vardevs/candc@v1
with:
close-comment: 'If you would like to file a bug report or feature request, please refer to our issue tracker: https://jira.dhis2.org'
exempt-users: dhis2-bot,dependabot,kodiakhq
github-token: ${{secrets.DHIS2_BOT_GITHUB_TOKEN}}
uses: ./.github/workflows/comment-and-close-reusable.yml
secrets: inherit

0 comments on commit a670ffd

Please sign in to comment.