ドキュメントには頻繁に更新が加えられ、その都度公開されています。本ページの翻訳はまだ未完成な部分があることをご了承ください。最新の情報については、英語のドキュメンテーションをご参照ください。本ページの翻訳に問題がある場合はこちらまでご連絡ください。

Create an individual assignment

You can create an assignment for students in your course to complete individually.

ここには以下の内容があります:

About individual assignments

An individual assignment is coursework for each student who participates in a course on GitHub Classroom. The student is intended to complete an individual assignment without help from other students.

When a student accepts an assignment, GitHub Classroom automatically creates a new repository for the student. The repositories can be empty, or you can create the repositories from a template repository with starter code, documentation, tests, and other resources. Each assignment repository belongs to your organization account on GitHub.

Each assignment has a title and an optional deadline. You can choose the visibility of repositories that GitHub Classroom creates and choose access permissions. You can also automatically grade assignments and create a dedicated space to discuss the assignment with the student.

For a video demonstration of the creation of an individual assignment, see "Basics of setting up GitHub Classroom."

必要な環境

You must create a classroom before you can create an assignment. For more information, see "Manage classrooms."

課題を作成する

To create an assignment, sign into GitHub Classroom and navigate to a classroom. In the Assignments tab, click New assignment.

The 'New assignment' button

課題の基本情報をセットアップする

Name your assignment, decide whether to assign a deadline, and choose the visibility of assignment repositories.

課題に名前を付ける

For an individual assignment, GitHub Classroom names repositories by the repository prefix and the student's GitHub username. デフォルトでは、リポジトリのプレフィックスが課題のタイトルとなります。 For example, if you name an assignment "assignment-1" and the student's username on GitHub is @octocat, the name of the assignment repository for @octocat will be assignment-1-octocat.

Type a title for the assignment. Optionally, click to edit the prefix.

Assignment title and prefix

課題に期限を設定する

Optionally, you can assign a deadline to the assignment. Under "Deadline (optional)", click in the text field, then use the date picker to assign a deadline.

Date picker for assignment deadline

課題のタイプを選択する

Under "Individual or group assignment", select the drop-down menu, and click Individual assignment. 課題の作成後は、課題タイプを変更できません。 If you'd rather create a group assignment, see "Create a group assignment."

課題リポジトリの可視性を選択する

The repositories for an assignment can be public or private. If you use private repositories, only the student or team can see the feedback you provide.

You can also decide whether to grant students admin permissions to the repository for an assignment. Grant admin permissions if the student should be able to perform administrative tasks for the assignment repository. For more information, see "About repository visibility" and "Repository permission levels for an organization."

Under "Repository visibility", select a visibility. Optionally, select Grant students admin access to their repository.

Visibility options for assignment repositories

When you're done, click Continue to configure starter code and a development environment for the assignment.

'Continue' button

スターターコードを追加し、開発環境を構成する

Optionally, decide whether to provide empty repositories or starter code, and preconfigure a development environment for your students.

テンプレートリポジトリを作成する

By default, a new assignment will create an empty repository for each student on the roster for the classroom. You can optionally choose a template repository as starter code for the assignment. The template repository must belong to your organization or be a public repository on GitHub.テンプレートリポジトリに関する詳しい情報については、「テンプレートリポジトリを作成する」を参照してください。

Under "Add a template repository to give students starter code", select the Select a repository drop-down, then type a search query. In the list of results, click the template repository you'd like to use for starter code.

Using the 'Select a repository' drop-down menu to find a template repository to use as starter code for an assignment

When you're done, click Continue to configure automatic grading and feedback for the project.

'Continue' button

オンライン統合開発環境 (IDE) を選択する

You can optionally configure an assignment to use an online integrated development environment (IDE). Online IDEs allow your students to write code, run programs, and collaborate in a browser, without installing Git and a full development toolchain on the student's computer. If you choose an online IDE for an assignment, students can still check out and run code locally on a computer with the necessary software.詳しい情報については、「GitHub Classroom と IDE の統合」を参照してください。

To choose an online IDE for the assignment, select the Select an online IDE drop-down menu, then click the IDE you'd like your students to use.

Using the 'Select an online IDE' drop-down menu to click an online IDE for the assignment

Providing feedback for an assignment

Optionally, you can automatically grade assignments and create a space for discussing each submission with the student.

課題を自動的にテストする

You can use autograding to automatically check a student's work for an assignment on GitHub Classroom. You configure tests for an assignment, and the tests run immediately every time a student pushes to an assignment repository on GitHub. The student can view the test results, make changes, and push to see new results. For more information, see "Use autograding."

Under "Add autograding tests", select the Add test drop-down menu, then click the grading method you want to use. For more information, see "Grading methods."

Using the 'Add test' drop-down menu to click a grading method

Define the parameters of your test case, like the name, commands, inputs, outputs, timeout, and points. When you're done, click Save test case.

'Save test case' button for an autograding test

You can add more tests with the Add test drop-down menu, and you can edit or delete existing tests with or .

Pencil and trash icons to edit or delete an autograding test

重要なファイルへの変更を防ぐ

You can prevent students from changing files that contain tests for autograding, or other important files in the assignment repository.

Under "Protected file paths", type relative paths within the repository to protect.

Text field for typing protected file paths

フィードバックのためにプルリクエストを作成する

You can automatically create a pull request where you can provide feedback and answer a student's questions about an assignment. For more information about the review of changes in a pull request, see "Reviewing changes in pull requests."

To create pull requests for the discussion of feedback, select Enable feedback pull requests.

Checkbox for 'Enable feedback pull requests'

To create the assignment, click Create assignment.

'Create assignment' button

学生を課題に招待する

By default, GitHub Classroom enables an invitation URL for each assignment you create. Students can accept and submit the assignment while the invitation URL is enabled. You can share the URL with your students on your LMS, course homepage, or wherever you post assignments. Students can also navigate to the assignment on GitHub Classroom if the student has already accepted an assignment for the classroom.

Warning: Be careful where you share invitation URLs. Anyone with an invitation URL for an assignment can accept the invitation and associate a user account on GitHub with an identifier in your roster.

You can see whether a student has joined the classroom and accepted or submitted an assignment in the All students tab for the assignment. To prevent acceptance or submission of an assignment by students, deselect Enable assignment invitation URL. To edit the assignment, click Edit assignment.

Individual assignment

次のステップ

  • Once you create the assignment, students can start work on the assignment using Git and GitHub's features. 学生はリポジトリのクローン、コミットのプッシュ、ブランチの管理、プルリクエストの作成およびレビュー、マージコンフリクトへの対処、およびIssueの変更に関するディスカッションが可能です。 Both you and student can review the commit history for the repository. For more information, see "Getting started with GitHub," "Creating, cloning, and archiving repositories," "Using Git," and "Collaborating with issues and pull requests."

  • When a student finishes an assignment, you can review the files in the repository, or you can review the history and visualizations for the repository to better understand the student's work. For more information, see "Visualizing repository data with graphs."

  • You can provide feedback for an assignment by commenting on individual commits or lines in a pull request. For more information, see "Commenting on a pull request" and "Opening an issue from code." For more information about creating saved replies to provide feedback for common errors, see "About saved replies."

参考リンク

Did this doc help you?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

OR, learn how to contribute.