Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use labels to automatically assign milestones #19

Open
ghostwriter opened this issue Jun 14, 2023 · 1 comment
Open

Use labels to automatically assign milestones #19

ghostwriter opened this issue Jun 14, 2023 · 1 comment

Comments

@ghostwriter
Copy link
Owner

Using 3 labels to identify major,minor,patch changes a given PR introduces.

Using the git to identify the latest tag.

Latest version: "1.2.3"

If a PR is labeled patch the PR is assigned milestone "1.2.4"

If a PR is labeled minor the PR is assigned milestone "1.3.0"

If a PR is labeled major the PR is assigned milestone "2.0.0"

If a PR is labeled {major|minir|patch} and it already has a {major|minir|patch} label; it will remove and overwrite the previous label. (also updates the PRs milestone)

@ghostwriter
Copy link
Owner Author

on:
  issues:
    types: [labeled, unlabeled]
  pull_request_target:
    types: [labeled, unlabeled]
  discussion:
    types: [labeled, unlabeled]

permissions:
  contents: read
  issues: write
  pull-requests: write
  discussions: write

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant