Skip to content

Commit 11796c6

Browse files
authored
Merge pull request #49 from dscho/update-tag-git-comment-in-cascading-runs-follow-up
Update `tag-git` comment in cascading runs; Follow up
2 parents c456fac + ebb4ada commit 11796c6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

GitForWindowsHelper/github-api-request-as-app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module.exports = async (context, requestMethod, requestPath, body) => {
99
const payload = {
1010
// issued at time, 60 seconds in the past to allow for clock drift
1111
iat: now - 60,
12-
// JWT expiration time (10 minute maximum)
13-
exp: now + (10 * 60),
12+
// JWT expiration time (10 minute maximum, use 9 to allow for clock drift)
13+
exp: now + (9 * 60),
1414
// GitHub App's identifier
1515
iss: process.env['GITHUB_APP_ID']
1616
}

GitForWindowsHelper/issues.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const getGitArtifactsCommentID = async (context, token, owner, repo, headSHA) =>
2929
})
3030
const items = answer.items.filter(item =>
3131
item.text_matches.length === 1
32-
&& item.text_matches[0].fragment === '/git-artifacts\n\nThe tag-git workflow run was started\n'
32+
&& item.text_matches[0].fragment.trim() === '/git-artifacts\n\nThe tag-git workflow run was started'
3333
)
3434
return items.length === 1 && items[0].text_matches[0].object_url.replace(/^.*\/(\d+)$/, '$1')
3535
}

0 commit comments

Comments
 (0)