Skip to content

modern-email/questions_imap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Annotations

The tool at hand provides an interface that allows to create text annotations on a plaintext document that are synced through GitHub issues.

Example

image

Setup

  1. Adjust the config.ron as needed.
  2. Create a (fine-grained) Personal Access Token (PAT) with the capability to manage issues on the repository you intend to sync this tool with. (We recommend that you give this token the least possible privileges, i.e., to manage issues in a single repository.) Create a file containing your newly created personal access token and reference the file in the config.ron.
  3. Make sure to not push your token accidentally! We recommend to use pat.txt in the repository root to store the token because this file is listed in .gitignore.

Then, execute ...

cargo run

... on your local machine and head to http://127.0.0.1:3000 to view your document.

Usage

When a document is loaded, the tool extracts all annotations from GitHub and shows them as annotations in the document. For this to work, the tool reads the annotation meta data that is attached to every issue body (and does not need to be edited).

Annotations have different colors:

  • red annotations refer to issues that are still open, i.e., need to be handled (or closed).
  • green annotations refer to closed, i.e., already handled issues.
  • orange annotations refer to newly created issues that were not obtained from GitHub. Note: orange annotations are still automatically created on GitHub. If you want to make sure that there is no bug, reload the page and verify that the annotations you created become red or green.

New annotations can be created by selecting text in the browser. When the comment is empty, the tool will use the selected text as issue title. Otherwise, it will use the provided comment as issue title. You can use tags such as "codec", "leaf_node", "credential", etc. to your liking to classify the annotations.

What works and what doesn't?

Creating and updating issues works as expected. Note, however, that issues must be deleted (or closed) via GitHub.

Please don't judge the code quality. This is an experiment we wrote to verify if we like this workflow.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published