]> git.madduck.net Git - etc/vim.git/blob - .github/workflows/diff_shades_comment.yml

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

correct Vim integration code (#2853)
[etc/vim.git] / .github / workflows / diff_shades_comment.yml
1 name: diff-shades-comment
2
3 on:
4   workflow_run:
5     workflows: [diff-shades]
6     types: [completed]
7
8 permissions:
9   pull-requests: write
10
11 jobs:
12   comment:
13     runs-on: ubuntu-latest
14     steps:
15       - uses: actions/checkout@v2
16       - uses: actions/setup-python@v2
17
18       - name: Install support dependencies
19         run: |
20           python -m pip install pip --upgrade
21           python -m pip install click packaging urllib3
22
23       - name: Get details from initial workflow run
24         id: metadata
25         env:
26           GITHUB_TOKEN: ${{ github.token }}
27         run: >
28           python scripts/diff_shades_gha_helper.py comment-details
29           ${{github.event.workflow_run.id }}
30
31       - name: Try to find pre-existing PR comment
32         if: steps.metadata.outputs.needs-comment == 'true'
33         id: find-comment
34         uses: peter-evans/find-comment@d2dae40ed151c634e4189471272b57e76ec19ba8
35         with:
36           issue-number: ${{ steps.metadata.outputs.pr-number }}
37           comment-author: "github-actions[bot]"
38           body-includes: "diff-shades"
39
40       - name: Create or update PR comment
41         if: steps.metadata.outputs.needs-comment == 'true'
42         uses: peter-evans/create-or-update-comment@a35cf36e5301d70b76f316e867e7788a55a31dae
43         with:
44           comment-id: ${{ steps.find-comment.outputs.comment-id }}
45           issue-number: ${{ steps.metadata.outputs.pr-number }}
46           body: ${{ steps.metadata.outputs.comment-body }}
47           edit-mode: replace