Skip to content

Commit 698abab

Browse files
Chr1sNoCalcProgrammer1
authored andcommitted
Added message for users submitting to Github
1 parent 12dd340 commit 698abab

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/issue_opened.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Issue Opened
2+
3+
on:
4+
issues:
5+
types: [opened,reopened]
6+
7+
jobs:
8+
issue_greeting:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
steps:
13+
- name: Greeting
14+
run: gh issue comment "$NUMBER" --body "$BODY"
15+
env:
16+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
GH_REPO: ${{ github.repository }}
18+
NUMBER: ${{ github.event.issue.number }}
19+
BODY: >
20+
This Github repo is a mirror of the main repository on Gitlab.
21+
For any new issue please refer to https://gitlab.com/CalcProgrammer1/OpenRGB/-/issues

.github/workflows/pr_opened.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: PR Opened
2+
3+
on:
4+
pull_request:
5+
types: [opened,reopened]
6+
7+
jobs:
8+
pr_greeting:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
steps:
13+
- name: Greeting
14+
run: gh pr comment "$NUMBER" --body "$BODY"
15+
env:
16+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
GH_REPO: ${{ github.repository }}
18+
NUMBER: ${{ github.event.pull_request.number }}
19+
BODY: >
20+
This Github repo is a mirror of the main repository on Gitlab.
21+
Please fork https://gitlab.com/CalcProgrammer1/OpenRGB/ and raise the appropriate merge request on Gitlab.

0 commit comments

Comments
 (0)