-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
align workflows & metadata with main repo (#746)
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @sequelize/code-reviewers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: auto-update PRs & label conflicts | ||
on: | ||
push: | ||
branches: | ||
- main | ||
# can also be used with the pull_request event | ||
pull_request_target: | ||
types: | ||
- synchronize | ||
# allow the workflow to correct any label incorrectly added or removed by a user. | ||
- labeled | ||
- unlabeled | ||
# update the PR as soon as the auto-merge is enabled. | ||
- auto_merge_enabled | ||
# process the PR once they appear in the search filters | ||
- ready_for_review | ||
- opened | ||
- reopened | ||
jobs: | ||
autoupdate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate Sequelize Bot Token | ||
id: generate-token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: '${{ secrets.SEQUELIZE_BOT_APP_ID }}' | ||
private-key: '${{ secrets.SEQUELIZE_BOT_PRIVATE_KEY }}' | ||
- uses: sequelize/pr-auto-update-and-handle-conflicts@3ff4c1ae3b521ccd0a6bed0de19911d555b7da8d # 1.0.0 | ||
with: | ||
conflict-label: 'conflicted' | ||
conflict-requires-ready-state: 'ready_for_review' | ||
conflict-excluded-authors: 'bot/renovate' | ||
update-pr-branches: true | ||
update-requires-auto-merge: true | ||
update-requires-ready-state: 'ready_for_review' | ||
update-excluded-authors: 'bot/renovate' | ||
update-excluded-labels: 'no-autoupdate' | ||
env: | ||
GITHUB_TOKEN: '${{ steps.generate-token.outputs.token }}' |