You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(link-backport-prs): explain why linear-token is optional
A reviewer read the optional linear-token as an oversight and expected
it to be required. It is optional on purpose: the linking step is
advisory and no-ops when the token is absent so callers can adopt the
shared backport workflow before wiring up a Linear token. Spell that
out in the input description so the next reader does not have to ask.
| dry-run | string | false | `"false"` | Log intended edits without applying them |
51
-
| github-token | string | true | | GitHub token with permission to read <br>and edit pull requests (must be the same PAT that created the backport PRs) |
52
-
| label-prefix | string | false | `"backport-to-"` | Prefix of the backport labels on <br>the source PR |
53
-
| linear-token | string | false | | Linear API token for resolving the <br>issue family. If empty, the action <br>no-ops. |
54
-
| repo-name | string | true | | The name of the repository |
55
-
| repo-owner | string | true | | The owner of the repository |
56
-
| source-pr | string | true | | The merged source pull request number <br>that was backported |
| dry-run | string | false | `"false"` | Log intended edits without applying them |
51
+
| github-token | string | true | | GitHub token with permission to read <br>and edit pull requests (must be the same PAT that created the backport PRs) |
52
+
| label-prefix | string | false | `"backport-to-"` | Prefix of the backport labels on <br>the source PR |
53
+
| linear-token | string | false | | Linear API token for resolving the <br>issue family. Optional by design: this <br>is an advisory step, so when <br>empty the action no-ops and exits <br>0 instead of failing, letting callers <br>adopt the shared backport workflow before <br>a Linear token is wired up. |
54
+
| repo-name | string | true | | The name of the repository |
55
+
| repo-owner | string | true | | The owner of the repository |
56
+
| source-pr | string | true | | The merged source pull request number <br>that was backported |
Copy file name to clipboardExpand all lines: .github/actions/link-backport-prs/action.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ inputs:
15
15
description: 'GitHub token with permission to read and edit pull requests (must be the same PAT that created the backport PRs)'
16
16
required: true
17
17
linear-token:
18
-
description: 'Linear API token for resolving the issue family. If empty, the action no-ops.'
18
+
description: 'Linear API token for resolving the issue family. Optional by design: this is an advisory step, so when empty the action no-ops and exits 0 instead of failing, letting callers adopt the shared backport workflow before a Linear token is wired up.'
0 commit comments