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

chore: just the dummy pr for the testing purpose #366

Closed
wants to merge 7 commits into from
Closed
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
26 changes: 16 additions & 10 deletions .github/workflows/pr-title-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,36 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2
- name: Print Debug Information
run: |
echo "GITHUB_EVENT_NAME: ${{ github.event_name }}"
echo "PR Number: ${{ github.event.pull_request.number }}"
echo "Repository: ${{ github.repository }}"
echo "Event Action: ${{ github.event.action }}"
echo "Actor: ${{ github.actor }}"

- name: Run PR Title Checker
id: title-check
uses: thehanimo/pr-title-checker@v1.4.1
uses: thehanimo/pr-title-checker@v1.3.7
with:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pass_on_octokit_error: false
configuration_path: .github/pr-title-checker-config.json
- name: pt title satisfied

- name: PR title satisfied
if: success()
run: |
gh issue comment ${{ github.event.pull_request.number }} -R ${{ github.repository }} --body "Thank you ${{github.actor}}! Your PR title meets our guidelines."
gh issue comment ${{ github.event.pull_request.number }} -R ${{ github.repository }} --body "Thank you ${{ github.actor }}! Your PR title meets our guidelines."
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Close PR if title is invalid
if: failure()
run: |
gh pr close ${{ github.event.pull_request.number }} -R ${{ github.repository }}
gh issue comment ${{ github.event.pull_request.number }} -R ${{ github.repository }} --body $'Hello ${{github.actor}} Thank you for your PR. Unfortunately, it doesn\'t meet our quality checks.\n\nPlease ensure you follow our contribution guidelines. The PR title should match the required format.\n\nFor example, it should be like: `fix-#124: Added responsiveness to the Home page screen.`\n\nIf you have any query kindly check our [contributor guidelines](https://github.com/krishnaacharyaa/wanderlust/blob/main/.github/CONTRIBUTING.md).'
gh issue comment ${{ github.event.pull_request.number }} -R ${{ github.repository }} --body $'Hello ${{ github.actor }} Thank you for your PR. Unfortunately, it doesn\'t meet our quality checks.\n\nPlease ensure you follow our contribution guidelines. The PR title should match the required format.\n\nFor example, it should be like: `fix-#124: Added responsiveness to the Home page screen.`\n\nIf you have any query kindly check our [contributor guidelines](https://github.com/krishnaacharyaa/wanderlust/blob/main/.github/CONTRIBUTING.md).'
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Reopen PR if title is corrected
if: github.event.action == 'edited' && success()
Expand All @@ -50,4 +56,4 @@ jobs:
gh pr reopen ${{ github.event.pull_request.number }} -R ${{ github.repository }}
fi
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion backend/api/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
import app from '../app.js';
export default app;
console.log('ameer jafar');
Loading