-
Notifications
You must be signed in to change notification settings - Fork 110
27 lines (23 loc) · 974 Bytes
/
Copy pathdiff-tour.yml
File metadata and controls
27 lines (23 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This GitHub Action imported from the shared action
# https://github.com/sourcegraph/actions/blob/main/diff-tour/
# Please make fixes / enhancements in the shared action,
# so all of our repos get the benefits
name: Diff Tour link
on:
pull_request:
# `edited` fires when the base branch changes; `synchronize` does not
# `closed` fires on merge and on plain close; either way the comment is
# updated to a link that survives deleting the head branch
types: [closed, edited, opened, reopened, synchronize]
# The only permission needed. The action does not check out your repo, so
# `contents: read` is not required, even for private repos
permissions:
pull-requests: write
jobs:
diff-tour:
name: Comment
runs-on: ubuntu-latest
# Diff Tour resolves branch names against the base repo, so skip fork PRs
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: sourcegraph/actions/diff-tour@main