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

[FEATURE] Automated Greeting-1 #228

Open
sanmarg opened this issue May 13, 2024 · 4 comments
Open

[FEATURE] Automated Greeting-1 #228

sanmarg opened this issue May 13, 2024 · 4 comments
Labels
feature Adding new feature on top of the existing code

Comments

@sanmarg
Copy link

sanmarg commented May 13, 2024

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 sanmarg added the feature Adding new feature on top of the existing code label May 13, 2024
sanmarg added a commit to sanmarg/wanderlust that referenced this issue May 13, 2024
@Mayur-666
Copy link
Contributor

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

@Mayur-666
Copy link
Contributor

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
Copy link
Contributor

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

@krishnaacharyaa
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding new feature on top of the existing code
Projects
None yet
Development

No branches or pull requests

3 participants