wanderlust icon indicating copy to clipboard operation
wanderlust copied to clipboard

[FEATURE] Automated Greeting-1

Open sanmarg opened this issue 9 months ago • 4 comments

Description

Task : As soon as issue is created, the Github Bot will say "Hi , hope you have followed the code of conduct, if it doesn't follow we'll close this issue"

Please assign this issue to me.

Use Case

Here's the Screenshot of it. image

Proposed Solution

No response

Additional Information

No response

Attachments

No response

sanmarg avatar May 13 '24 18:05 sanmarg

@krishnaacharyaa Please check #231, i have commented one approach

Mayur-666 avatar May 14 '24 04:05 Mayur-666

Ok then i have tested the greeting message file, it will greet them and make a note to follow the contribution.md file, same for pr

name: 'Greetings'

  on:
    fork:
    push:
      branches: [main]
    issues:
      types: [opened]
    pull_request_target:
      types: [opened]
  
  jobs:
    welcome:
      runs-on: ubuntu-latest

steps:
  - uses: actions/checkout@main

  - name: Welcome Issue
    if: github.event_name == 'issues'
    uses: EddieHubCommunity/gh-action-community/src/welcome@main
    with:
      github-token: ${{ secrets.GITHUB_TOKEN }}
      issue-message: |
        Congratulations, @${{ github.actor }}! 🎉 
        Thank you for creating your issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue.
        We will promptly review your issue and offer feedback. 
        It is suggested and must to check our [contributing guidelines](https://github.com/hereisSwapnil/ExamTime/blob/main/CONTRIBUTING.md) and [PR guideline](https://github.com/krishnaacharyaa/wanderlust/blob/main/.github/pull_request_template.md).

  - name: Welcome Pull Request
    if: github.event_name == 'pull_request_target'
    uses: EddieHubCommunity/gh-action-community/src/welcome@main
    with:
      github-token: ${{ secrets.GITHUB_TOKEN }}
      pr-message: |
        Great job, @${{ github.actor }}! 🎉 
        Thank you for submitting your pull request. Your contribution is valuable and we appreciate your efforts to improve our project.
        We will promptly review your changes and offer feedback.
        We believe that you should have followed out [contributing guidelines](https://github.com/hereisSwapnil/ExamTime/blob/main/CONTRIBUTING.md) , otherwise this PR will be closed.

The above code requires github action secret setup :-

Screenshot (538)

Screenshot (539) Screenshot (540)

the next step, pr title checker will see in next issue.

Mayur-666 avatar May 14 '24 05:05 Mayur-666

@krishnaacharyaa Tell me any suggestion regarding message for pr and issue.

Mayur-666 avatar May 14 '24 05:05 Mayur-666

I'm not getting why are we mixing issue creation and Pr creation together tbh @Mayur-666 It's totally different different things Let's not mix it

krishnaacharyaa avatar May 14 '24 06:05 krishnaacharyaa