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

TASK: Add name #8

Open
wants to merge 5 commits into
base: 8.3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/changes.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Check changes (edit PR)

on:
pull_request:
types: [opened, edited]
Expand All @@ -6,8 +8,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Debug event payload
env:
GITHUB_EVENT: ${{ toJson(github.event) }}
run: |
echo "$GITHUB_EVENT"
echo "$GITHUB_EVENT" > event.json
cat event.json | jq .changes
- name: Get PR title
run: |
echo "New title: ${{ github.event.pull_request.title }}"
echo "Old title: ${{ github.event.changes.title.from }}"
- name: Get base branch
if: github.event.action == 'edited'
run: |
echo "New base branch: ${{ github.event.pull_request.base.ref }}"
echo "Old base branch: ${{ github.event.changes.base.from }}"
echo "Old base branch: ${{ github.event.changes.base.ref.from }}"