From 075a360ba61e5168dfe803d33c5e343ad9a34b1b Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 21 May 2024 20:20:06 +0200 Subject: [PATCH 1/3] Add new workflow for issue thing. --- .github/workflows/cleanup.yml | 1 + .github/workflows/new-issue.yml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/new-issue.yml diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 5f66bd519e..6cd197bb3d 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -65,6 +65,7 @@ jobs: 'depsreview.yml', 'label-actions.yml', 'lock.yml', + 'new-issue.yml', 'release.yml', 'sonarcloud.yml', 'stale.yml' diff --git a/.github/workflows/new-issue.yml b/.github/workflows/new-issue.yml new file mode 100644 index 0000000000..0ff6b13114 --- /dev/null +++ b/.github/workflows/new-issue.yml @@ -0,0 +1,23 @@ +name: "Issues - Post to Gitter" +on: + issues: + types: + - opened +jobs: + post-to-gitter: + runs-on: ubuntu-latest + steps: + - name: Send issue to Gitter + id: replace-version + uses: JC5/firefly-iii-dev@main + with: + action: 'ff3:post-to-gitter issue' + output: '' + env: + FIREFLY_III_ROOT: /github/workspace + GH_TOKEN: "" + ISSUE_NUMBER: ${{ github.event.issue.number }} + ISSUE_TITLE: ${{ github.event.issue.title }} + ISSUE_USER: ${{ github.event.issue.user.login }} + REPOSITORY: "firefly-iii/firefly-iii" + GITTER_TOKEN: ${{ secrets.GITTER_TOKEN }} From bbec28591f693c531f85617b41fa3410d76245b1 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 22 May 2024 06:02:49 +0200 Subject: [PATCH 2/3] Add workflow that responds to PRs --- .github/workflows/new-issue.yml | 2 +- .github/workflows/new-pr.yml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/new-pr.yml diff --git a/.github/workflows/new-issue.yml b/.github/workflows/new-issue.yml index 0ff6b13114..79abf88d08 100644 --- a/.github/workflows/new-issue.yml +++ b/.github/workflows/new-issue.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Send issue to Gitter - id: replace-version + id: issue-gitter uses: JC5/firefly-iii-dev@main with: action: 'ff3:post-to-gitter issue' diff --git a/.github/workflows/new-pr.yml b/.github/workflows/new-pr.yml new file mode 100644 index 0000000000..8b663d12f1 --- /dev/null +++ b/.github/workflows/new-pr.yml @@ -0,0 +1,23 @@ +name: "PRs - Post to Gitter" +on: + pull_request: + types: + - opened +jobs: + post-to-gitter: + runs-on: ubuntu-latest + steps: + - name: Send PR to Gitter + id: issue-gitter + uses: JC5/firefly-iii-dev@main + with: + action: 'ff3:post-to-gitter pr' + output: '' + env: + FIREFLY_III_ROOT: /github/workspace + GH_TOKEN: "" + PR_NUMBER: ${{ github.event.pull_request.number }} + PR_TITLE: ${{ github.event.pull_request.title }} + PR_USER: ${{ github.event.pull_request.user.login }} + REPOSITORY: "firefly-iii/firefly-iii" + GITTER_TOKEN: ${{ secrets.GITTER_TOKEN }} From 252076ec1f24ebe6ee93d888b82923ca74e8aae9 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 22 May 2024 06:12:19 +0200 Subject: [PATCH 3/3] Add to cleanup --- .github/workflows/cleanup.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 6cd197bb3d..c9e50ab667 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -66,6 +66,7 @@ jobs: 'label-actions.yml', 'lock.yml', 'new-issue.yml', + 'new-pr.yml', 'release.yml', 'sonarcloud.yml', 'stale.yml'