Repository navigation
Add a scheduled workflow to trigger the daily run of the mergebot - #64327
Conversation
Scheduled workflows are automatically disabled for repositories without recent activity. So this scheduled workflow does not work well when configured in the dt-mergebot repository. To keep things self-contained, this workflow only triggers a workflow in the dt-mergebot repository, where all the logic still lives.
|
@stof Thank you for submitting this PR! This is a live comment which I will keep updated. This PR touches some part of DefinitelyTyped infrastructure, so a DT maintainer will need to review it. This is rare — did you mean to do this? 0 packages in this PR (and infra files)
Code ReviewsThere aren't any other owners of this package, so a DT maintainer will review it. You can test the changes of this PR in the Playground. Status
All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 64327,
"author": "stof",
"headCommitOid": "5081827ab02a232504d4a214febf4aab3ecc7874",
"mergeBaseOid": "f72ca2845a33690f8db6294b9537aae21698511f",
"lastPushDate": "2023-02-13T09:56:01.000Z",
"lastActivityDate": "2023-02-13T21:50:53.000Z",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Well-liked by everyone",
"pkgInfo": [
{
"name": null,
"kind": "edit",
"files": [
{
"path": ".github/workflows/daily.yml",
"kind": "infrastructure"
}
],
"owners": [],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "sandersn",
"date": "2023-02-13T21:50:53.000Z",
"isMaintainer": true
}
],
"mainBotCommentID": 1427649013,
"ciResult": "pass"
} |
|
🔔 @stof — there are no owners, but it would still be good if you find someone to review this PR in the next few days, otherwise a maintainer will look at it. (And if you do find someone, maybe even recruit them to be a second owner to make future changes easier...) |
|
Will give this a few days before merging so the TS team get a chance to read it |
sandersn
left a comment
There was a problem hiding this comment.
Looks like a good fix (for a process that I didn't know existed).
|
That's enough for me 👍🏻 |
|
Looks like the run on DT needs a token with admin rights to the dt-mergebot repository. |
|
.....Aaaand it turns out I have no idea how to create such a token. |
|
Interesting, permissions used to be based on the user for whom they were created for - perhaps there's a more nuanced permissions system on tokens now? |
|
I tried the fine-grained one, followed by the classic one. However, the error is different now, so it's possible that re-running the workflow didn't pick up the token. It's also possible that the new error is the one you get for a revoked token. I created another one and will check on the 10 AM (PST) run to see if it helps. |
|
This worked, nice one |
|
Yep, now I just need to figure out a renewal policy since I created a personal token manually this time. |
Scheduled workflows are automatically disabled for repositories without recent activity. So this scheduled workflow does not work well when configured in the dt-mergebot repository.
To keep things self-contained, this workflow only triggers a workflow in the dt-mergebot repository, where all the logic still lives.
Closes DefinitelyTyped/dt-mergebot#452
Needs DefinitelyTyped/dt-mergebot#457 to be merged first.