Skip to content

Commit 32bda01

Browse files
authored
align workflows & metadata with main repo (#746)
1 parent 871fad4 commit 32bda01

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @sequelize/code-reviewers

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# These are supported funding model platforms
22

3-
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
3+
github: sequelize
44
patreon: # Replace with a single Patreon username
55
open_collective: sequelize
66
ko_fi: # Replace with a single Ko-fi username

.github/workflows/autoupdate.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: auto-update PRs & label conflicts
2+
on:
3+
push:
4+
branches:
5+
- main
6+
# can also be used with the pull_request event
7+
pull_request_target:
8+
types:
9+
- synchronize
10+
# allow the workflow to correct any label incorrectly added or removed by a user.
11+
- labeled
12+
- unlabeled
13+
# update the PR as soon as the auto-merge is enabled.
14+
- auto_merge_enabled
15+
# process the PR once they appear in the search filters
16+
- ready_for_review
17+
- opened
18+
- reopened
19+
jobs:
20+
autoupdate:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Generate Sequelize Bot Token
24+
id: generate-token
25+
uses: actions/create-github-app-token@v1
26+
with:
27+
app-id: '${{ secrets.SEQUELIZE_BOT_APP_ID }}'
28+
private-key: '${{ secrets.SEQUELIZE_BOT_PRIVATE_KEY }}'
29+
- uses: sequelize/pr-auto-update-and-handle-conflicts@3ff4c1ae3b521ccd0a6bed0de19911d555b7da8d # 1.0.0
30+
with:
31+
conflict-label: 'conflicted'
32+
conflict-requires-ready-state: 'ready_for_review'
33+
conflict-excluded-authors: 'bot/renovate'
34+
update-pr-branches: true
35+
update-requires-auto-merge: true
36+
update-requires-ready-state: 'ready_for_review'
37+
update-excluded-authors: 'bot/renovate'
38+
update-excluded-labels: 'no-autoupdate'
39+
env:
40+
GITHUB_TOKEN: '${{ steps.generate-token.outputs.token }}'

0 commit comments

Comments
 (0)