Skip to content

Extracting Content Automatically #2

Description

@ideasman42

To make it easy to maintain, it should be possible to extract content automatically, formatted for inclusion.

  • Commits made during the week.
  • Newly added tasks and diffs.
  • Tasks marked as resolved.

Activity

  1. changed the title [-]Extracting Content automatically[/-] [+]Extracting Content Automatically[/+] on Sep 3, 2017
  2. ideasman42 commented on Sep 3, 2017

    @ideasman42
    CollaboratorAuthor

    This script gets formats using RST for easy copy-pasting.

    START="HEAD~20"
    END="HEAD"
    
    git log origin/master \
            --no-merges --first-parent \
            --stat \
            --decorate \
            --format="%n- %C(yellow):rev:\`%s <B%H>\`%C(reset)%n%n%w(120,2,2)%b" \
            $START..$END | \
            perl -e "s/\bT(\d+)\b/:task:\`\$1\`/" -p | \
            perl -e "s/\bD(\d+)\b/:diff:\`\$1\`/" -p
    

    Example output: http://members.iinet.net.au/~ideasman42/typescript.html


    Edit, added tool to extract this info that only uses Python & Git: b93777464a66164508511f4927adcbf4246c4ae3

  3. Blendify commented on Sep 4, 2017

    @Blendify
    Member

    We can generate a list of new diffs by sorting https://developer.blender.org/api/differential.revision.search and using the title and maybe authorPHID which can be ran through https://developer.blender.org/conduit/method/user.search/ to get the real name/username a bit cumbersome but will save a lot of time if we end up using this. This can be done either through arc/php/python(https://github.com/disqus/python-phabricator) curl can also be used but there are length limits with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions