Skip to content

Assign a milestone to pull requests

Actions
Assign a milestone to pull requests
v2.1.0
Latest
Star (2)

Assign milestone to Pull Requests Action

This action will assign a milestone to a Pull Request

Inputs

Name Description Required
token-repo GitHub repo token Yes
milestone Name of milestone to assign Yes

Example usage

name: 'Auto Milestone Assign'

on:
  pull_request:
    types: [opened]

jobs:
  assign-milestone:
    runs-on: ubuntu-latest

    steps:
      - uses: zoispag/action-assign-milestone@v1
        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}"
          milestone: 'roadmap'

Dependabot

For pull requests created by dependabot, this action will fail with message: (node:1488) UnhandledPromiseRejectionWarning: HttpError: Resource not accessible by integration.

If you understand the consequences (provide write access) of this action, you can "bypass" this restriction, by triggering this action on the pull_request_target event. Eg:

on:
  pull_request_target:
    types: [opened]

Make sure to read "Keeping your GitHub Actions and workflows secure: Preventing pwn requests" on the GitHub Security Lab website.

Assign a milestone to pull requests is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Assign a milestone to pull requests
v2.1.0
Latest

Assign a milestone to pull requests is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.