diff --git a/.github/workflows/repo-moderator.yml b/.github/workflows/repo-moderator.yml new file mode 100644 index 0000000..6ff601a --- /dev/null +++ b/.github/workflows/repo-moderator.yml @@ -0,0 +1,20 @@ +name: Repo Moderator + +on: + issues: + types: [labeled, unlabeled, closed, reopened, assigned, unassigned] + pull_request: + types: [closed, reopened, assigned, unassigned] + +jobs: + revert-action: + if: github.actor != 'howlbot-integration' && !startsWith(github.actor, 'C4-') && !startsWith(github.actor, 'c4-') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Revert label changes + uses: code-423n4/repo-moderator@main + with: + github-token: ${{ secrets.ACTIONS_TOKEN }} + sponsor-team-slug: "2024-11-ethena-labs-sponsors" + allowed-labels: "sponsor confirmed, sponsor disputed, sponsor acknowledged, critical"