You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
833 B

1 month ago
1 year ago
  1. name: Check notify api
  2. on:
  3. pull_request_target:
  4. types:
  5. - opened
  6. branches:
  7. - 'dev'
  8. paths:
  9. - 'notify/*.sh'
  10. jobs:
  11. welcome:
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/github-script@v6
  15. with:
  16. script: |
  17. await github.rest.issues.createComment({
  18. issue_number: context.issue.number,
  19. owner: context.repo.owner,
  20. repo: context.repo.repo,
  21. body: `**Welcome**
  22. Please make sure you've read our [Code-of-conduct](../wiki/Code-of-conduct) and add the usage here: [notify](../wiki/notify).
  23. Then reply on this message, otherwise, your code will not be reviewed or merged.
  24. We look forward to reviewing your Pull request shortly ✨
  25. `
  26. })