[Hacktoberfest] Create APort integration video tutorials #93
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Hacktoberfest 2025 | |
| on: | |
| issues: | |
| types: [opened, labeled, unlabeled] | |
| pull_request: | |
| types: [opened, closed, merged, labeled, unlabeled] | |
| jobs: | |
| validate-hacktoberfest-issue: | |
| runs-on: ubuntu-latest | |
| if: github.event.issue && contains(github.event.issue.labels.*.name, 'hacktoberfest') | |
| steps: | |
| - name: Validate Hacktoberfest Issue | |
| run: | | |
| echo "π Validating Hacktoberfest issue: ${{ github.event.issue.title }}" | |
| echo "Issue URL: ${{ github.event.issue.html_url }}" | |
| echo "Labels: ${{ join(github.event.issue.labels.*.name, ', ') }}" | |
| # Check if issue has required information | |
| if [[ "${{ github.event.issue.body }}" == *"Integration Description"* ]]; then | |
| echo "β Issue contains integration description" | |
| else | |
| echo "β Issue missing integration description" | |
| fi | |
| if [[ "${{ github.event.issue.body }}" == *"Success Criteria"* ]]; then | |
| echo "β Issue contains success criteria" | |
| else | |
| echo "β Issue missing success criteria" | |
| fi | |
| if [[ "${{ github.event.issue.body }}" == *"Bounty Amount"* ]]; then | |
| echo "β Issue contains bounty amount" | |
| else | |
| echo "β Issue missing bounty amount" | |
| fi | |
| validate-contribution: | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request && contains(github.event.pull_request.labels.*.name, 'hacktoberfest') | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Validate PR | |
| run: | | |
| echo "π Validating Hacktoberfest PR: ${{ github.event.pull_request.title }}" | |
| echo "PR URL: ${{ github.event.pull_request.html_url }}" | |
| # Check if PR has proper description | |
| if [[ "${{ github.event.pull_request.body }}" == *"Closes"* ]] || [[ "${{ github.event.pull_request.body }}" == *"Fixes"* ]]; then | |
| echo "β PR references an issue" | |
| else | |
| echo "β οΈ PR doesn't reference an issue" | |
| fi | |
| # Check if PR has working example | |
| if find . -name "*.js" -o -name "*.py" -o -name "*.go" -o -name "*.php" | head -1 | grep -q .; then | |
| echo "β PR contains code files" | |
| else | |
| echo "β PR doesn't contain code files" | |
| fi | |
| # Check if PR has documentation | |
| if find . -name "README.md" | head -1 | grep -q .; then | |
| echo "β PR contains documentation" | |
| else | |
| echo "β οΈ PR doesn't contain documentation" | |
| fi | |
| process-bounty: | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request && github.event.action == 'closed' && github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'hacktoberfest') | |
| steps: | |
| - name: Process Bounty | |
| run: | | |
| echo "π° Processing bounty for merged PR: ${{ github.event.pull_request.title }}" | |
| echo "Author: ${{ github.event.pull_request.user.login }}" | |
| echo "PR URL: ${{ github.event.pull_request.html_url }}" | |
| # Extract bounty amount from PR description or labels | |
| BOUNTY_AMOUNT=$(echo "${{ github.event.pull_request.body }}" | grep -o '\$[0-9]\+' | head -1 || echo "$50") | |
| echo "Bounty amount: $BOUNTY_AMOUNT" | |
| # Here you would integrate with Chimoney API to process the bounty | |
| # For now, just log the information | |
| echo "π Bounty processed for ${{ github.event.pull_request.user.login }}: $BOUNTY_AMOUNT" | |
| update-leaderboard: | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request && github.event.action == 'closed' && github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'hacktoberfest') | |
| steps: | |
| - name: Update Leaderboard | |
| run: | | |
| echo "π Updating Hacktoberfest leaderboard" | |
| echo "Contributor: ${{ github.event.pull_request.user.login }}" | |
| echo "PR: ${{ github.event.pull_request.title }}" | |
| echo "Merged at: ${{ github.event.pull_request.merged_at }}" | |
| # Here you would update a leaderboard file or database | |
| # For now, just log the information | |
| echo "β Leaderboard updated" |