Skip to content

Commit 1edd9b5

Browse files
PR comment function added (#24)
* add PR comment feature * add js * fix URL, QR * fix QR * fix comment, add flag input * update comment * fix version, add CODEOWNERS * formatting
1 parent ec84349 commit 1edd9b5

File tree

9 files changed

+27064
-138
lines changed

9 files changed

+27064
-138
lines changed

.github/CODEOWNERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Dependabot関連のファイルの所有者
2+
/.github/dependabot.yml @enomoto-kazuya
3+
/package.json @enomoto-kazuya
4+
/package-lock.json @enomoto-kazuya
5+
/yarn.lock @enomoto-kazuya
6+
7+
# アクションのソースコード
8+
/src/ @enomoto-kazuya
9+
/action.yml @enomoto-kazuya

.github/dependabot.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ updates:
2525
ignore:
2626
- dependency-name: "*"
2727
update-types: ["version-update:semver-major"]
28-
# 追加: PRのレビュー担当者設定
29-
reviewers:
30-
- "enomoto-kazuya"
3128
# 追加: 依存関係のグループ化を最適化
3229
groups:
3330
# 開発依存関係のグループ

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v4
2424

2525
- name: Upload to DeployGate
26-
uses: DeployGate/deploygate-upload-github-action@v1.0.1
26+
uses: DeployGate/deploygate-upload-github-action@v1.1.0
2727
with:
2828
api_token: ${{ secrets.DEPLOYGATE_API_TOKEN }}
2929
owner_name: ${{ secrets.DEPLOYGATE_OWNER_NAME }}
@@ -49,7 +49,7 @@ When using this action, we recommend using the full version number (e.g., `@1.0.
4949

5050
Example:
5151
```yaml
52-
- uses: DeployGate/[email protected].1
52+
- uses: DeployGate/deploygate-upload-github-action@v1.1.0
5353
```
5454

5555
## Input parameters
@@ -64,6 +64,7 @@ Example:
6464
| `distribution_name` | ❌ | Distribution page's name |
6565
| `release_note` | ❌ | Message displayed during distribution page app updates |
6666
| `disable_notify` | ❌ | (iOS only) Disable Push notification emails |
67+
| `enable_pr_comment` | ❌ | Enable/Disable PR comment creation (Default: true) |
6768

6869
## Output
6970

@@ -92,19 +93,21 @@ This action uses [Dependabot](https://docs.github.com/ja/code-security/dependabo
9293
### Basic Usage
9394
```yaml
9495
- name: Upload to DeployGate
95-
uses: DeployGate/deploygate-upload-github-action@v1.0.1
96+
uses: DeployGate/deploygate-upload-github-action@v1.1.0
9697
with:
9798
api_token: ${{ secrets.DEPLOYGATE_API_TOKEN }}
9899
owner_name: ${{ secrets.DEPLOYGATE_OWNER_NAME }}
99100
file_path: /path/to/app_file
100-
message: "message example"
101+
message: "PR #${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}"
102+
distribution_name: "PR #${github.event.pull_request.number}"
103+
enable_pr_comment: true
101104
```
102105

103106
### Using Action Outputs
104107
```yaml
105108
- name: Upload to DeployGate
106109
id: deploygate
107-
uses: DeployGate/deploygate-upload-github-action@v1.0.1
110+
uses: DeployGate/deploygate-upload-github-action@v1.1.0
108111
with:
109112
api_token: ${{ secrets.DEPLOYGATE_API_TOKEN }}
110113
owner_name: ${{ secrets.DEPLOYGATE_OWNER_NAME }}
@@ -150,7 +153,7 @@ jobs:
150153
151154
- name: Upload to DeployGate
152155
id: deploygate
153-
uses: DeployGate/deploygate-upload-github-action@v1.0.1
156+
uses: DeployGate/deploygate-upload-github-action@v1.1.0
154157
with:
155158
api_token: ${{ secrets.DEPLOYGATE_API_TOKEN }}
156159
owner_name: ${{ secrets.DEPLOYGATE_OWNER_NAME }}
@@ -185,7 +188,7 @@ jobs:
185188
186189
- name: Upload AAB to DeployGate
187190
id: deploygate
188-
uses: DeployGate/deploygate-upload-github-action@v1.0.1
191+
uses: DeployGate/deploygate-upload-github-action@v1.1.0
189192
with:
190193
api_token: ${{ secrets.DEPLOYGATE_API_TOKEN }}
191194
owner_name: ${{ secrets.DEPLOYGATE_OWNER_NAME }}
@@ -223,7 +226,7 @@ jobs:
223226
224227
- name: Upload APK to DeployGate
225228
id: deploygate
226-
uses: DeployGate/deploygate-upload-github-action@v1.0.1
229+
uses: DeployGate/deploygate-upload-github-action@v1.1.0
227230
with:
228231
api_token: ${{ secrets.DEPLOYGATE_API_TOKEN }}
229232
owner_name: ${{ secrets.DEPLOYGATE_OWNER_NAME }}

action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,17 @@ author: 'DeployGate Inc.'
55
# Define explicit permissions
66
permissions:
77
contents: read # Only needs read access to repository contents
8+
pull-requests: write # Needs write access to create/update PR comments
89

910
inputs:
11+
github_token:
12+
description: 'GitHub token for creating/updating PR comments'
13+
required: true
14+
default: ${{ github.token }}
15+
enable_pr_comment:
16+
description: 'Whether to create/update PR comments with upload information'
17+
required: false
18+
default: 'true'
1019
api_token:
1120
description: 'DeployGate API token for authentication.'
1221
required: true

0 commit comments

Comments
 (0)