GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — github-script/.github/workflows/pull-request-test.yml at main · admdev8/github-script 39 lines (36 loc) · 1.22 KB / Copy pathpull-request-test.ymlFile metadata and controls39 lines (36 loc) · 1.22 KB 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 28 29 30 31 32 33 34 35 36 37 38 39 on: pull_request: branches: main types: [opened, synchronize] jobs: pull-request-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: ./ with: script: | // Get the existing comments. const {data: comments} = await github.issues.listComments({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.number, }) // Find any comment already made by the bot. const botComment = comments.find(comment => comment.user.id === 41898282) const commentBody = "Hello from actions/github-script! (${{ github.sha }})" if (botComment) { await github.issues.updateComment({ owner: context.repo.owner, repo: context.repo.repo, comment_id: botComment.id, body: commentBody }) } else { await github.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.number, body: commentBody }) } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |