Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support GitHub Actions Badges #1838

Closed
wants to merge 12 commits into from
Closed

Conversation

CryZe
Copy link

@CryZe CryZe commented Sep 13, 2019

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @carols10cents (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@sgrif
Copy link
Contributor

sgrif commented Sep 23, 2019

Can we call the badge github_actions instead of just github?

Copy link
Contributor

@sgrif sgrif left a comment

Choose a reason for hiding this comment

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

Other than the badge name this looks fine

src/tests/badge.rs Outdated Show resolved Hide resolved
@CryZe
Copy link
Author

CryZe commented Sep 25, 2019

Alright, I made those changes :)

@CryZe CryZe force-pushed the github-badge branch 3 times, most recently from 1d0c8c1 to d85627c Compare September 26, 2019 12:13
@CryZe
Copy link
Author

CryZe commented Sep 26, 2019

Travis is having issues it seems.

@CryZe
Copy link
Author

CryZe commented Sep 30, 2019

This is done from my side.

@jhpratt
Copy link
Member

jhpratt commented Oct 1, 2019

@sgrif ^^ I was actually just looking for this, and @CryZe says it should be good!

Copy link
Member

@carols10cents carols10cents left a comment

Choose a reason for hiding this comment

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

In the github actions documentation, it says:

If your workflow uses the name keyword, you can reference the workflow by name. If the name of your workflow contains white space, you'll need to replace the space with the URL encoded string %20. For more information about the name keyword, see "Workflow syntax for GitHub Actions."

I think we should be doing the replacement of any spaces in the workspace key to %20, so that it'll work either way people specify it and folks won't need to publish a new version if they have spaces in their workspace name and don't do the substitution manually.

Also could you open a PR in the cargo repo documenting this badge in here? https://github.com/rust-lang/cargo/blob/master/src/doc/src/reference/manifest.md#package-metadata I'll merge this PR before the docs are merged, but I'd like to know the docs are on their way and I'd like to try manually testing out this new badge by following the docs.

Thanks!!

@CryZe
Copy link
Author

CryZe commented Oct 5, 2019

Isn't this true for all URLs in general? Shouldn't crates.io properly percentage encode all the badge URL values anyway? I'm not sure how this is different here. Anyways, I think I might need some help how and where I would do this. I don't really know the crates.io codebase, so I might need some mentoring. (Or should I really just do a .replace(" ", "%20")? Idk, that seems even more weird)

I'll open a PR in the cargo repo.

@carols10cents
Copy link
Member

Here's an example - for the appveyor badges, we have to replace underscores or periods with hyphens.

CryZe added a commit to CryZe/cargo that referenced this pull request Oct 28, 2019
@CryZe
Copy link
Author

CryZe commented Oct 28, 2019

Alright, I implemented the whitespace escaping.

