{"id":17001434,"url":"https://github.com/markpatterson27/github-classroom-prepopulate-issues","last_synced_at":"2025-03-22T08:47:49.672Z","repository":{"id":104769824,"uuid":"382030241","full_name":"markpatterson27/GitHub-Classroom-Prepopulate-Issues","owner":"markpatterson27","description":"Workflow file that prepopulates an assignment repository with issues when a student accepts the assignment.","archived":false,"fork":false,"pushed_at":"2021-07-25T14:15:55.000Z","size":9,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T09:09:23.452Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markpatterson27.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-01T12:45:20.000Z","updated_at":"2023-12-29T20:41:17.000Z","dependencies_parsed_at":"2023-05-29T18:00:07.051Z","dependency_job_id":null,"html_url":"https://github.com/markpatterson27/GitHub-Classroom-Prepopulate-Issues","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markpatterson27%2FGitHub-Classroom-Prepopulate-Issues","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markpatterson27%2FGitHub-Classroom-Prepopulate-Issues/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markpatterson27%2FGitHub-Classroom-Prepopulate-Issues/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markpatterson27%2FGitHub-Classroom-Prepopulate-Issues/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markpatterson27","download_url":"https://codeload.github.com/markpatterson27/GitHub-Classroom-Prepopulate-Issues/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244931587,"owners_count":20534010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T04:24:55.689Z","updated_at":"2025-03-22T08:47:49.650Z","avatar_url":"https://github.com/markpatterson27.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Classroom - Prepopulate Issues\n\n## Action Version\n\nI made an action of the workflow in this repo: https://github.com/markpatterson27/create-issues.\n\nYou can achieve the same result as the workflow based solution, using the action and a workflow with the following contents:\n\n```yaml\nname: Create Issues\n\non:\n  create:\n\njobs:\n  create:\n    name: Create project and issues\n    runs-on: ubuntu-latest\n    if: ${{ github.ref == 'refs/heads/feedback' }}\n    steps:\n      - uses: actions/checkout@v2\n\n      - name: Create issues\n        uses: markpatterson27/create-issues@v1\n        with:\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          project-name: Assignment Tasks\n          project-description: Complete the tasks outlined in each issue.\n          issues-directory: .github/STARTING_ISSUES\n\n```\n\n## Old Workflow Based Version\n\nWorkflow file that prepopulates an assignment repository with issues when a student accepts the assignment.\n\nRequirements:\n\n- The workflow file is intended to be used with [GitHub Classroom](https://classroom.github.com) assignments.\n- Feedback pull request needs to be enabled for the assignment.\n\n**Note:** the workflow makes use of the [Project API](https://docs.github.com/en/rest/reference/projects), which is currently in preview stage and subject to change. It is possible that by the time you read this, the API has changed and the workflow is broken.\n\n## How to use\n\n1. Copy the `.github/workflows/prepopulate-issues.yml` file to your assignment repository's workflow directory.\n2. For each issue you want to create, add a text file to the `.github/STARTING_ISSUES` directory. The filename of each file will become the issue title and the contents of the file will be the issue's body.\n\n## What the workflow does\n\n- The workflow runs when the `feedback` branch is created.\n- The workflow creates a Project called \"Assignment Tasks\" and a column called \"To Do\".\n- The workflow then iterates through the files in the `.github/STARTING_ISSUES` directory, creating an issue per file and adding that issue to the \"To Do\" column in the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkpatterson27%2Fgithub-classroom-prepopulate-issues","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkpatterson27%2Fgithub-classroom-prepopulate-issues","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkpatterson27%2Fgithub-classroom-prepopulate-issues/lists"}