Skip to content

Commit 4d19231

Browse files
committed
Configure Backport Bot for GitHub workflows
This commit configures the Backport Bot for the repository workflows. See https://github.com/spring-io/backport-bot This will create backport issues whenever issues created on the main line are tagged with the relevant issue label.
1 parent 2c77433 commit 4d19231

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

.github/workflows/backport-bot.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Backport Bot
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
pull_request:
7+
types: [labeled]
8+
push:
9+
branches:
10+
- '*.x'
11+
permissions:
12+
contents: read
13+
jobs:
14+
build:
15+
permissions:
16+
contents: read
17+
issues: write
18+
pull-requests: write
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: actions/setup-java@v3
23+
with:
24+
distribution: 'temurin'
25+
java-version: '17'
26+
- name: Download BackportBot
27+
run: wget https://github.com/spring-io/backport-bot/releases/download/latest/backport-bot-0.0.1-SNAPSHOT.jar
28+
- name: Backport
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
GITHUB_EVENT: ${{ toJSON(github.event) }}
32+
run: java -jar backport-bot-0.0.1-SNAPSHOT.jar --github.accessToken="$GITHUB_TOKEN" --github.event_name "$GITHUB_EVENT_NAME" --github.event "$GITHUB_EVENT"
33+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[[observability]]
2+
= Observability
3+
4+
https://micrometer.io/docs/observation
5+
{spring-framework-ref-docs}/integration.html#integration.observability
6+
{spring-boot-ref-docs}/actuator.html#actuator.metrics

spring-graphql-docs/src/docs/asciidoc/index.adoc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1667,8 +1667,7 @@ The 1.0.x branch of this repository contains samples for
16671667

16681668
include::includes/client.adoc[leveloffset=+1]
16691669

1670-
1671-
1670+
include::includes/observability.adoc[leveloffset=+1]
16721671

16731672
include::includes/testing.adoc[leveloffset=+1]
16741673

0 commit comments

Comments
 (0)