Skip to content

Commit b9b6f2e

Browse files
committed
chore(ci): Update comment in requireMilestone.mjs
1 parent 70261c0 commit b9b6f2e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/actions/require-milestone/requireMilestone.mjs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)