classNames: ['badge'],
repository: alias('badge.attributes.repository'),
workflow: computed('badge.attributes.workflow', function() {
return this.get('badge.attributes.workflow').replace(' ', '%20');

Choose a reason for hiding this comment

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

This will only replace the first space – it’d have to be / /g. But I agree that this is strange and something like encodeURIComponent() would seem to make more sense.

@CryZe CryZe requested a review from sgrif March 1, 2020 22:19
@Dylan-DPC-zz
Copy link

@rustbot modify labels to +s-waiting-on-review and -s-waiting-on-author

@JohnTitor
Copy link
Member

@rustbot modify labels: -S-waiting-on-author

@djc
Copy link

djc commented Mar 9, 2020

@carols10cents friendly ping? Would be really nice to have this.

BurntSushi added a commit to BurntSushi/ripgrep that referenced this pull request Mar 17, 2020
... and don't replace them with anything because crates.io does not
support GitHub Actions yet. But it's almost there:
rust-lang/crates.io#1838

Thanks @atouchet for noticing this.
@stanislav-tkach
Copy link

Don't want to be rude, but is there a chance this is going to be merged anytime soon?

hrkfdn added a commit to hrkfdn/ncspot that referenced this pull request Mar 21, 2020
cargo badges does not support github actions yet:
rust-lang/crates.io#1838
hrkfdn added a commit to hrkfdn/ncspot that referenced this pull request Mar 21, 2020
cargo badges does not support github actions yet:
rust-lang/crates.io#1838
@carols10cents
Copy link
Member

Whether you're trying to be rude or not, you are being rude.

I'm not getting paid to work on crates.io right now, so I'm prioritizing paid work.

Also, there's a global pandemic going on. So you all need to chill.

@jhpratt
Copy link
Member

jhpratt commented Mar 23, 2020

@carols10cents I don't think a person asking the status of things after roughly a month of no action is rude. We fully realize that neither you nor anyone else gets paid to work on crates.io. All we were seeking was a status update, whether from you or someone else. A simple statement that you (and others) are preoccupied with staying healthy (hopefully!) and your paid job would have sufficed. It's something we all understand, to say the least.


Somewhat related, I'm home myself and am more than willing to help out. If there are updates to code that need to be done, I can (likely) do that. I can also review if desired.

@carols10cents
Copy link
Member

I don't think a person asking the status of things after roughly a month of no action is rude. We fully realize that neither you nor anyone else gets paid to work on crates.io. All we were seeking was a status update, whether from you or someone else.

All status changes are made to the issue. If there is no update here, there has been no change in status. I do think it's rude.

@carols10cents
Copy link
Member

Next time I get a chance to review PRs, I'll be reviewing them in "Least Recently Updated" order. My current queue: https://github.com/rust-lang/crates.io/pulls?q=is%3Aopen+is%3Apr+assignee%3Acarols10cents+sort%3Aupdated-asc

@djc
Copy link

djc commented Mar 24, 2020

@carols10cents I've been thinking about your comments a lot since yesterday. Of course you decide how to use your unpaid time. That said, in my experience across many open source projects, asking for a status update or pinging a non-responsive maintainer (and I've been on that side plenty of times myself) is often considered fine -- sometimes issues get lost in the noise, and it's useful to highlight those that need action. Being explicit about a lack of time (whether paid or not) is useful and would likely have led to fewer comments about this, and could maybe also elicit discussion about whether or not another maintainer could take over your review.

However, I feel dismayed about your last comment. In saying that you'll review PRs in LRU order, I worry that you use your very scarce time for things that are arguably of lesser priority for crates.io users, which I feel would be unfortunate.

@Dylan-DPC-zz
Copy link

Just a visitor here (actually a subscriber who doesn't know how I landed on this issue), but I would recommend let's not discuss this things here. Thanks

@BurntSushi
Copy link
Member

Moderation note: @carols10cents has made it clear that asking for further status updates is unwanted. Similarly, engaging into a meta discussion about this is also not productive. Please respect the maintainer's wishes and stop.

parasyte added a commit to parasyte/pixels that referenced this pull request Apr 13, 2020
- I would like to add a badge to the Cargo manifest too, but it's currently WIP: rust-lang/crates.io#1838
parasyte added a commit to parasyte/pixels that referenced this pull request Apr 14, 2020
- I would like to add a badge to the Cargo manifest too, but it's currently WIP: rust-lang/crates.io#1838
@JohnTitor
Copy link
Member

I'm going to close this PR since we decided to deprecate the badges feature in the team meeting yesterday. See #2436 and related issues for more detail. Thanks for taking your time!

@JohnTitor JohnTitor closed this Apr 18, 2020
Youka added a commit to substation-beta/ssb_implementation that referenced this pull request Apr 20, 2020
mtshrmn pushed a commit to mtshrmn/ncspot that referenced this pull request Sep 8, 2020
cargo badges does not support github actions yet:
rust-lang/crates.io#1838
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.