Skip to content

Add action for preparing authors - #470

Merged
jezdez merged 25 commits into
mainfrom
add-prepare-authors
Aug 24, 2026
Merged

Add action for preparing authors#470
jezdez merged 25 commits into
mainfrom
add-prepare-authors

Conversation

@danyeaw

@danyeaw danyeaw commented Jun 24, 2026

Copy link
Copy Markdown
Member

Description

This PR goes along with #459 to prepare the .authors.yml file prior to a release. It is based on the initial script developed by @dholth at regro/rever#276 to check and update the file prior to running rever.

I tested this in a sandbox with conda-sandbox/example#7 and conda-sandbox/example#8.

@danyeaw
danyeaw requested a review from a team as a code owner June 24, 2026 21:13
@github-project-automation github-project-automation Bot moved this to 🆕 New in 🔎 Review Jun 24, 2026
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jun 24, 2026
@danyeaw
danyeaw force-pushed the add-prepare-authors branch from 6d75aab to 04d25b3 Compare June 24, 2026 21:24
Comment thread prepare-authors/README.md Outdated
danyeaw added a commit to conda-sandbox/example that referenced this pull request Aug 11, 2026
Seed an incomplete .authors.yml and a dispatch workflow pinned to the
PR head so we can validate prepare/check modes with org SYNC_TOKEN.
danyeaw and others added 5 commits August 11, 2026 15:24
run() used str.strip(), which removed the leading space from git
status lines such as " M .authors.yml" and truncated the path to
authors.yml, failing ensure_allowed_paths in prepare mode.
Keep the elevated token input for checkout/push/PR only, and resolve
commit authors with the job GITHUB_TOKEN so prepare no longer drops
github keys when a write PAT is supplied.
Stop reporting authors metadata as complete when missing github
keys cannot be filled; check mode still warns without failing.

@jezdez jezdez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this together, Dan. The overall shape looks good, especially keeping read lookups on the job token and writes on the supplied token. I found a few correctness cases that can make check or prepare report success with incomplete data, so I think they need another pass before merge. I kept the comments focused on the smallest fixes.

Comment thread prepare-authors/action.yml
Comment thread prepare-authors/prepare_authors.py Outdated
Comment thread prepare-authors/prepare_authors.py Outdated
Comment thread prepare-authors/prepare_authors.py Outdated
Comment thread prepare-authors/prepare_authors.py Outdated
Comment thread prepare-authors/prepare_authors.py
Comment thread prepare-authors/README.md Outdated
@github-project-automation github-project-automation Bot moved this from 🆕 New to 🏗️ In Progress in 🔎 Review Aug 12, 2026
@danyeaw

danyeaw commented Aug 12, 2026

Copy link
Copy Markdown
Member Author

Hi @jezdez, thanks for the great review comments. I updated the PR to fix all those items with tests for them. I also reran tests on https://github.com/conda-sandbox/example to check the functionality. It all appears good.

@danyeaw
danyeaw requested a review from jezdez August 12, 2026 18:29
@dholth
dholth self-requested a review August 19, 2026 19:48
@danyeaw danyeaw linked an issue Aug 20, 2026 that may be closed by this pull request
@github-project-automation github-project-automation Bot moved this from 🏗️ In Progress to ✅ Approved in 🔎 Review Aug 24, 2026
@jezdez
jezdez merged commit 9a52c4b into main Aug 24, 2026
8 checks passed
@jezdez
jezdez deleted the add-prepare-authors branch August 24, 2026 15:01
@github-project-automation github-project-automation Bot moved this from ✅ Approved to 🏁 Done in 🔎 Review Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed [bot] added once the contributor has signed the CLA

Projects

Status: 🏁 Done

Development

Successfully merging this pull request may close these issues.

Automate .authors.yml updates before release

4 participants