@liblaf/actions 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 liblaf
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # Actions
@@ -0,0 +1,65 @@
1
+ # Approve
2
+
3
+ ## Example Usage
4
+
5
+ ### Approve a specified PR
6
+
7
+ ```yaml
8
+ name: Approve a specified PR
9
+
10
+ on:
11
+ pull_request:
12
+
13
+ jobs:
14
+ approve:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Approve Pull Request
18
+ uses: liblaf/actions-ts/approve@dist
19
+ with:
20
+ authors: renovate[bot]
21
+ pull-number: ${{ github.event.pull_request.number }}
22
+ token: ${{ secrets.GH_PAT }}
23
+ ```
24
+
25
+ ### Approve all PRs in a specified repository
26
+
27
+ ```yaml
28
+ name: Approve all PRs in a specified repository
29
+
30
+ on:
31
+ schedule:
32
+ - cron: "0 0 * * 0"
33
+
34
+ jobs:
35
+ approve:
36
+ runs-on: ubuntu-latest
37
+ steps:
38
+ - name: Approve Pull Request
39
+ uses: liblaf/actions-ts/approve@dist
40
+ with:
41
+ authors: renovate[bot]
42
+ repository: ${{ github.repository }}
43
+ token: ${{ secrets.GH_PAT }}
44
+ ```
45
+
46
+ ### Approve all PRs in all repositories for a specified user
47
+
48
+ ```yaml
49
+ name: Approve all PRs in all repositories for the specified user
50
+
51
+ on:
52
+ schedule:
53
+ - cron: "0 0 * * 0"
54
+
55
+ jobs:
56
+ approve:
57
+ runs-on: ubuntu-latest
58
+ steps:
59
+ - name: Approve Pull Request
60
+ uses: liblaf/actions-ts/approve@dist
61
+ with:
62
+ authors: renovate[bot]
63
+ repository: ${{ github.repository_owner }}
64
+ token: ${{ secrets.GH_PAT }}
65
+ ```
@@ -0,0 +1,35 @@
1
+ # yaml-language-server: $schema=https://www.schemastore.org/github-action.json
2
+
3
+ name: Approve
4
+
5
+ author: liblaf
6
+
7
+ description: Approve
8
+
9
+ inputs:
10
+ authors:
11
+ description: authors
12
+ required: false
13
+ bot:
14
+ description: bot
15
+ required: false
16
+ default: "true"
17
+ labels:
18
+ description: labels
19
+ required: false
20
+ pull-number:
21
+ description: The pull request number to approve.
22
+ required: false
23
+ default: ${{ github.event.pull_request.number }}
24
+ repository:
25
+ description: The owner and repository name. For example, `octocat/Hello-World`.
26
+ required: false
27
+ default: ${{ github.repository }}
28
+ token:
29
+ description: token
30
+ required: false
31
+ default: ${{ github.token }}
32
+
33
+ runs:
34
+ using: node24
35
+ main: src/index.js