6
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

GitHub ActionsでプルリクエストのURLを取得する方法

Posted at

結論

.yml
${{ github.event.pull_request.html_url }}

で取れる

sample.yml
name: Show Pull Request Event

on:
  pull_request:
    branches:
      - master

jobs:
  show:
    runs-on: ubuntu-latest
    steps:
      - name: Run echo
        run: echo ${{ github.event.pull_request.html_url }}

ドキュメント

Webhook events and payloads

スクリーンショット_2020-11-18_18_11_38.png

まとめ

slackとかに通知するときにつけておくと、飛べるから便利かも

6
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?