Skip to content

Commit

Permalink
Scrape project board items (experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Sep 9, 2024
1 parent 1489657 commit 2d47494
Show file tree
Hide file tree
Showing 5 changed files with 384 additions and 168 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/scraper-dry-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
permissions:
issues: read
pull-requests: read
repository-projects: read
env:
DATA_REPO: ./
steps:
Expand All @@ -37,26 +38,27 @@ jobs:
working-directory: scraper

- name: Scrape data from GitHub
run: pnpm start ${{ github.repository_owner }} ../data/github
run: pnpm start ${{ github.repository_owner }} ../data/github
working-directory: scraper
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PROJECTS_BOARD_ID: PVT_kwDOA7JD8804yA

- run: mkdir contributors

- name: Generate markdown files for new contributors
run: node scripts/generateNewContributors.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/upload-artifact@v4
with:
name: output
retention-days: 5
path: |
data
contributors
- name: Get pnpm store directory
shell: bash
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/scraper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
type: string
default: main
description: A specific branch of scraper that is to be used.
projects-board-id:
required: false
type: string
description: Experimental; Works only with particular project board structure. Requires `read:project` scope for the GITHUB_TOKEN. Disabled if not configured.
secrets:
GIT_ACCESS_TOKEN:
required: true
Expand Down Expand Up @@ -48,6 +52,7 @@ jobs:
working-directory: scraper
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PROJECTS_BOARD_ID: ${{ inputs.projects-board-id }}

- uses: actions/setup-python@v3
with:
Expand Down
Loading

0 comments on commit 2d47494

Please sign in to comment.