Skip to content

Commit 3375d84

Browse files
committed
CU-3w8ybcw adding pr workflow GH
1 parent e2e7ea1 commit 3375d84

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/auto-approve.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Auto approve
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
8+
jobs:
9+
auto-approve:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
steps:
14+
- uses: actions/github-script@v6
15+
name: Approve LGTM Review
16+
if: github.actor == 'ucswift' && contains(github.event.comment.body, 'Approve')
17+
with:
18+
script: |
19+
github.rest.pulls.createReview({
20+
owner: context.repo.owner,
21+
repo: context.repo.repo,
22+
pull_number: context.issue.number,
23+
review_id: 1,
24+
event: 'APPROVE',
25+
body: 'This PR is approved.'
26+
})

0 commit comments

Comments
 (0)