Skip to content

Add a scheduled workflow to trigger the daily run of the mergebot - #64327

Merged
orta merged 1 commit into
DefinitelyTyped:masterfrom
stof:daily_run_dt
Feb 13, 2023
Merged

orta merged 1 commit into
DefinitelyTyped:masterfrom
stof:daily_run_dt

Conversation

@stof

@stof stof commented Feb 13, 2023

Copy link
Copy Markdown
Contributor

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.

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.
@typescript-bot

typescript-bot commented Feb 13, 2023 •

Copy link
Copy Markdown
Contributor

@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 Reviews

There 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

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ A DT maintainer needs to approve changes which affect DT infrastructure (.github/workflows/daily.yml)

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"
}

@typescript-bot

Copy link
Copy Markdown
Contributor

🔔 @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...)

@orta

orta commented Feb 13, 2023

Copy link
Copy Markdown
Collaborator

Will give this a few days before merging so the TS team get a chance to read it

@sandersn sandersn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good fix (for a process that I didn't know existed).

@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels Feb 13, 2023
@orta

orta commented Feb 13, 2023

Copy link
Copy Markdown
Collaborator

That's enough for me 👍🏻

@orta
orta merged commit 0c27024 into DefinitelyTyped:master Feb 13, 2023
@stof
stof deleted the daily_run_dt branch February 14, 2023 08:33
@sandersn

Copy link
Copy Markdown
Contributor

Looks like the run on DT needs a token with admin rights to the dt-mergebot repository.

@sandersn

Copy link
Copy Markdown
Contributor

.....Aaaand it turns out I have no idea how to create such a token.

@orta

orta commented Feb 15, 2023

Copy link
Copy Markdown
Collaborator

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?

@sandersn

Copy link
Copy Markdown
Contributor

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.

@orta

orta commented Feb 16, 2023

Copy link
Copy Markdown
Collaborator

This worked, nice one

@sandersn

Copy link
Copy Markdown
Contributor

Yep, now I just need to figure out a renewal policy since I created a personal token manually this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Edits Infrastructure Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The daily sync of the PR state is not running anymore.

4 participants