Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add issue comment workflow #270

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/comment-new-issue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Add comment to new issue
on:
issues:
types:
- opened

jobs:
add-comment:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add comment
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const issueComment = `
Hello @${{ github.event.issue.user.login }} :wave:,

Please note that the core maintainer of this repository will not be available for support or any work on this repo for the upcoming months. As a result, new features will not be added during this period. Only additions or updates of new questions or study resources will be accepted.

We encourage you to follow the [CONTRIBUTING](https://github.com/FidelusAleksander/ghcertified/blob/master/CONTRIBUTING.md) guide and raise pull requests with fixes for content issues you find. Content pull requests will be reviewed by another maintainer.

Thank you for your understanding and contribution! :rocket:
`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: issueComment
});
Loading