From 6fbf549462731ff26c0ff7c02b8be99a3068541a Mon Sep 17 00:00:00 2001 From: Der_Googler <54764558+DerGoogler@users.noreply.github.com> Date: Mon, 29 Jul 2024 19:31:34 +0200 Subject: [PATCH] Update workflow Removed submission checker. This action is hard to maintain. Once a module is approved the bot will only comment it the title includes `[Module]` and the `approved` label. Some other fine tuned adjustments --- .github/workflows/submission-labels.yml | 14 ++++----- .github/workflows/submission-opned.yml | 41 ------------------------- 2 files changed, 7 insertions(+), 48 deletions(-) delete mode 100644 .github/workflows/submission-opned.yml diff --git a/.github/workflows/submission-labels.yml b/.github/workflows/submission-labels.yml index 4d44c31..d653d17 100644 --- a/.github/workflows/submission-labels.yml +++ b/.github/workflows/submission-labels.yml @@ -21,8 +21,8 @@ jobs: your module submission was labeled with a deadline of **two weeks**. If you don't respond within that period, your module will be rejected. - Best regards, - The MMAR Team + *Best regards, + The MMAR Team* spam: if: ${{ contains(github.event.label.name, 'spam') }} @@ -47,8 +47,8 @@ jobs: your submission was closed due to being considered spam. - Best regards, - The MMAR Team + *Best regards, + The MMAR Team* - name: Close issue uses: actions-cool/issues-helper@v3 @@ -59,7 +59,7 @@ jobs: issue-number: ${{ github.event.issue.number }} approved: - if: ${{ contains(github.event.label.name, 'approved') }} + if: ${{ startsWith(github.event.issue.title, '[Module]') && contains(github.event.label.name, 'approved') }} runs-on: ubuntu-latest steps: - name: Add labels @@ -93,8 +93,8 @@ jobs: Make sure to change your local repository's push URLs or configure 2 parallel push URLs. - Best regards, - The MMAR Team + *Best regards, + The MMAR Team* - name: Close issue uses: actions-cool/issues-helper@v3 diff --git a/.github/workflows/submission-opned.yml b/.github/workflows/submission-opned.yml deleted file mode 100644 index 0f2e66f..0000000 --- a/.github/workflows/submission-opned.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Submission Checker - -on: - issues: - types: [opened] - -jobs: - submission-check: - if: ${{ !startsWith(github.event.issue.title, '[Module]') }} - runs-on: ubuntu-latest - steps: - - name: Create comment - uses: actions-cool/issues-helper@v3 - with: - actions: 'create-comment' - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - body: | - Hey @${{ github.event.issue.user.login }}, - - your module submission is invalid, a submission should start with `[Module] `. - Feel free to re-submit your module with the correct submission title. - - Best regards, - The MMAR Team - - - name: Set labels - uses: actions-cool/issues-helper@v3 - with: - actions: 'set-labels' - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - labels: 'invalid' - - - name: Close submission - uses: actions-cool/issues-helper@v3 - with: - actions: 'close-issue' - close-reason: not_planned - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }}