Skip to content

Add unwatch request #473

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

Merged
merged 3 commits into from
Apr 29, 2022

Conversation

414owen
Copy link
Contributor

@414owen 414owen commented Jan 16, 2022

I ended up subscribed to a bunch of repositories, through some automated process.
This helped clear it up.

@phadej

@414owen 414owen force-pushed the add-unsubscribe-request branch from b120986 to 5281a50 Compare January 17, 2022 11:36
@andreasabel
Copy link
Member

@Mergifyio rebase

@mergify
Copy link

mergify bot commented Apr 19, 2022

rebase

✅ Branch has been successfully rebased

@andreasabel andreasabel force-pushed the add-unsubscribe-request branch from 5281a50 to 7498a53 Compare April 19, 2022 11:59
@andreasabel
Copy link
Member

@414owen : Can this PR be complemented by a test case or a demonstration in samples/?

Copy link
Member

@andreasabel andreasabel left a comment

Choose a reason for hiding this comment

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

Please supply a testcase or demo.

@414owen
Copy link
Contributor Author

414owen commented Apr 19, 2022

@andreasabel I've added a sample to demonstrate usage of unwatchRepoR

Copy link
Member

@andreasabel andreasabel left a comment

Choose a reason for hiding this comment

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

Thanks for the update!; see my comment.

@@ -0,0 +1,17 @@
{-# LANGUAGE OverloadedStrings #-}

module Unwatch where
Copy link
Member

Choose a reason for hiding this comment

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

Could you please add this to the executables in samples/github-samples.cabal so that it gets built by the CI?
(You will likely have to delete the module header or change it to Main to get ghc to build the executable.)

@andreasabel andreasabel self-assigned this Apr 20, 2022
@andreasabel andreasabel self-requested a review April 28, 2022 17:55
Copy link
Member

@andreasabel andreasabel left a comment

Choose a reason for hiding this comment

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

As I suspected, a main module can only have name Main (or no name):

Building executable 'github-unwatch-repo' for github-samples-0..
[1 of 1] Compiling Unwatch          ( Repos/Watching/Unwatch.hs, /__w/github/github/dist-newstyle/build/x86_64-linux/ghc-8.0.2/github-samples-0/x/github-unwatch-repo/noopt/build/github-unwatch-repo/github-unwatch-repo-tmp/Unwatch.o )

<no location info>: error:
    output was redirected with -o, but no output will be generated
because there is no Main module.

Copy link
Member

@andreasabel andreasabel left a comment

Choose a reason for hiding this comment

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

Please fix CI problems (Main module).

@414owen 414owen force-pushed the add-unsubscribe-request branch from 4ae5f0a to c527dbe Compare April 29, 2022 10:28
@andreasabel andreasabel merged commit 5996728 into haskell-github:master Apr 29, 2022
@andreasabel
Copy link
Member

Thanks a lot, @414owen !

@andreasabel andreasabel added this to the 0.28 milestone Apr 29, 2022
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.

2 participants