Skip to content

Membership Request Auto-Reply #4

Membership Request Auto-Reply

Membership Request Auto-Reply #4

name: Membership Request Auto-Reply
on:
schedule:
- cron: "0 0 * * *" # Runs once a day at midnight UTC
workflow_dispatch:
issues:
types: [opened]
jobs:
auto-reply:
runs-on: ubuntu-latest
steps:
- name: Add automatic response for membership request
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GitHubActionsToken }}
script: |
const issue_number = context.payload.issue.number;
const repo_owner = context.repo.owner;
const repo_name = context.repo.repo;
// Auto-reply message for membership request
const auto_reply_message = `
✅ Thank you for your membership request.
The organization admin (@dhruvabhat24) will look into your request soon.
`;
// Post the auto-reply message
await github.rest.issues.createComment({
owner: repo_owner,
repo: repo_name,
issue_number: issue_number,
body: auto_reply_message
});