So I've got the bare minimum set up for this journal
Setting up the thinking-aloud repo with an Atom feed, labels, and a GitHub Actions workflow.
Originally a short post in the Thinking Aloud journal.
So I've got the bare minimum set up for this journal, in the thinking-aloud repository:
- issues to contain my journal entries, and possibly conversations about them (via the comments)
- a simple Atom feed generator that will build an Atom 1.0 feed from a JSON list of issues that I can retrieve from the GitHub API - the feed's URL is https://raw.githubusercontent.com/qmacro/thinking-aloud/main/feed.xml
- labels that I can assign to the issues for eventual categorisation (I have made provision for this in the feed generator already)
- a GitHub Actions workflow that is triggered when an issue is created or edited and causes the feed to be rebuilt
This was a pleasant few hours messing around on a day off. Well, I say pleasant, there was one unpleasant part which was trying (and failing) to parse and use the output from the octokit/request-action.
The silver lining in this though is that I realised that I could just use the gh CLI, as long as I supply the GITHUB_TOKEN env var with the appropriate (and auto-generated) secret value, like this:
- name: Generate feed
env:
GITHUB_TOKEN: $
run: |
gh api "/repos/${GITHUB_REPOSITORY}/issues?sort=created&direction=descending" \
| ./feed \
| tee feed.xml
If you're interested in following these journal entries, add the feed URL to your favourite feed reader: https://raw.githubusercontent.com/qmacro/thinking-aloud/main/feed.xml, and if you want to comment on any of the entries, you can do so in the comments to the corresponding issue.