Skip to content

Commit

Permalink
Merge pull request #3950 from hansva/main
Browse files Browse the repository at this point in the history
[BUILD] remove milestones from PR's
  • Loading branch information
hansva authored May 17, 2024
2 parents 8d828b2 + eaf1da6 commit 7166a59
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/pr_assign_milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,6 @@ jobs:
runs-on: ubuntu-latest
if: github.event.pull_request.merged
steps:
- name: Get project milestones
id: milestones
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const list = await github.rest.issues.listMilestones({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open',
sort: 'due_on',
direction: 'asc'
})
for( const milestone of list.data) {
if ( milestone.due_on !== null ) {
console.log(milestone)
return milestone.number
break;
}
}
return null
- name: add milestone
uses: actions/github-script@v7
with:
Expand All @@ -55,5 +34,5 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
milestone: ${{ steps.milestones.outputs.result }}
milestone: null
});

0 comments on commit 7166a59

Please sign in to comment.