mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 04:27:02 +05:30
Merge #49
49: Setup for managing the repository via bors r=msfjarvis a=msfjarvis Removes the automerge action, sets up PR checks to run on bors test branches, and adds the status checks TOML file that bors requires. Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
commit
8b28267b68
3 changed files with 14 additions and 49 deletions
29
.github/workflows/automerge.yml
vendored
29
.github/workflows/automerge.yml
vendored
|
@ -1,29 +0,0 @@
|
||||||
name: automerge
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- labeled
|
|
||||||
- unlabeled
|
|
||||||
- synchronize
|
|
||||||
- opened
|
|
||||||
- edited
|
|
||||||
- ready_for_review
|
|
||||||
- reopened
|
|
||||||
- unlocked
|
|
||||||
pull_request_review:
|
|
||||||
types:
|
|
||||||
- submitted
|
|
||||||
check_suite:
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
status: {}
|
|
||||||
jobs:
|
|
||||||
automerge:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: automerge
|
|
||||||
uses: pascalgn/automerge-action@88480459fd3771b8f4c7e68bb9b677b5e1e48f36
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
MERGE_RETRIES: 10
|
|
||||||
MERGE_RETRY_SLEEP: 60000
|
|
31
.github/workflows/pull_request.yml
vendored
31
.github/workflows/pull_request.yml
vendored
|
@ -1,32 +1,23 @@
|
||||||
on: [pull_request]
|
name: CI
|
||||||
|
|
||||||
|
"on":
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- staging
|
||||||
|
- trying
|
||||||
|
- develop
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- "**"
|
||||||
|
|
||||||
name: Check pull request
|
|
||||||
jobs:
|
jobs:
|
||||||
test-pr:
|
test-pr:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check if relevant files have changed
|
|
||||||
uses: actions/github-script@28e5ebafd79744f2a15dd15e742233b068e0f762
|
|
||||||
id: service-changed
|
|
||||||
with:
|
|
||||||
result-encoding: string
|
|
||||||
script: |
|
|
||||||
const result = await github.pulls.listFiles({
|
|
||||||
owner: context.payload.repository.owner.login,
|
|
||||||
repo: context.payload.repository.name,
|
|
||||||
pull_number: context.payload.number,
|
|
||||||
per_page: 100
|
|
||||||
})
|
|
||||||
const shouldRun = result.data.filter(f => !f.filename.endsWith(".md") || !f.filename.endsWith(".yml")).length > 0
|
|
||||||
console.log(shouldRun)
|
|
||||||
return shouldRun
|
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
|
||||||
uses: actions/checkout@c952173edf28a2bd22e1a4926590c1ac39630461
|
uses: actions/checkout@c952173edf28a2bd22e1a4926590c1ac39630461
|
||||||
|
|
||||||
- name: Copy CI gradle.properties
|
- name: Copy CI gradle.properties
|
||||||
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
|
||||||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
||||||
|
|
||||||
- uses: burrunan/gradle-cache-action@v1
|
- uses: burrunan/gradle-cache-action@v1
|
||||||
|
|
3
bors.toml
Normal file
3
bors.toml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
status = [
|
||||||
|
"test-pr"
|
||||||
|
]
|
Loading…
Add table
Add a link
Reference in a new issue