'Pulling Labels in GitLog

I have to gather commits in Github for auditing purposes. I'm trying to pull commits and merges with Gitlog that are under a specific label, but I'm not able to filter by labels. I thought this was what tags was for, but I seem to be mistaken.

In GitHub I would search

is:pr is:closed sort:created-desc closed:2021-01-01..2022-01-01 label:changes 

So I tried

git log --branches --tags='changes' --merges --remotes --full-history --dense --since=2021-01-01 --date-order --format='%ai %an <%ae> %h %f' --output=/Users/Downloads/list4.csv

It returns a CSV file with the commit, hash, date, and summary. When I check the hash and look at the commit, it's not pulling up the ones under the 'changes' label like the GitHub query... What am I missing? Thanks!

I also read this documentation Gitlog documentation and it didn't seem to answer my question or I'm just dumb



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source