It's able to use filter to select the correct environment_scope when query or update single variable so I just add this and keep the backward compatibility.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
As Gitlab's API Document:
It's able to use filter to select the correct environment_scope when query or update single variable so I just add this and keep the backward compatibility.