Skip to content

Event Router fixes and improvements #8703

Event Router fixes and improvements

Event Router fixes and improvements #8703

Workflow file for this run

name: pr2changelog
on:
pull_request_target:
paths-ignore:
- "CHANGELOG.md"
branches:
- develop
types:
- closed
- edited
- opened
jobs:
dry_check:
if: github.event.pull_request.merged == false
name: changelog generator dry check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: pr2changelog
id: pr2changelog
uses: corp-0/pr2changelog@api-integration
with:
categories: Fix;New;Improvement;Balance
write_to_file: false
- name: Comment PR
if: ${{ steps.pr2changelog.outputs.found_changes == 0}}
uses: thollander/actions-comment-pull-request@v1
with:
message: |
Your PR has no registered changes in its description!
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
after_merge:
if: github.event.pull_request.merged == true
name: changelog generator
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: pr2changelog
id: pr2changelog
uses: corp-0/pr2changelog@api-integration
with:
categories: Fix;New;Improvement;Balance
write_to_file: false
api_secret_token: ${{ secrets.CHANGELOG_API_SECRET }}
api_url: "https://changelog.unitystation.org/register-change"
- name: Comment PR
if: ${{ steps.pr2changelog.outputs.generated_changelog == 0}}
uses: thollander/actions-comment-pull-request@v1
with:
message: |
Your PR was merged with no registered changes or there was a problem with the API caller.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}