To tweet your own Working Group's document changes, follow these steps:
This service isn't provided in a central repo because we don't want to have your credentials. Create a copy by forking it (so that you can pull updates later).
This is the most onerous (and frustrating) step, because:
- Twitter has a lot of bureaucracy around creating developer accounts, and
- Twitter keeps on changing their authentication mechanisms, and making them more complex.
As of this writing, the steps involve are:
- Log into Twitter using the account you wish to tweet from.
- Go to developer.twitter.com
- Click 'apply' (at the top right) and go through the steps to obtain a developer account. This may take a few days, and require followup e-mails with Twitter.
- Once your account is approved, go back to the developer site.
- Create a new project, named for your Working Group. In that project, create a new app.
- Copy the
API Key and Secret
. - Change the
App permissions
toRead and Write
. - Click on the
Keys and tokens
tab and generate a new Access Token and Secret`; keep copies.
See also these currently-outdated docs.
The following repository secrets need to be created in the GitHub repository's Settings
(under Secrets
):
WORKING_GROUP
- the short identifier for the WG, e.g.,httpbis
,tls
. Should be lowercase.TWITTER_CONSUMER_KEY
- the API KeyTWITTER_CONSUMER_SECRET
- the API SecretTWITTER_TOKEN_KEY
- the Access TokenTWITTER_TOKEN_SECRET
- the Access Secret
Go into .github/workflows/run.yml
and change this line:
- cron: "15 */4 * * *"
... to randomise the minute that the job runs at, so that the datatracker API isn't overwhelmed.
- If they aren't already, enable Actions under
Settings
->Actions
. - On the same page, make sure that
Workflow permissions
is set toRead and write permissions
(so thatLAST_SEEN
can be saved to the repo). - Go to the
Actions
top-level tab and clickI understand my workflows, go ahead and enable them
. - Under
Workflows
, click onTweet Datatracker Events
and make sure it is enabled.
Once in a while, you should update your copy of the repo, by pulling changes from upstream.
The easiest way to do this is to go to the GitHub home page of your fork of the repo, click 'Fetch upstream' near the top right, and confirm with 'Fetch and merge'.