Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Durgesh4993 committed May 26, 2024
1 parent 623402a commit cf7e8e2
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/AutoGreeting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Auto Greeting

on:
issues:
types: [opened]

permissions:
issues: write

jobs:
greet:
runs-on: ubuntu-latest
steps:
- name: Add a greeting comment
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issueComment = `Hey @${context.payload.issue.user.login}! 👋 \n\n 👉 Thanks for opening this issue. We appreciate your contribution and will look into it as soon as possible. \n 👉 Don’t forget to star our [Community Page](https://github.com/GameSphere-MultiPlayer/Community-Page) and Follow Us on GitHub \n 👉 Make sure you join our [Discord](https://discord.gg/rZb46cCMmK), we have created separate channels for all projects`;
await github.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: issueComment
});
22 changes: 22 additions & 0 deletions .github/workflows/auto-label-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Auto-label on Any Issue

on:
issues:
types: [opened]

jobs:
auto-label:
runs-on: ubuntu-latest
steps:
- name: Add labels to any new issue
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const labelsToAdd = ["gssoc"];
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: labelsToAdd
});

0 comments on commit cf7e8e2

Please sign in to comment.