Skip to content

MNT: Use hash for Action workflow versions and update if needed #29

MNT: Use hash for Action workflow versions and update if needed

MNT: Use hash for Action workflow versions and update if needed #29

Workflow file for this run

name: When Opened
on:
issues:
types:
- opened
pull_request_target:
types:
- opened
jobs:
triage:
runs-on: ubuntu-latest
steps:
- name: 'Comment Draft PR'
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
if: github.event.pull_request.draft == true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thank you for your draft pull request! Do you know that you can use `[ci skip]` or `[skip ci]` in your commit messages to skip running continuous integration tests until you are ready?'
})
- name: Special comment
uses: pllim/action-special_pr_comment@5126c189c02418a55448480b28efd1a00af48d7b # 0.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}