Skip to content

Commit ad011e8

Browse files
Merge pull request iNavFlight#11159 from Barnabasek/patch-1
Update LedStrip.md
2 parents 0e9f842 + f28f725 commit ad011e8

2 files changed

Lines changed: 43 additions & 2 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: PR Branch Suggestion
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
branches:
7+
- master
8+
9+
jobs:
10+
suggest-branch:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
pull-requests: write
14+
steps:
15+
- name: Suggest maintenance branch
16+
uses: actions/github-script@v7
17+
with:
18+
script: |
19+
const comment = `### Branch Targeting Suggestion
20+
21+
You've targeted the \`master\` branch with this PR. Please consider if a version branch might be more appropriate:
22+
23+
- **\`maintenance-9.x\`** - If your change is backward-compatible and won't create compatibility issues between INAV firmware and Configurator 9.x versions. This will allow your PR to be included in the next 9.x release.
24+
25+
- **\`maintenance-10.x\`** - If your change introduces compatibility requirements between firmware and configurator that would break 9.x compatibility. This is for PRs which will be included in INAV 10.x
26+
27+
If \`master\` is the correct target for this change, no action is needed.
28+
29+
---
30+
*This is an automated suggestion to help route contributions to the appropriate branch.*`;
31+
32+
try {
33+
await github.rest.issues.createComment({
34+
issue_number: context.issue.number,
35+
owner: context.repo.owner,
36+
repo: context.repo.repo,
37+
body: comment
38+
});
39+
} catch (err) {
40+
core.setFailed(`Failed to post suggestion comment: ${err}`);
41+
}

docs/LedStrip.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Enable the Led Strip feature via the GUI under setup.
7171
Configure the leds from the Led Strip tab in the INAV GUI.
7272
First setup how the led's are laid out so that you can visualize it later as you configure and so the flight controller knows how many led's there are available.
7373

74-
There is a step by step guide on how to use the GUI to configure the Led Strip feature using the GUI http://blog.oscarliang.net/setup-rgb-led-cleanflight/ which was published early 2015 by Oscar Liang which may or may not be up-to-date by the time you read this.
74+
There is a step by step guide on how to use the GUI to configure the Led Strip feature using the GUI https://oscarliang.com/setup-led-betaflight/ which was published early 2015 by Oscar Liang which may or may not be up-to-date by the time you read this.
7575

7676
CLI:
7777
Enable the `LED_STRIP` feature via the cli:
@@ -605,4 +605,4 @@ This also means that you can make sure that each R,G and B LED in each LED modul
605605

606606
After a short delay the LEDs will show the unarmed color sequence and or low-battery warning sequence.
607607

608-
Also check that the feature `LED_STRIP` was correctly enabled and that it does not conflict with other features, as above.
608+
Also check that the feature `LED_STRIP` was correctly enabled and that it does not conflict with other features, as above.

0 commit comments

Comments
 (0)