File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
.github/actions/require-milestone Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -138,11 +138,6 @@ async function main() {
138138 /** @type {GitHubEvent } */
139139 const { pull_request : pullRequest } = JSON . parse ( event )
140140
141- // Fetch the current PR state from the API to get the latest title and
142- // milestone. Reading the PR details from the event payload will give stale
143- // data if for example the PR title has been updated.
144- // The event payload contains data from when the workflow was originally
145- // triggered
146141 const [ owner , repo ] = env . GITHUB_REPOSITORY . split ( '/' )
147142
148143 if ( ! env . GITHUB_TOKEN ) {
@@ -151,6 +146,10 @@ async function main() {
151146 return
152147 }
153148
149+ // Fetch the current PR state from the API to get the latest title and
150+ // milestone. Reading the PR details from the event payload will give stale
151+ // data if for example the PR title has been updated. The event payload
152+ // contains data from when the workflow was originally triggered
154153 const prResponse = await fetch (
155154 `https://api.github.com/repos/${ owner } /${ repo } /pulls/${ pullRequest . number } ` ,
156155 {
You can’t perform that action at this time.
0 commit comments