[chore] Refactor obsreport for scrapers to use new scraper.Metrics #3115
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This action adds the "next release" milestone to a pull request | |
# when it is merged | |
name: 'Project: Add PR to Milestone' | |
on: | |
pull_request_target: | |
types: | |
- closed | |
jobs: | |
update-pr: | |
if: github.event.pull_request.merged | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | |
with: | |
script: | | |
const milestones = await github.rest.issues.listMilestones({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
state: "open" | |
}) | |
for (const milestone of milestones.data) { | |
if (milestone.title == "next release") { | |
await github.rest.issues.update({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.issue.number, | |
milestone: milestone.number | |
}); | |
return | |
} | |
} |