Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Apr 16, 2024
1 parent a30405a commit ec3c4f2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/add-milestone-to-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ jobs:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && github.event.pull_request.milestone == null
steps:
- name: Debug at start
run: echo "${{ toJSON(github) }}"
- name: Checkout code
# Checks out the branch that the pull request is merged into
uses: actions/checkout@v3
Expand All @@ -34,8 +32,6 @@ jobs:
state: 'open'
})
return milestones.data
- name: Debug before update
run: echo "${{ toJSON(github) }}"
- name: Update Pull Request
# Update the merged pull request with the milestone starts with the major version
uses: actions/github-script@v7
Expand All @@ -50,7 +46,7 @@ jobs:
await github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: github.event.pull_request.number,
issue_number: ${{ github.event.pull_request.number }},
milestone: milestone.number
})
}

0 comments on commit ec3c4f2

Please sign in to comment.