diff --git a/.github/PR_Template.md b/.github/PR_Template.md new file mode 100644 index 0000000..dd4f410 --- /dev/null +++ b/.github/PR_Template.md @@ -0,0 +1,23 @@ + + +## Related Issue* + +Closes #issue_number + + + +## Description + + + +## Screenshot Section (MUST) + + + + + +## Task + +- [ ] Follow us on GitHub +- [ ] Star the repo on GitHub diff --git a/.github/workflows/greet-issues.yml b/.github/workflows/greet-issues.yml new file mode 100644 index 0000000..ddce1a8 --- /dev/null +++ b/.github/workflows/greet-issues.yml @@ -0,0 +1,47 @@ +name: Greet Issues + +on: + issues: + types: [opened] + +jobs: + greet: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v3 # This should automatically be on Node 20 + + - name: Set up Node.js + uses: actions/setup-node@v3 # This should also be compatible with Node 20 + with: + node-version: '20' + + - name: Handle Issue Greetings + uses: actions/github-script@v6 # Update to a compatible version + with: + script: | + const issue = context.payload.issue; + if (!issue) { + console.error("No issue context available."); + return; + } + + const user = issue.user.login; + const message = `๐ Hello @${user}! Thank you for opening this issue titled "**${issue.title}**"! We're excited to see your contribution and a maintainer will get back to you shortly ๐! \n\nPlease ensure the following:\n1. Be respectful. \n2. Follow the contribution guidelines.\n\nHappy coding! ๐`; + + await github.rest.issues.createComment({ + ...context.repo, + issue_number: issue.number, + body: message + }); + + // Request more information if the issue body is empty + const issueBody = issue.body || ''; + if (issueBody.trim().length === 0) { + const requestInfoMessage = `๐ง We would appreciate it if you could provide us with more info about this issue, @${user}! ๐ค`; + await github.rest.issues.createComment({ + ...context.repo, + issue_number: issue.number, + body: requestInfoMessage + }); + } diff --git a/.github/workflows/greet-pr.yml b/.github/workflows/greet-pr.yml new file mode 100644 index 0000000..704db0e --- /dev/null +++ b/.github/workflows/greet-pr.yml @@ -0,0 +1,16 @@ +name: Greetings + +on: [pull_request_target, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: "Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible." + pr-message: "Welcome to Our repository.๐ Thank you so much for taking the time to point this out." diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..ef76949 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,63 @@ +
BTC $31,671.45 +5.4%
++ $1994.16
+for 45 days
+Welcome to OpenTek Hub, your number one source for all things crypto. We're dedicated to providing you the very best of cryptocurrency investment insights, with an emphasis on reliability, customer service, and uniqueness.
+Founded in 2023, OpenTek Hub has come a long way from its beginnings. When we first started out, our passion for crypto investment drove us to start our own business.
+We hope you enjoy our products as much as we enjoy offering them to you. If you have any questions or comments, please don't hesitate to contact us.
+Cryptocurrency is a type of digital or virtual currency that uses cryptography for security. It is decentralized and typically operates on a technology called blockchain.
To start investing in cryptocurrency, you need to choose a reliable exchange, create an account, and deposit funds. From there, you can buy and trade various cryptocurrencies.
+Cryptocurrency investments come with risks, just like any other investment. It's important to do thorough research and understand the market before investing.
+You can track your cryptocurrency investments using various portfolio tracking apps and tools that provide real-time updates on prices and market trends.
+