-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2710549
commit 5b59837
Showing
15 changed files
with
363 additions
and
211 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,29 +1,47 @@ | ||
source: | ||
- "src/**" | ||
backport: | ||
- head-branch: ['^v[0-9]+\.x\.x'] | ||
|
||
code: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "src/**" | ||
|
||
build: | ||
- "**/*.gradle" | ||
- "**/*.gradle.kts" | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "**/*.gradle*" | ||
|
||
ci: | ||
- ".github/**" | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- ".github/**" | ||
|
||
documentation: | ||
- "**/*.md" | ||
- "docs/**" | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "**/*.md" | ||
- "docs/**" | ||
|
||
license: | ||
- "LICENSE" | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "LICENSE" | ||
|
||
gradle: | ||
- "gradlew" | ||
- "gradlew.bat" | ||
- ".gradle/**" | ||
- "gradle/**" | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "gradlew*" | ||
- ".gradle/**" | ||
- "gradle/**" | ||
- "setting.gradle*" | ||
|
||
git: | ||
- ".gitignore" | ||
gitignore: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- ".gitignore" | ||
|
||
style: | ||
- ".editorconfig" | ||
- ".idea/codeStyles/**" | ||
codestyle: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- ".editorconfig" | ||
- ".idea/codeStyles/**" |
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 |
---|---|---|
@@ -1,38 +1,40 @@ | ||
name: "Pull Request" | ||
name: "Dependabot" | ||
|
||
on: [pull_request_target] | ||
on: pull_request_target | ||
|
||
jobs: | ||
label-pr: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- uses: actions/labeler@v5 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
dependabot: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} | ||
if: github.event.pull_request.user.login == 'dependabot[bot]' | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
steps: | ||
- name: Setup bot token | ||
uses: actions/create-github-app-token@v1 | ||
id: bot | ||
with: | ||
app-id: ${{ secrets.BOT_APP_ID }} | ||
private-key: ${{ secrets.BOT_PRIVATE_KEY }} | ||
|
||
- name: Dependabot metadata | ||
id: dependabot-metadata | ||
uses: dependabot/fetch-metadata@v2 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Enable auto-merge for Dependabot PRs | ||
run: gh pr merge --auto --rebase "$PR_URL" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ steps.bot.outputs.token }} | ||
|
||
- name: Approve patch and minor updates | ||
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} | ||
run: gh pr review $PR_URL --approve -b "Pull request **approved** because **it includes a patch or minor update**" | ||
if: steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ steps.bot.outputs.token }} | ||
DEPENDENCY: ${{ steps.dependabot-metadata.outputs.dependency-names }} | ||
PREV_VERSION: ${{ steps.dependabot-metadata.outputs.previous-version }} | ||
NEW_VERSION: ${{ steps.dependabot-metadata.outputs.new-version }} | ||
run: echo -e "Pull request is **auto approved** because **it includes a non-major update**\n$DEPENDENCY $PREV_VERSION -> $NEW_VERSION" | gh pr review $PR_URL --approve --body-file - |
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,14 @@ | ||
name: "Labeler" | ||
|
||
on: [pull_request_target] | ||
|
||
jobs: | ||
label-pr: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- uses: actions/labeler@v5 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" |
Oops, something went wrong.