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
minimumLinkedIssues: 2# Require at least 2 linked issues (optional, default is 1)
81
83
82
84
# ... additional steps in the same job
83
85
```
84
86
85
-
### Use the composite action within the workflows repo
86
-
87
-
When referencing the action from a workflow in this same repository, use a
88
-
relative path without a checkout step:
89
-
90
-
```yaml
91
-
steps:
92
-
- uses: ./.github/actions/check-linked-issue
93
-
```
94
-
95
87
## Reference
96
88
97
89
### Permissions
@@ -101,16 +93,19 @@ Requires the default `GITHUB_TOKEN` with:
101
93
```yaml
102
94
permissions:
103
95
contents: read
96
+
issues: read
104
97
pull-requests: read
105
98
```
106
99
107
-
For private repos, these permissions allow the token to read PR metadata and
108
-
query linked issues. Cross-repo issue detection is limited to public repos and
109
-
repos within the same organization that the token has access to.
110
-
111
100
### Inputs
112
101
113
-
This action has no inputs.
102
+
- `minimumLinkedIssues` (optional): Minimum number of linked issues required for the PR. Default is `1`. Set this input to require more than one linked issue:
0 commit comments