From 2b7c2a6138529006886081e02f4dacb6504c34b5 Mon Sep 17 00:00:00 2001 From: Syuugo Date: Tue, 30 Apr 2024 04:08:21 +0900 Subject: [PATCH] =?UTF-8?q?GitHub=20=E3=81=AE=E6=A7=8B=E6=88=90=E3=82=92?= =?UTF-8?q?=E6=9C=80=E9=81=A9=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/CODEOWNERS | 1 + .github/pull_request_template.md | 15 +++++++++++++++ .github/workflows/build.yml | 4 +--- .github/workflows/lock_issue.yml | 22 ++++++++++++++++++++++ .github/workflows/pr_moderation.yml | 16 ++++++++++++++++ settings.gradle | 2 +- 6 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/lock_issue.yml create mode 100644 .github/workflows/pr_moderation.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..ffd1bae --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @s1204IT diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..1c93b08 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,15 @@ +### 確認項目 + + +- [ ] 動作確認済み +- [ ] 誤字脱字無し + +--- +### 説明 + diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8784121..d01b8aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,8 +20,6 @@ jobs: build: name: Build runs-on: ubuntu-latest - permissions: - contents: write steps: - name: Checkout @@ -51,7 +49,7 @@ jobs: } >> $GITHUB_ENV - name: Check tag exists - uses: mukunku/tag-exists-action@v1.5.0 + uses: mukunku/tag-exists-action@v1.6.0 if: github.event.inputs.release == 'true' id: check-tag with: diff --git a/.github/workflows/lock_issue.yml b/.github/workflows/lock_issue.yml new file mode 100644 index 0000000..b8ee4f4 --- /dev/null +++ b/.github/workflows/lock_issue.yml @@ -0,0 +1,22 @@ +name: Lock issue + +on: + issues: + types: + - closed + - reopened + +jobs: + lock: + name: Lock + runs-on: ubuntu-latest + steps: + + - name: Lock issue + uses: s1204IT/lock-issues@v1.2 + if: github.event.issue.state == 'closed' + id: locked + + - name: Unlock issue + uses: s1204IT/unlock-issues@v1.2 + if: steps.locked.outcome != 'success' diff --git a/.github/workflows/pr_moderation.yml b/.github/workflows/pr_moderation.yml new file mode 100644 index 0000000..473e671 --- /dev/null +++ b/.github/workflows/pr_moderation.yml @@ -0,0 +1,16 @@ +name: PR Moderation + +on: + pull_request: + types: + - opened + - edited + - reopened + +jobs: + verify: + name: Verify + runs-on: ubuntu-latest + steps: + - name: Check tasklist + uses: Awayume/github-pr-tasklist-checker@v1 diff --git a/settings.gradle b/settings.gradle index fb47292..f0e46f3 100644 --- a/settings.gradle +++ b/settings.gradle @@ -15,4 +15,4 @@ dependencyResolutionManagement { } rootProject.name = 'Galaxy CamSnd' -include ':app' +include 'app'