Skip to main content

A plugin that adds the issue-feedback command to RepoBee

Project description

repobee-feedback

Build Status Code Coverage PyPi Version Supported Python Versions Supported Platforms License Code Style: Black

repobee-feedback v0.6.0 requires RepoBee 3: As of repobee-feedback v0.6.0, RepoBee 3+ is required.

A RepoBee plugin that adds the feedback to to RepoBee's issues category. It allows the user to specify a directory containing issue files. Issue files are simply markdown files in which the first line is taken to be the title of the issue, and the rest the body. The feedback command looks for issue files called <STUDENT_REPO_NAME>.md, and opens them in the respective student repos.

Alternatively, you can also use a special file format to put all issues into the same file, see The multi issues file.

How is feedback different from issues open? The issues open command opens the same issue in all student repositories, while the feedback action allows for unique issues to be opened in each repository.

Install

Use RepoBee's plugin manager to install.

$ repobee plugin install

Usage

When active, the feedback plugin adds the feedback action to the issues category. We recommend activating the feedback plugin persistently with repobee plugin activate, such that the action is always available. See the RepoBee plugin docs for general information on how to use installed plugins, including activation and deactivation. The rest of this section assumes that the feedback plugin has been activated persistently.

The issue files

feedback looks for files called <STUDENT_REPO_NAME>.md. So, if you for example want to open feedback issues for students slarse and rjglasse for assignment task-1, it will expect the files slarse-task-1.md and rjglasse-task-1.md to be present in the issue files directory. More files can be present, but if any of the expected issue files are missing, an error is displayed and no issues are opened.

The issue files should be Markdown-formatted. The first line of the file is the title, the rest is the body. Note that the title (i.e. first line) should not contain any formatting as it typically does not render well on GitHub/GitLab.

The multi issues file

Alternatively, you can put all issues into a single file and specify the path to it with the --multi-issues-file argument (see Optional arguments). Each issue should begin with #ISSUE#<STUDENT_REPO_NAME>#<ISSUE_TITLE>, and everything between that line and the next such line is considered to be the body of the issue. Here is an example file with issues for students slarse and rjglasse for assignment task-1.

#ISSUE#slarse-task-1#This is a neat title
Well done mr slarse, you did good here.
You could have done a bit better on blabla, though.

Overall well done!

#ISSUE#rjglasse-task-1#This is another title
Hmm, not sure what's going on here.

Could you explain it better?

Note: The first line of the multi issues file must be an #ISSUE# line.

Using the feedback command

The feedback command is straightforward. It takes the "regular" options that most RepoBee commands (base url, token, etc), but these are also picked from the config file as per usual. With a typical RepoBee configuration, you only need to supply -a|--assignments and -s|--students (or --sf|--students_file). Here's an example:

$ repobee issues feedback -a task-1 -s slarse rjglasse

This will cause feedback to search through the current directory (which is the default issue directory) for slarse-task-1.md and rjglasse-task-1.md.

Note: By default, feedback runs in interactive mode: it will prompt you y/n before opening an issue. See the next section for how to disable that.

Refer to the feedback action's help section for details on additional CLI options.

$ repobee issues feedback --help

License

See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

repobee-feedback-0.7.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

repobee_feedback-0.7.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file repobee-feedback-0.7.0.tar.gz.

File metadata

  • Download URL: repobee-feedback-0.7.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for repobee-feedback-0.7.0.tar.gz
Algorithm Hash digest
SHA256 451ba009385d0b738ac4e56a9d813ceda44827f5bd358aeb3c1c6f0f71f95cdd
MD5 9d30bbc60ed112ab83beaee2f4637a3a
BLAKE2b-256 82a91c6723d35fa826e300e089f303395e66d48f2044be6d9c54046ca8c163b3

See more details on using hashes here.

File details

Details for the file repobee_feedback-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for repobee_feedback-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdc18108ad775a664c4b35140d4289aefb8a364ae289332674a93b0a6b3bffb3
MD5 983d0de1e90880e592520a1a4e87b104
BLAKE2b-256 b8c5320608cb48fa6b89c4d4802962db2fbc375af8a2e0e8fd8e8b280501367d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page