From 698ababc6d74070831cd5838a1d82272424efe21 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 12 Jan 2025 12:29:27 +1100 Subject: [PATCH] Added message for users submitting to Github --- .github/workflows/issue_opened.yml | 21 +++++++++++++++++++++ .github/workflows/pr_opened.yml | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/issue_opened.yml create mode 100644 .github/workflows/pr_opened.yml diff --git a/.github/workflows/issue_opened.yml b/.github/workflows/issue_opened.yml new file mode 100644 index 00000000..36975f09 --- /dev/null +++ b/.github/workflows/issue_opened.yml @@ -0,0 +1,21 @@ +name: Issue Opened + +on: + issues: + types: [opened,reopened] + +jobs: + issue_greeting: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Greeting + run: gh issue comment "$NUMBER" --body "$BODY" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} + BODY: > + This Github repo is a mirror of the main repository on Gitlab. + For any new issue please refer to https://gitlab.com/CalcProgrammer1/OpenRGB/-/issues diff --git a/.github/workflows/pr_opened.yml b/.github/workflows/pr_opened.yml new file mode 100644 index 00000000..adbcc965 --- /dev/null +++ b/.github/workflows/pr_opened.yml @@ -0,0 +1,21 @@ +name: PR Opened + +on: + pull_request: + types: [opened,reopened] + +jobs: + pr_greeting: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Greeting + run: gh pr comment "$NUMBER" --body "$BODY" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.pull_request.number }} + BODY: > + This Github repo is a mirror of the main repository on Gitlab. + Please fork https://gitlab.com/CalcProgrammer1/OpenRGB/ and raise the appropriate merge request on Gitlab.