From acdf7c06f8c7aa62386c3056a8dcb62fae9f5443 Mon Sep 17 00:00:00 2001 From: amercader Date: Fri, 31 May 2024 13:54:10 +0200 Subject: [PATCH] Add extra details in backport action docs --- doc/contributing/maintenance-tools.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/contributing/maintenance-tools.rst b/doc/contributing/maintenance-tools.rst index e8479fde310..30653fec88c 100644 --- a/doc/contributing/maintenance-tools.rst +++ b/doc/contributing/maintenance-tools.rst @@ -49,4 +49,14 @@ on how to set up these): * The public variable ``TECH_TEAM_USER_IDS`` is a JSON list of the GitHub user ids of the Tech Team members. User ids can be found using the ``https://api.github.com/users/`` endpoint. * The public variable ``CKANBOT_USER_ID`` is the user id of the :ref:`ckanbot`. -* The secret ``BACKPORT_ACTION_PAT`` is a `Personal Access Token `_ of the ckanbot account, with enough permissions to write to the ckan/ckan repository. +* The secret ``BACKPORT_ACTION_PAT`` is a `Personal Access Token `_ (PAT) of the ckanbot account, with enough permissions to write to the ckan/ckan repository. + +When creating a new PAT, make sure to select the following settings: + +* Token name: ``backports_action`` +* Expiration: set it at something reasonable like 1 year +* Resource owner: *ckan* organization +* Repository access: Only select repositories (select *ckan/ckan*) +* Repository permissions: Select *Content* (Read and Write) and *Pull Requests* (Read and Write) + +Once generated the token, it will have to be approved by someone with permissions in the *@ckan* organization (by going to Settings > Third-party Access > Personal access tokens > Pending requests).