I'm trying to use packit for creating PRs in the-new-hotness and I can't close any already opened PR using API, when I try it I'm getting this:
Pagure API returned an error when calling 'https://src.stg.fedoraproject.org//api/0/rpms/msort/pull-request/1/close': Invalid or expired token. Please visit https://src.stg.fedoraproject. org/settings#nav-api-tab to get or renew your API token. - Missing ACLs: pull_request_close
The pull_request_close is not available in ACL list when creating a new API token. Could it be added?
pull_request_close
After some discussion with @pingou, this is by design and the token needs to be adjusted in ansible. pull_request_close is only allowed to be added for project tokens not user tokens. I will look at the ansible role to see how this could be added.
Metadata Update from @zlopez: - Issue assigned to zlopez
The change is introduced in https://pagure.io/fedora-infra/ansible/pull-request/739
Metadata Update from @zlopez: - Assignee reset
The change is now running on the staging.
There is a fix for pull_request_close ACL introduced in https://pagure.io/fedora-infra/ansible/pull-request/739, which was not merged yet. Till this change is deployed on staging, I'm not able to continue on packit integration work in the-new-hotness.
The change is already merged and deployed, but there is still fix that needs to be deployed as well https://pagure.io/pagure/pull-request/5206
Metadata Update from @zlopez: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)