Преглед изворни кода

add bitbucket sync and tidied up bots

Daniel Gibbs пре 6 година
родитељ
комит
894ead178e

+ 1 - 1
.github/FUNDING.yml

@@ -3,7 +3,7 @@
 github: dgibbs64 # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
 patreon: dgibbs # Replace with a single Patreon username
 open_collective: # Replace with a single Open Collective username
-ko_fi: dgibbs # Replace with a single Ko-fi username
+ko_fi: # Replace with a single Ko-fi username
 tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
 community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
 liberapay: # Replace with a single Liberapay username

+ 2 - 2
.github/ISSUE_TEMPLATE/bug_report.md

@@ -1,6 +1,6 @@
 ---
 name: Bug report
-about: Found a bug? Raise a report
+about: Found a bug? Raise a report.
 
 ---
 Issues raised here are **ONLY** for:
@@ -27,7 +27,7 @@ As a [user description], I want [desired action] so that [desired outcome].
 * **Distro:** [Ubuntu 18.04]
 * **Game:** [Garry's Mod]
 * **Command:** [Monitor]
-* **LinuxGSM version:** [v12.34.56]
+* **LinuxGSM version:** [v20.1.3]
 
 ## Further Information
 

+ 3 - 3
.github/ISSUE_TEMPLATE/feature_request.md

@@ -1,6 +1,6 @@
 ---
 name: Feature request
-about: Suggest an idea for this project
+about: Suggest an idea for LinuxGSM.
 
 ---
 
@@ -25,10 +25,10 @@ As a [user description], I want [desired action] so that [desired outcome].
 
 ## Basic info
 
-* **Distro:** [Ubuntu 18.04]
+* **Distro:** [Ubuntu 20.04]
 * **Game:** [Garry's Mod]
 * **Command:** [Monitor]
-* **LinuxGSM version:** [v12.34.56]
+* **LinuxGSM version:** [v20.1.3]
 
 ## Further Information
 

+ 1 - 1
.github/ISSUE_TEMPLATE/new-server-request.md

@@ -1,6 +1,6 @@
 ---
 name: New server request
-about: Suggest a new game server to be added
+about: Suggest a new game server to be added.
 
 ---
 

+ 3 - 3
.github/pull_request_template.md

@@ -6,7 +6,7 @@ Fixes #[issue]
 
 ## Type of change
 
-* [ ] Bug fix (change which fixes an issue).
+* [ ] Bug fix (a change which fixes an issue).
 * [ ] New feature (change which adds functionality).
 * [ ] New Server (new server added).
 * [ ] Refactor (restructures existing code).
@@ -20,9 +20,9 @@ PR will not be merged until all steps are complete.
 * [ ] This pull request uses the `develop` branch as its base.
 * [ ] This pull request Subject follows the Conventional Commits standard.
 * [ ] This code follows the style guidelines of this project.
-* [ ] I have performed a self-review of my own code.
+* [ ] I have performed a self-review of my code.
 * [ ] I have checked that this code is commented where required.
-* [ ] I have provided a detailed enough description of this PR.
+* [ ] I have provided a detailed with enough description of this PR.
 * [ ] I have checked If documentation needs updating.
 
 ## Documentation

+ 22 - 0
.github/workflows/git-sync.yml

@@ -0,0 +1,22 @@
+name: Github to Bitbucket sync
+# This action will sync the github repo with a backup bitbucket repo.
+# This will allow LinuxGSM to use Bitbucket as and alternative download if github fails.
+on: push
+jobs:
+  repo-sync:
+    runs-on: ubuntu-latest
+    steps:
+    - name: ssh
+      uses: webfactory/ssh-agent@v0.2.0
+      with:
+        ssh-private-key: ${{ secrets.BITBUCKET_SECRET }}
+        ssh_private_key: ${{ secrets.BITBUCKET_SECRET }}
+
+    - name: repo-sync
+      uses: wei/git-sync@v2
+      with:
+        source_repo: "https://github.com/GameServerManagers/LinuxGSM"
+        source_branch: "refs/heads/*"
+        destination_repo: "git@bitbucket.org:dgibbs64/linuxgsm.git"
+        destination_branch: "refs/heads/*"
+        ssh_private_key: ${{ secrets.BITBUCKET_SECRET }}