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

Updated Greeting Workflows #112

Merged
merged 5 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
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
23 changes: 14 additions & 9 deletions .github/workflows/issue-welcome-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ jobs:
uses: actions/github-script@v6
with:
script: |
github.issues.createComment({
issue_number: context.payload.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Thank you for creating an issue! 🎉 Please make sure to:
- Read our [CONTRIBUTING.md](https://github.com/${context.repo.owner}/${context.repo.repo}/blob/main/CONTRIBUTING.md) guide.
- Star our repo ⭐ if you find it useful.
Your contribution is appreciated!`
})
const issue_number = context.issue.number;
const owner = context.repo.owner;
const repo = context.repo.repo;
const body = `Thank you for creating an issue! 🎉 Please make sure to:
- Read our [CONTRIBUTING.md](https://github.com/${owner}/${repo}/blob/main/CONTRIBUTING.md) guide.
- Star our repo ⭐ if you find it useful.
Your contribution is appreciated!`;

github.rest.issues.createComment({
issue_number: issue_number,
owner: owner,
repo: repo,
body: body
});
38 changes: 24 additions & 14 deletions .github/workflows/pr-thank-you.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Send Welcome Comment
if: github.event.action == 'opened'
if: ${{ github.event.action == 'opened' }}
uses: actions/github-script@v6
with:
script: |
github.issues.createComment({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Thank you for your contribution! 🎉 We appreciate your effort in making our project better. Please provide any additional information if needed.'
})
const issue_number = context.payload.pull_request.number;
const owner = context.repo.owner;
const repo = context.repo.repo;
const body = 'Thank you for your contribution! 🎉 We appreciate your effort in making our project better. Please provide any additional information if needed.';

github.rest.issues.createComment({
issue_number: issue_number,
owner: owner,
repo: repo,
body: body
});

- name: Send Merge Comment
if: github.event.action == 'closed' && github.event.pull_request.merged == true
if: ${{ github.event.action == 'closed' && github.event.pull_request.merged == true }}
uses: actions/github-script@v6
with:
script: |
github.issues.createComment({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Thank you for merging this PR! 🙌 Your contribution has been successfully integrated into the project. Great job!'
})
const issue_number = context.payload.pull_request.number;
const owner = context.repo.owner;
const repo = context.repo.repo;
const body = '🎉 Congrats, your changes were accepted !!! 🙌 Your contribution has been successfully integrated into the project. Great job!';

github.rest.issues.createComment({
issue_number: issue_number,
owner: owner,
repo: repo,
body: body
});
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# #Visual Sort
# #Visual Sort

Welcome to **Visual Sort**, a web-based sorting algorithm visualization tool built using HTML, CSS, Bootstrap, SCSS, and JavaScript. This project provides an interactive way to visualize various sorting algorithms in action, helping users understand how different algorithms work and their efficiency in sorting data.

Expand Down
Loading