-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pi-hole:master' into feature/cli-teleport-restore
- Loading branch information
Showing
30 changed files
with
551 additions
and
404 deletions.
There are no files selected for viewing
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
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,21 @@ | ||
name: "Check for merge conflicts" | ||
on: | ||
# So that PRs touching the same files as the push are updated | ||
push: | ||
# So that the `dirtyLabel` is removed if conflicts are resolve | ||
# We recommend `pull_request_target` so that github secrets are available. | ||
# In `pull_request` we wouldn't be able to change labels of fork PRs | ||
pull_request_target: | ||
types: [synchronize] | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check if PRs are have merge conflicts | ||
uses: eps1lon/[email protected] | ||
with: | ||
dirtyLabel: "PR: Merge Conflict" | ||
repoToken: "${{ secrets.GITHUB_TOKEN }}" | ||
commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request." | ||
commentOnClean: "Conflicts have been resolved." |
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,35 @@ | ||
name: Close stale PR | ||
# This action will add a `stale` label and close immediately every PR that meets the following conditions: | ||
# - it is already marked with "merge conflict" label | ||
# - there was no update/comment on the PR in the last 30 days. | ||
|
||
on: | ||
schedule: | ||
- cron: '0 10 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
stale: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
# Do not automatically mark PR/issue as stale | ||
days-before-stale: -1 | ||
# Override 'days-before-stale' for PR only | ||
days-before-pr-stale: 30 | ||
# Close PRs immediately, after marking them 'stale' | ||
days-before-pr-close: 0 | ||
# only run the action on merge conflict PR | ||
any-of-labels: 'PR: Merge Conflict' | ||
exempt-pr-labels: 'internal, never-stale, ON HOLD, WIP' | ||
exempt-all-pr-assignees: true | ||
operations-per-run: 300 | ||
stale-pr-message: '' | ||
close-pr-message: 'Existing merge conflicts have not been addressed. This PR is considered abandoned.' |
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 |
---|---|---|
|
@@ -11,17 +11,8 @@ jobs: | |
name: Syncing branches | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3.1.0 | ||
uses: actions/checkout@v3.3.0 | ||
- name: Opening pull request | ||
id: pull | ||
uses: tretuna/[email protected] | ||
with: | ||
run: gh pr create -B development -H master --title 'Sync master back into development' --body 'Created by Github action' --label 'internal' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
FROM_BRANCH: 'master' | ||
TO_BRANCH: 'development' | ||
- name: Label the pull request to ignore for release note generation | ||
uses: actions-ecosystem/[email protected] | ||
with: | ||
labels: internal | ||
repo: ${{ github.repository }} | ||
number: ${{ steps.pull.outputs.PULL_REQUEST_NUMBER }} |
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
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
Oops, something went wrong.